Created
August 25, 2024 09:25
-
-
Save wouterds/82a0a1d33a74aa3eae769ccf338b97c6 to your computer and use it in GitHub Desktop.
Ethereum full node using Docker
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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