fix
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
datadir=/var/sonic
|
||||
datadir=${SONIC_HOME:-/var/sonic}
|
||||
|
||||
if [ ! -f "$datadir/initialized" ]; then
|
||||
echo "Initializing Sonic..."
|
||||
|
||||
@@ -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"]
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user