Files
ethereum-rpc-docker/ethereum/reth/ethereum-holesky-reth-archive-trace.yml
Para Dox a549aadb5b fix
2025-04-12 13:11:53 +07:00

112 lines
4.2 KiB
YAML

---
# use at your own risk
services:
ethereum-holesky-archive:
image: ${ETHEREUM_RETH_IMAGE:-ghcr.io/paradigmxyz/reth}:${ETHEREUM_HOLESKY_RETH_VERSION:-v1.3.8}
command:
- --authrpc.addr=0.0.0.0
- --authrpc.jwtsecret=/jwtsecret
- --chain=holesky
- --datadir=/root/.local/share/reth
- --http
- --http.addr=0.0.0.0
- --http.api=admin,debug,eth,net,trace,txpool,web3,rpc,reth,ots,flashbots,mev
- --http.corsdomain=*
- --http.port=8545
- --max-inbound-peers=50
- --max-outbound-peers=50
- --nat=extip:${IP}
- --port=10752
- --rpc.gascap=600000000
- --rpc.max-logs-per-response=1100000
- --ws
- --ws.addr=0.0.0.0
- --ws.api=admin,debug,eth,net,trace,txpool,web3,rpc,reth,ots,flashbots,mev
- --ws.origins=*
- --ws.port=8545
entrypoint: [reth, node]
restart: unless-stopped
user: root
stop_grace_period: 5m
networks:
- chains
ports:
- 10752:10752
- 10752:10752/udp
expose:
- 8545
- 8551
volumes:
- ${ETHEREUM_HOLESKY_RETH_ARCHIVE_TRACE_DATA:-ethereum-holesky-reth-archive-trace}:/root/.local/share/reth
- .jwtsecret:/jwtsecret:ro
- /slowdisk:/slowdisk
labels:
- traefik.enable=true
- traefik.http.middlewares.ethereum-holesky-reth-archive-trace-stripprefix.stripprefix.prefixes=/ethereum-holesky-archive
- traefik.http.services.ethereum-holesky-reth-archive-trace.loadbalancer.server.port=8545
- ${NO_SSL:-traefik.http.routers.ethereum-holesky-reth-archive-trace.entrypoints=websecure}
- ${NO_SSL:-traefik.http.routers.ethereum-holesky-reth-archive-trace.tls.certresolver=myresolver}
- ${NO_SSL:-traefik.http.routers.ethereum-holesky-reth-archive-trace.rule=Host(`$DOMAIN`) && PathPrefix(`/ethereum-holesky-archive`)}
- ${NO_SSL:+traefik.http.routers.ethereum-holesky-reth-archive-trace.rule=PathPrefix(`/ethereum-holesky-archive`)}
- traefik.http.routers.ethereum-holesky-reth-archive-trace.middlewares=ethereum-holesky-reth-archive-trace-stripprefix, ipwhitelist
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
ulimits:
nofile: 1048576 # Max open files (for RPC/WS connections)
memlock: -1 # Disable memory locking limits (for in-memory DBs like MDBX)
ethereum-holesky-archive-node:
image: ${ETHEREUM_PRYSM_IMAGE:-prysmaticlabs/prysm-beacon-chain}:${ETHEREUM_HOLESKY_PRYSM_VERSION:-v5.3.1}
command:
- --accept-terms-of-use
- --beacon-db-pruning
- --checkpoint-sync-url=https://holesky.beaconstate.info
- --datadir=/data
- --enable-historical-state-representation=false
- --execution-endpoint=http://ethereum-holesky-archive:8551
- --grpc-gateway-host=0.0.0.0
- --holesky
- --jwt-secret=/jwtsecret
- --monitoring-host=0.0.0.0
- --p2p-tcp-port=15752
- --p2p-udp-port=15752
- --rpc-host=0.0.0.0
restart: unless-stopped
networks:
- chains
ports:
- 15752:15752
- 15752:15752/udp
volumes:
- ${ETHEREUM_HOLESKY_RETH_ARCHIVE_TRACE__PRYSM_DATA:-ethereum-holesky-reth-archive-trace_prysm}:/data
- .jwtsecret:/jwtsecret:ro
volumes:
ethereum-holesky-reth-archive-trace:
ethereum-holesky-reth-archive-trace_prysm:
x-upstreams:
- id: $${ID}
labels:
provider: $${PROVIDER}
chain: holesky
method-groups:
enabled:
- debug
- filter
- trace
methods:
disabled:
enabled:
- name: txpool_content # TODO: should be disabled for rollup nodes
...