Skip to content

Instantly share code, notes, and snippets.

@wouterds
Created August 25, 2024 09:25
Show Gist options
  • Save wouterds/82a0a1d33a74aa3eae769ccf338b97c6 to your computer and use it in GitHub Desktop.
Save wouterds/82a0a1d33a74aa3eae769ccf338b97c6 to your computer and use it in GitHub Desktop.
Ethereum full node using Docker
services:
geth:
image: ethereum/client-go:latest
container_name: geth
restart: unless-stopped
ports:
- "30303:30303/tcp"
- "30303:30303/udp"
- "8545:8545"
volumes:
- /mnt/volume_ams3_01/geth-data:/root/.ethereum
- ./jwt.hex:/root/.ethereum/jwt.hex
command:
- --http
- --http.addr=0.0.0.0
- --http.vhosts=*
- --http.api=eth,net,engine,admin
- --syncmode=full
- --datadir=/root/.ethereum
- --authrpc.addr=0.0.0.0
- --authrpc.port=8551
- --authrpc.vhosts=*
- --authrpc.jwtsecret=/root/.ethereum/jwt.hex
lighthouse:
image: sigp/lighthouse:latest
container_name: lighthouse
restart: unless-stopped
ports:
- "9000:9000/tcp"
- "9000:9000/udp"
volumes:
- /mnt/volume_ams3_01/lighthouse-data:/root/.lighthouse
- ./jwt.hex:/root/.lighthouse/jwt.hex
command:
- lighthouse
- bn
- --network=mainnet
- --execution-endpoint=http://geth:8551
- --execution-jwt=/root/.lighthouse/jwt.hex
- --checkpoint-sync-url=http://beaconstate.info
- --http
- --http-address=0.0.0.0
depends_on:
- geth
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment