Skip to content

Instantly share code, notes, and snippets.

@magicstone1412
Created October 17, 2025 02:28
Show Gist options
  • Save magicstone1412/8bb38c7ec20f800bd25f23d1147fb339 to your computer and use it in GitHub Desktop.
Save magicstone1412/8bb38c7ec20f800bd25f23d1147fb339 to your computer and use it in GitHub Desktop.
Run your own RPC and Beacon
services:
reth:
image: ghcr.io/paradigmxyz/reth:v1.3.12
container_name: reth
restart: unless-stopped
command:
- node
- --chain
- sepolia
- --http
- --http.addr
- 0.0.0.0
- --http.port
- "8545"
- --ws
- --ws.addr
- 0.0.0.0
- --ws.port
- "8546"
- --authrpc.addr
- 0.0.0.0
- --authrpc.port
- "8551"
- --authrpc.jwtsecret
- /jwt/jwt.hex
- --datadir
- /data
- --metrics
- 0.0.0.0:9001
# - --full
ports:
- "8545:8545" # HTTP RPC
- "8546:8546" # WebSocket RPC
- "8551:8551" # Auth RPC
- "30303:30303/tcp" # P2P TCP
- "30303:30303/udp" # P2P UDP
volumes:
- ./execution:/data
- ./jwt:/jwt
- ./reth.toml:/data/reth.toml:ro
networks:
- eth-net
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8545"]
interval: 30s
timeout: 10s
retries: 3
lighthouse-beacon:
image: sigp/lighthouse:v8.0.0-rc.1
container_name: lighthouse-beacon
restart: unless-stopped
depends_on:
- reth
command:
- lighthouse
- beacon
- --network
- sepolia
- --checkpoint-sync-url
- https://sepolia.beaconstate.info
- --execution-endpoint
- http://reth:8551
- --execution-jwt
- /jwt/jwt.hex
- --http
- --http-address
- 0.0.0.0
- --http-port
- "5052"
- --metrics
- --metrics-address
- 0.0.0.0
- --metrics-port
- "8008"
- --datadir
- /data
- --supernode
ports:
- "5052:5052" # HTTP API
- "9000:9000/tcp" # P2P TCP
- "9000:9000/udp" # P2P UDP
volumes:
- ./beacon/data:/data
- ./jwt:/jwt
networks:
- eth-net
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5052/lighthouse/health"]
interval: 30s
timeout: 10s
retries: 3
networks:
eth-net:
driver: bridge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment