Last active
January 31, 2021 00:35
-
-
Save clifton/faf712f8abece24b12a77cf1d7eb7622 to your computer and use it in GitHub Desktop.
lighthouse beacon + validator
This file contains 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
version: "3.8" | |
services: | |
lighthouse-base: | |
image: sigp/lighthouse | |
volumes: | |
- .lighthouse:/root/.lighthouse | |
- ./validator_keys:/root/validator_keys | |
command: echo ok | |
beacon: | |
extends: lighthouse-base | |
ports: | |
- 9000:9000 | |
- 9000:9000/udp | |
- 5052:5052 | |
- 5053:5053 | |
restart: unless-stopped | |
command: >- | |
lighthouse --network mainnet beacon | |
--staking --validator-monitor | |
--eth1-endpoints $ETH1_ENDPOINT | |
--http --http-address 0.0.0.0 --http-port 5052 | |
--metrics --metrics-address 0.0.0.0 --metrics-port 5053 | |
validator: | |
extends: lighthouse-base | |
restart: unless-stopped | |
links: | |
- beacon | |
ports: | |
- 5062:5062 | |
- 5064:5064 | |
command: >- | |
lighthouse --network mainnet validator_client | |
--beacon-node http://beacon:5052/ | |
--http --http-port 5062 | |
--metrics --metrics-address 0.0.0.0 --metrics-port 5064 | |
# dc run --rm -v validator_keys:/root/validator_keys lighthouse-base lighthouse --network mainnet account validator import --directory /root/validator_keys |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment