The execution service handles the execution layer of the node. It exposes RPC, websocket, metrics, and P2P ports. Data is persisted via a volume mapped to the host directory defined by HOST_DATA_DIR (defaults to ./reth-data). Network-specific configurations are loaded from the file specified by NETWORK_ENV (defaults to .env.mainnet).
services:
execution:
ports:
- "8545:8545" # RPC
- "8546:8546" # websocket
- "7301:6060" # metrics
- "30303:30303" # P2P TCP
- "30303:30303/udp" # P2P UDP
volumes:
- ${HOST_DATA_DIR:-./reth-data}:/data
env_file:
- ${NETWORK_ENV:-.env.mainnet}