Files
ethereum-rpc-docker/ethereum-mainnet-erigon-archive-trace.yml
2025-03-18 07:18:19 +02:00

62 lines
2.2 KiB
YAML

services:
ethereum-erigon:
image: erigontech/erigon:${ERIGON_VERSION:-v2.61.3}
user: root
expose:
- "16630"
- "9090"
- "8545"
- "8551"
ports:
- "18518:18518"
- "18518:18518/udp"
- "20202:20202"
- "20202:20202/udp"
- "52290:52290"
- "52290:52290/udp"
environment:
- "IP=${IP}"
volumes:
- ${ETHEREUM_MAINNET_ERIGON_ARCHIVE_TRACE_DATA:-ethereum-mainnet-erigon-archive-trace}:/root/.local/share/erigon
- /slowdisk:/slowdisk
- .jwtsecret:/jwtsecret
networks:
- chains
command: >
--rpc.evmtimeout=30m0s
--rpc.overlay.getlogstimeout=30m0s
--rpc.overlay.replayblocktimeout=30m0s
--chain mainnet
--port=18518
--p2p.allowed-ports=52290
--metrics --metrics.addr=0.0.0.0 --metrics.port=6060
--private.api.addr=0.0.0.0:9090
--torrent.port=20202
--nat=extip:${IP}
--authrpc.addr=0.0.0.0
--authrpc.vhosts=*
--authrpc.jwtsecret=/jwtsecret
--http.addr=0.0.0.0
--http.vhosts=*
--http.corsdomain=*
--http.api=eth,erigon,web3,net,debug,trace,txpool
--rpc.returndata.limit=1100000
--rpc.gascap=5000000000
--ws.port=8545
--ws
restart: unless-stopped
stop_grace_period: 1m
labels:
- "traefik.enable=true"
- "traefik.http.middlewares.ethereum-mainnet-erigon-archive-trace-stripprefix.stripprefix.prefixes=/ethereum-erigon"
- "traefik.http.services.ethereum-mainnet-erigon-archive-trace.loadbalancer.server.port=8545"
- "${NO_SSL:-traefik.http.routers.ethereum-mainnet-erigon-archive-trace.entrypoints=websecure}"
- "${NO_SSL:-traefik.http.routers.ethereum-mainnet-erigon-archive-trace.tls.certresolver=myresolver}"
- "${NO_SSL:-traefik.http.routers.ethereum-mainnet-erigon-archive-trace.rule=Host(`$DOMAIN`) && PathPrefix(`/ethereum-erigon`)}"
- "${NO_SSL:+traefik.http.routers.ethereum-mainnet-erigon-archive-trace.rule=PathPrefix(`/ethereum-erigon`)}"
- "traefik.http.routers.ethereum-mainnet-erigon-archive-trace.middlewares=ethereum-mainnet-erigon-archive-trace-stripprefix, ipwhitelist"
volumes:
ethereum-mainnet-erigon-archive-trace: