be graceful

This commit is contained in:
Sebastian
2024-03-23 07:13:46 +01:00
parent 74f6aabb0e
commit 125e9717eb
4 changed files with 5 additions and 4 deletions

View File

@@ -4,6 +4,7 @@ services:
erigon-mainnet-fullnode: erigon-mainnet-fullnode:
image: thorax/erigon:${ERIGON_VERSION:-v2.59.0} image: thorax/erigon:${ERIGON_VERSION:-v2.59.0}
user: root user: root
stop_grace_period: 10m
expose: expose:
- "16630" - "16630"
- "9090" - "9090"
@@ -44,7 +45,6 @@ services:
--rpc.gascap=5000000000 --rpc.gascap=5000000000
--ws --ws
restart: unless-stopped restart: unless-stopped
stop_grace_period: 1m
labels: labels:
- "prometheus-scrape.enabled=true" - "prometheus-scrape.enabled=true"
- "prometheus-scrape.port=6060" - "prometheus-scrape.port=6060"

View File

@@ -5,6 +5,7 @@ services:
erigon-gnosis-fullnode: erigon-gnosis-fullnode:
image: thorax/erigon:${ERIGON_VERSION:-v2.59.0} image: thorax/erigon:${ERIGON_VERSION:-v2.59.0}
user: root user: root
stop_grace_period: 10m
volumes: volumes:
- "gnosis-fullnode_data:/datadir" - "gnosis-fullnode_data:/datadir"
- .jwtsecret:/jwtsecret - .jwtsecret:/jwtsecret
@@ -24,7 +25,6 @@ services:
- "17938:17938/udp" - "17938:17938/udp"
restart: unless-stopped restart: unless-stopped
command: --chain=gnosis --prune.h.older=128 --prune.r.older=128 --prune.t.older=128 --prune.c.older=128 --nat=stun --authrpc.addr=0.0.0.0 --authrpc.vhosts=* --authrpc.jwtsecret=/jwtsecret --http --http.addr=0.0.0.0 --http.port=8545 --http.compression --http.vhosts='*' --http.corsdomain='*' --http.api=eth,debug,net,trace,web3,erigon --ws --ws.compression --rpc.gascap=300000000 --metrics --metrics.addr=0.0.0.0 --metrics.port=6060 --bodies.cache=5G --rpc.batch.limit=200000 --batchSize=2048MB --port=20947 --datadir=/datadir --ethash.dagdir=/datadir/ethash --rpc.returndata.limit=1000000 --p2p.protocol=66 --p2p.protocol 67 --p2p.protocol 68 --p2p.allowed-ports 28806 --p2p.allowed-ports 16393 --p2p.allowed-ports 17938 command: --chain=gnosis --prune.h.older=128 --prune.r.older=128 --prune.t.older=128 --prune.c.older=128 --nat=stun --authrpc.addr=0.0.0.0 --authrpc.vhosts=* --authrpc.jwtsecret=/jwtsecret --http --http.addr=0.0.0.0 --http.port=8545 --http.compression --http.vhosts='*' --http.corsdomain='*' --http.api=eth,debug,net,trace,web3,erigon --ws --ws.compression --rpc.gascap=300000000 --metrics --metrics.addr=0.0.0.0 --metrics.port=6060 --bodies.cache=5G --rpc.batch.limit=200000 --batchSize=2048MB --port=20947 --datadir=/datadir --ethash.dagdir=/datadir/ethash --rpc.returndata.limit=1000000 --p2p.protocol=66 --p2p.protocol 67 --p2p.protocol 68 --p2p.allowed-ports 28806 --p2p.allowed-ports 16393 --p2p.allowed-ports 17938
stop_grace_period: 1m
labels: labels:
- "prometheus-scrape.enabled=true" - "prometheus-scrape.enabled=true"
- "prometheus-scrape.port=6060" - "prometheus-scrape.port=6060"

View File

@@ -4,6 +4,7 @@ services:
erigon-polygon-mumbai-fullnode: erigon-polygon-mumbai-fullnode:
image: thorax/erigon:${ERIGON_VERSION:-v2.57.3} image: thorax/erigon:${ERIGON_VERSION:-v2.57.3}
user: root user: root
stop_grace_period: 3m
volumes: volumes:
- "polygon-mumbai-erigon-fullnode:/datadir" - "polygon-mumbai-erigon-fullnode:/datadir"
- "/slowdisk:/slowdisk" - "/slowdisk:/slowdisk"

View File

@@ -2,8 +2,9 @@ version: '3.1'
services: services:
polygon-erigon-fullnode: polygon-erigon-fullnode:
image: thorax/erigon:${ERIGON_VERSION:-v2.57.3} image: thorax/erigon:${ERIGON_VERSION:-v2.59.0}
user: root user: root
stop_grace_period: 10m
volumes: volumes:
- "polygon-erigon-fullnode:/datadir" - "polygon-erigon-fullnode:/datadir"
- "/slowdisk:/slowdisk" - "/slowdisk:/slowdisk"
@@ -28,7 +29,6 @@ services:
- "10521:10521/udp" - "10521:10521/udp"
restart: unless-stopped restart: unless-stopped
command: --chain=bor-mainnet --nat=stun --bor.heimdall=https://polygon-heimdall-rest.publicnode.com --http --http.addr=0.0.0.0 --http.port=8545 --http.compression --http.vhosts='*' --http.corsdomain='*' --http.api=eth,debug,net,trace,web3,erigon,bor --ws --ws.compression --rpc.gascap=300000000 --metrics --metrics.addr=0.0.0.0 --metrics.port=6060 --bodies.cache=5G --rpc.batch.limit=200000 --db.pagesize=16k --batchSize=2048MB --port=61044 --p2p.protocol=66 --p2p.protocol 67 --p2p.protocol 68 --p2p.allowed-ports 63195 --p2p.allowed-ports 14745 --p2p.allowed-ports 21827 --datadir=/datadir --ethash.dagdir=/datadir/ethash --rpc.returndata.limit=1100000 --db.size.limit=12t --snapshots=true --torrent.port 10521 --torrent.download.rate 1000mb --torrent.upload.rate 10mb --prune.h.older=128 --prune.r.older=128 --prune.t.older=128 --prune.c.older=128 command: --chain=bor-mainnet --nat=stun --bor.heimdall=https://polygon-heimdall-rest.publicnode.com --http --http.addr=0.0.0.0 --http.port=8545 --http.compression --http.vhosts='*' --http.corsdomain='*' --http.api=eth,debug,net,trace,web3,erigon,bor --ws --ws.compression --rpc.gascap=300000000 --metrics --metrics.addr=0.0.0.0 --metrics.port=6060 --bodies.cache=5G --rpc.batch.limit=200000 --db.pagesize=16k --batchSize=2048MB --port=61044 --p2p.protocol=66 --p2p.protocol 67 --p2p.protocol 68 --p2p.allowed-ports 63195 --p2p.allowed-ports 14745 --p2p.allowed-ports 21827 --datadir=/datadir --ethash.dagdir=/datadir/ethash --rpc.returndata.limit=1100000 --db.size.limit=12t --snapshots=true --torrent.port 10521 --torrent.download.rate 1000mb --torrent.upload.rate 10mb --prune.h.older=128 --prune.r.older=128 --prune.t.older=128 --prune.c.older=128
stop_grace_period: 1m
labels: labels:
- "prometheus-scrape.enabled=true" - "prometheus-scrape.enabled=true"
- "prometheus-scrape.port=6060" - "prometheus-scrape.port=6060"