This commit is contained in:
Para Dox
2025-04-14 11:09:30 +07:00
parent 6db2d5df50
commit b653ad153c
14 changed files with 5 additions and 15 deletions

View File

@@ -1,6 +1,6 @@
#!/bin/bash
datadir=/var/sonic
datadir=${SONIC_HOME:-/var/sonic}
if [ ! -f "$datadir/initialized" ]; then
echo "Initializing Sonic..."

View File

@@ -23,6 +23,4 @@ RUN chmod +x /usr/local/bin/entrypoint.sh
EXPOSE 18545 18546 5050 5050/udp
VOLUME /var/sonic
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]

View File

@@ -31,8 +31,8 @@ services:
- CACHE_GB=${SONIC_CACHE_GB:-28}
- GENESIS=https://genesis.soniclabs.com/sonic-mainnet/genesis/sonic-16500-full.g
- IP=${IP}
- SONIC_HOME=/var/sonic
command:
- --datadir=/var/sonic
- --db.engine=
- --gcmode=archive
- --http