services: polygon-amoy-archive: image: erigontech/erigon:${ERIGON3_VERSION:-v3.0.0} user: root expose: - "8545" ports: - "10377:10377" - "10377:10377/udp" - "25377:25377" - "25377:25377/udp" - "30377:30377" - "30377:30377/udp" environment: - "IP=${IP}" volumes: - polygon-amoy-erigon3-archive-trace:/root/.local/share/erigon - /slowdisk:/slowdisk networks: - chains entrypoint: ["/bin/sh", "-c", "exec erigon \"$@\""] command: - --chain=amoy - --prune.mode=archive - --port=10377 - --p2p.allowed-ports=25377 - --p2p.allowed-ports=30377 - --nat=extip:${IP} - --http.addr=0.0.0.0 - --http.vhosts=* - --http.corsdomain=* - --http.api=eth,erigon,web3,net,debug,trace,txpool,admin - --rpc.returndata.limit=1100000 - --rpc.gascap=5000000000 - --ws.port=8545 - --ws - --torrent.upload.rate="1250mb" - --torrent.download.rate="1250mb" - --torrent.port=20377 - --bor.heimdall=${POLYGON_HEIMDALL_REST:-None} restart: unless-stopped stop_grace_period: 1m labels: - "traefik.enable=true" - "traefik.http.middlewares.polygon-amoy-erigon3-archive-trace-stripprefix.stripprefix.prefixes=/polygon-amoy-archive" - "traefik.http.services.polygon-amoy-erigon3-archive-trace.loadbalancer.server.port=8545" - "traefik.http.routers.polygon-amoy-erigon3-archive-trace.entrypoints=websecure" - "traefik.http.routers.polygon-amoy-erigon3-archive-trace.tls.certresolver=myresolver" - "traefik.http.routers.polygon-amoy-erigon3-archive-trace.rule=Host(`$DOMAIN`) && PathPrefix(`/polygon-amoy-archive`)" - "traefik.http.routers.polygon-amoy-erigon3-archive-trace.middlewares=polygon-amoy-erigon3-archive-trace-stripprefix, ipwhitelist" volumes: polygon-amoy-erigon3-archive-trace: