fixes
This commit is contained in:
24
sonic.yml
24
sonic.yml
@@ -9,13 +9,31 @@ services:
|
||||
- "sonic:/var/sonic"
|
||||
expose:
|
||||
- "18544"
|
||||
- "19921"
|
||||
- "34894"
|
||||
ports:
|
||||
- "19921:19921"
|
||||
- "19921:19921/udp"
|
||||
- "34894:34894"
|
||||
- "34894:34894/udp"
|
||||
networks:
|
||||
- chains
|
||||
restart: unless-stopped
|
||||
command: |
|
||||
--port=34894 \
|
||||
--maxpeers=200 \
|
||||
--http \
|
||||
--http.addr=0.0.0.0 \
|
||||
--http.port=18544 \
|
||||
--http.api=ftm,eth,debug,admin,web3,personal,net,txpool,sfc,trace \
|
||||
--http.corsdomain="*" \
|
||||
--http.vhosts="*" \
|
||||
--ws \
|
||||
--ws.addr=0.0.0.0 \
|
||||
--ws.port=18544 \
|
||||
--ws.api=ftm,eth,debug,admin,web3,personal,net,txpool,sfc \
|
||||
--ws.origins="*" \
|
||||
--nousb \
|
||||
--rpc.gascap=600000000 \
|
||||
--db.preset pbl-1 \
|
||||
--cache=${CACHE_SIZE:-16000}
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.middlewares.sonic-stripprefix.stripprefix.prefixes=/sonic"
|
||||
|
||||
@@ -8,8 +8,8 @@ if [ ! -f /var/sonic/initialized ]; then
|
||||
# mkdir -p /var/sonic/data
|
||||
# touch /var/sonic/config.json
|
||||
|
||||
wget https://genesis.soniclabs.com/sonic-mainnet/genesis/sonic.g.md5
|
||||
GOMEMLIMIT=50GiB sonictool --datadir /var/sonic --cache 12000 genesis sonic.g.md5
|
||||
wget https://genesis.soniclabs.com/sonic-mainnet/genesis/sonic.g
|
||||
GOMEMLIMIT=50GiB sonictool --datadir /var/sonic --cache 12000 genesis sonic.g
|
||||
rm sonic.g
|
||||
|
||||
# Create the file to mark initialization
|
||||
|
||||
Reference in New Issue
Block a user