-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.nethermind-lighthouse.yml
110 lines (105 loc) · 3.18 KB
/
docker-compose.nethermind-lighthouse.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
version: "3.8"
services:
nethermind:
image: nethermind/nethermind:$NETHERMIND_VERSION
container_name: nethermind
volumes:
- $EXECUTION_DATA_VOLUME:/execution_data
- $CONFIGS_VOLUME:/configs
restart: unless-stopped
stop_signal: SIGINT
stop_grace_period: 2m
command: >
--config=none.cfg
--Init.ChainSpecPath=/configs/chainspec.json
--Init.GenesisHash=$GENESIS_HASH
--Init.BaseDbPath=/execution_data
--Sync.SnapSync=true
--JsonRpc.Host=localhost
--JsonRpc.Port=8551
--JsonRpc.Enabled=true
--JsonRpc.EnabledModules=["eth","web3","net","engine"]
--JsonRpc.JwtSecretFile=/configs/jwt.hex
--Discovery.Bootnodes=$EXECUTION_BOOTSTRAP_NODE_1,$EXECUTION_BOOTSTRAP_NODE_2
--Merge.Enabled=true
--KeyStore.KeyStoreDirectory=/execution_data/keystore
--Network.MaxActivePeers=50
network_mode: host
logging:
driver: "local"
options:
max-size: "100m"
lighthouse:
image: sigp/lighthouse:$LIGHTHOUSE_VERSION
container_name: lighthouse
restart: unless-stopped
depends_on:
- nethermind
volumes:
- $CONSENSUS_DATA_VOLUME:/consensus_data
- $CONFIGS_VOLUME:/configs
command:
- lighthouse
- --testnet-dir=/configs
- bn
- --datadir=/consensus_data
- --listen-address=0.0.0.0
- --eth1
- --http
- --http-address=0.0.0.0
- --http-port=4000
- --enr-udp-port=9000
- --enr-tcp-port=9000
- --target-peers=100
- --discovery-port=9000
- --enable-private-discovery
- --enr-address=$EXTERNAL_IP
- --execution-jwt=/configs/jwt.hex
- --execution-endpoint=http://localhost:8551
- --metrics
- --metrics-address=0.0.0.0
- --metrics-allow-origin=*
- --metrics-port=5054
- --suggested-fee-recipient=$FEE_RECIPIENT
- --boot-nodes=$CONSENSUS_BOOTSTRAP_NODE_1,$CONSENSUS_BOOTSTRAP_NODE_2
- --slots-per-restore-point=32
- --checkpoint-sync-url=$CHECKPOINT_SYNC_URL
network_mode: host
lighthouse-validator-import:
image: sigp/lighthouse:$LIGHTHOUSE_VERSION
container_name: lighthouse-validator-import
volumes:
- $KEYSTORE_VOLUME:/keystore
- $VALIDATOR_DATA_VOLUME:/validator_data
- $TMP_VOLUME:/tmp/secrets
command: >
lighthouse am validator import
--datadir=/validator_data
--directory=/keystore
--password-file=/tmp/secrets/password.txt
--reuse-password
lighthouse-validator:
image: sigp/lighthouse:$LIGHTHOUSE_VERSION
container_name: lighthouse-validator
depends_on:
lighthouse:
condition: service_started
lighthouse-validator-import:
condition: service_completed_successfully
volumes:
- $VALIDATOR_DATA_VOLUME:/validator_data
- $CONFIGS_VOLUME:/configs
restart: unless-stopped
stop_signal: SIGINT
stop_grace_period: 2m
command: >
lighthouse vc
--testnet-dir=/configs
--validators-dir=/validator_data/validators
--beacon-nodes=http://127.0.0.1:4000
--init-slashing-protection
--http
--http-port=5062
--metrics
--metrics-port=5057
network_mode: host