Files
ethereum-rpc-docker/polygon/erigon3/polygon-amoy-erigon3-pruned-trace.yml
squidbear 5ab6790148 fix
2025-03-28 12:34:07 +01:00

64 lines
1.9 KiB
YAML

services:
polygon-amoy:
image: erigontech/erigon:${ERIGON3_VERSION:-v3.0.0}
user: root
expose:
- "8545"
ports:
- "10583:10583"
- "10583:10583/udp"
- "25583:25583"
- "25583:25583/udp"
- "30583:30583"
- "30583:30583/udp"
environment:
- "IP=${IP}"
volumes:
- polygon-amoy-erigon3-pruned-trace:/root/.local/share/erigon
- /slowdisk:/slowdisk
networks:
- chains
entrypoint: ["/bin/sh", "-c", "exec erigon \"$@\""]
command:
- --chain=amoy
- --prune.mode=full
- --port=10583
- --p2p.allowed-ports=25583
- --p2p.allowed-ports=30583
- --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=20583
- --bor.heimdall=${POLYGON_HEIMDALL_REST:-None}
restart: unless-stopped
stop_grace_period: 1m
labels:
- "traefik.enable=true"
- "traefik.http.middlewares.polygon-amoy-erigon3-pruned-trace-stripprefix.stripprefix.prefixes=/polygon-amoy"
- "traefik.http.services.polygon-amoy-erigon3-pruned-trace.loadbalancer.server.port=8545"
- "traefik.http.routers.polygon-amoy-erigon3-pruned-trace.entrypoints=websecure"
- "traefik.http.routers.polygon-amoy-erigon3-pruned-trace.tls.certresolver=myresolver"
- "traefik.http.routers.polygon-amoy-erigon3-pruned-trace.rule=Host(`$DOMAIN`) && PathPrefix(`/polygon-amoy`)"
- "traefik.http.routers.polygon-amoy-erigon3-pruned-trace.middlewares=polygon-amoy-erigon3-pruned-trace-stripprefix, ipwhitelist"
volumes:
polygon-amoy-erigon3-pruned-trace: