services: fantom-mainnet-archive: build: context: ./fantom dockerfile: Dockerfile.sonic 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" expose: - "8545" ports: - "10335:10335" - "10335:10335/udp" 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 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=18544" - "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" volumes: fantom-mainnet-sonic-archive: