some progress
This commit is contained in:
@@ -1,51 +1,93 @@
|
||||
# use at your own risk
|
||||
|
||||
services:
|
||||
fantom-mainnet-archive:
|
||||
build:
|
||||
context: ./fantom
|
||||
dockerfile: Dockerfile.sonic
|
||||
dockerfile: sonic.Dockerfile
|
||||
args:
|
||||
VERSION: "${FANTOM_SONIC_VERSION:-v1.2.1-h}"
|
||||
REPO: "https://github.com/Fantom-foundation/sonic.git"
|
||||
stop_grace_period: 3m
|
||||
volumes:
|
||||
- "fantom-mainnet-sonic-archive:/var/sonic"
|
||||
VERSION: v1.2.1-h
|
||||
REPO: https://github.com/Fantom-foundation/sonic.git
|
||||
user: root
|
||||
ulimits:
|
||||
nofile: 1048576 # Max open files (for RPC/WS connections)
|
||||
sysctls:
|
||||
# TCP Performance
|
||||
net.ipv4.tcp_slow_start_after_idle: 0 # Disable slow start after idle
|
||||
net.ipv4.tcp_no_metrics_save: 1 # Disable metrics cache
|
||||
net.ipv4.tcp_rmem: 4096 87380 16777216 # Increase TCP read buffers
|
||||
net.ipv4.tcp_wmem: 4096 87380 16777216 # Increase TCP write buffers
|
||||
net.core.somaxconn: 32768 # Higher connection queue
|
||||
# Memory/Connection Management
|
||||
net.core.netdev_max_backlog: 50000 # Increase network buffer
|
||||
net.ipv4.tcp_max_syn_backlog: 30000 # More SYN requests
|
||||
net.ipv4.tcp_max_tw_buckets: 2000000 # Allow more TIME_WAIT sockets
|
||||
expose:
|
||||
- "8545"
|
||||
- 8545
|
||||
- 8551
|
||||
|
||||
ports:
|
||||
- "10335:10335"
|
||||
- "10335:10335/udp"
|
||||
- 10335:10335
|
||||
- 10335:10335/udp
|
||||
volumes:
|
||||
- ${FANTOM_MAINNET_SONIC_ARCHIVE_DATA:-fantom-mainnet-sonic-archive}:/var/sonic
|
||||
- /slowdisk:/slowdisk
|
||||
|
||||
- .jwtsecret:/jwtsecret:ro
|
||||
|
||||
environment:
|
||||
- GENESIS=https://download.fantom.network/opera/testnet/testnet-26650-rpc.g
|
||||
- CACHE_GB=${SONIC_CACHE_GB:-28}
|
||||
command:
|
||||
- --datadir=/var/sonic
|
||||
- --port=10335
|
||||
- --bind=0.0.0.0
|
||||
- --nat=extip:${IP}
|
||||
- --http
|
||||
- --http.port=8545
|
||||
- --http.vhosts=*
|
||||
- --ws
|
||||
- --ws.port=8545
|
||||
- --ws.origins=*
|
||||
- --ws.addr=0.0.0.0
|
||||
- --http.addr=0.0.0.0
|
||||
- --maxpeers=50
|
||||
- --http.api=admin,debug,web3,eth,dag,txpool,personal,abft,net,trace,ftm,sfc
|
||||
- --ws.api=admin,debug,web3,eth,dag,txpool,personal,abft,net,trace,ftm,sfc
|
||||
|
||||
- --rpc.gascap=600000000
|
||||
- --rpc.returndatalimit=10000000
|
||||
- --rpc.txfeecap=0
|
||||
|
||||
- --db.engine=
|
||||
- --state.scheme=
|
||||
- --syncmode=full
|
||||
- --gcmode=archive
|
||||
|
||||
networks:
|
||||
- chains
|
||||
environment:
|
||||
- "IP=${IP}"
|
||||
- "GENESIS=https://download.fantom.network/mainnet-latest-archive.g"
|
||||
- "CACHE_GB=${FANTOM_MAINNET_SONIC_CACHE_GB:-28}"
|
||||
restart: unless-stopped
|
||||
command: >
|
||||
--port=10335
|
||||
--nat=extip:${IP}
|
||||
--maxpeers=200
|
||||
--http
|
||||
--http.addr=0.0.0.0
|
||||
--http.port=8545
|
||||
--http.api=admin,debug,web3,eth,dag,txpool,personal,abft,net,trace,ftm
|
||||
--http.corsdomain="*"
|
||||
--http.vhosts="*"
|
||||
--ws
|
||||
--ws.addr=0.0.0.0
|
||||
--ws.port=8545
|
||||
--ws.api=admin,debug,web3,eth,dag,txpool,personal,abft,net,trace,ftm
|
||||
--ws.origins="*"
|
||||
--rpc.gascap=600000000
|
||||
--bootnodes=enode://94dfec3eb6e50187d22d12f7dd965169bab5a63022934ef0b3b82a819574e0940b5bcb471f62360f1b58cf61a89e634bd14ae7c2e29ce48088890f4a7aff44fe@75.98.207.227:5050,enode://7fb3f43273f4dfeb19c3129c6ed999e14246d2f219ff284d0ef87417cd9514c6d542abc988a654b4a77005ea896c5b4e4ca0d40f97f3bf9ee37be33cc749835f@209.172.40.68:5050,enode://27a80a1db08a40636415d4ff9bb272882b6a6f97a9a5d596006de843f35cbbc679e5252d89d3de05bd74c36cf9f5ce2446dd66cdd5dc7e942a585eb4add61124@37.27.70.18:5050,enode://946fef1538abd165f8bd2ae1c290e7689ff5e209ab6c085eaced9b91e93684b1efe05f79a9a9b460504c450065baaeda5ecb72c03f8adf7e7a559042ce4950da@136.243.252.124:5078,enode://cf762e3a68f8a96676d6383cd3286b85ef7454ef37bb39283efe00d3d573d88f05db3daab7c35a4d3ba9edd9d089e359a25de5beeb24f79f6c1b9e5341958cee@15.235.54.211:5050
|
||||
stop_grace_period: 5m
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.middlewares.fantom-mainnet-sonic-archive-stripprefix.stripprefix.prefixes=/fantom-mainnet-archive"
|
||||
- "traefik.http.services.fantom-mainnet-sonic-archive.loadbalancer.server.port=8545"
|
||||
- "traefik.http.routers.fantom-mainnet-sonic-archive.entrypoints=websecure"
|
||||
- "traefik.http.routers.fantom-mainnet-sonic-archive.tls.certresolver=myresolver"
|
||||
- "traefik.http.routers.fantom-mainnet-sonic-archive.rule=Host(`$DOMAIN`) && PathPrefix(`/fantom-mainnet-archive`)"
|
||||
- "traefik.http.routers.fantom-mainnet-sonic-archive.middlewares=fantom-mainnet-sonic-archive-stripprefix, ipwhitelist"
|
||||
- traefik.enable=true
|
||||
- traefik.http.middlewares.fantom-mainnet-sonic-archive-stripprefix.stripprefix.prefixes=/fantom-mainnet-archive
|
||||
- traefik.http.services.fantom-mainnet-sonic-archive.loadbalancer.server.port=8545
|
||||
- ${NO_SSL:-traefik.http.routers.fantom-mainnet-sonic-archive.entrypoints=websecure}
|
||||
- ${NO_SSL:-traefik.http.routers.fantom-mainnet-sonic-archive.tls.certresolver=myresolver}
|
||||
- ${NO_SSL:-traefik.http.routers.fantom-mainnet-sonic-archive.rule=Host(`$DOMAIN`) && PathPrefix(`/fantom-mainnet-archive`)}
|
||||
- ${NO_SSL:+traefik.http.routers.fantom-mainnet-sonic-archive.rule=PathPrefix(`/fantom-mainnet-archive`)}
|
||||
- traefik.http.routers.fantom-mainnet-sonic-archive.middlewares=fantom-mainnet-sonic-archive-stripprefix, ipwhitelist
|
||||
|
||||
volumes:
|
||||
fantom-mainnet-sonic-archive:
|
||||
fantom-mainnet-sonic-archive:
|
||||
|
||||
x-upstreams:
|
||||
- chain: fantom
|
||||
method-groups:
|
||||
enabled:
|
||||
- debug
|
||||
- filter
|
||||
|
||||
methods:
|
||||
disabled:
|
||||
enabled:
|
||||
Reference in New Issue
Block a user