-
Notifications
You must be signed in to change notification settings - Fork 20
/
docker-compose.yml
284 lines (261 loc) · 9.41 KB
/
docker-compose.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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
version: "3.8"
x-node-base:
# Pegged charon version (update this for each release).
&node-base
image: obolnetwork/charon:${CHARON_VERSION:-v1.1.1}
restart: unless-stopped
networks: [ cluster ]
depends_on: [ relay ]
volumes:
- ./.charon:/opt/charon/.charon/
x-node-env:
&node-env
CHARON_BEACON_NODE_ENDPOINTS: ${CHARON_BEACON_NODE_ENDPOINTS:-http://lighthouse:5052}
CHARON_LOG_LEVEL: ${CHARON_LOG_LEVEL:-info}
CHARON_LOG_FORMAT: ${CHARON_LOG_FORMAT:-console}
CHARON_P2P_EXTERNAL_HOSTNAME: ${CHARON_P2P_EXTERNAL_HOSTNAME:-} # Empty default required to avoid warnings.
CHARON_P2P_RELAYS: ${CHARON_P2P_RELAYS:-http://relay:3640/enr}
CHARON_P2P_TCP_ADDRESS: ${CHARON_P2P_TCP_ADDRESS:-0.0.0.0:3610}
CHARON_VALIDATOR_API_ADDRESS: ${CHARON_VALIDATOR_API_ADDRESS:-0.0.0.0:3600}
CHARON_MONITORING_ADDRESS: ${CHARON_MONITORING_ADDRESS:-0.0.0.0:3620}
CHARON_JAEGER_ADDRESS: ${CHARON_JAEGER_ADDRESS-jaeger:6831} # Overriding to empty address allowed
services:
# _ _ _ _
# _ __ ___| |_| |__ ___ _ __ _ __ ___ (_)_ __ __| |
# | '_ \ / _ \ __| '_ \ / _ \ '__| '_ ` _ \| | '_ \ / _` |
# | | | | __/ |_| | | | __/ | | | | | | | | | | | (_| |
# |_| |_|\___|\__|_| |_|\___|_| |_| |_| |_|_|_| |_|\__,_|
nethermind:
image: nethermind/nethermind:${NETHERMIND_VERSION:-1.25.4}
restart: unless-stopped
ports:
- ${NETHERMIND_PORT_P2P:-30303}:30303/tcp # P2P TCP
- ${NETHERMIND_PORT_P2P:-30303}:30303/udp # P2P UDP
- ${NETHERMIND_PORT_HTTP:-8545}:8545 # JSON-RPC
- ${NETHERMIND_PORT_ENGINE:-8551}:8551 # ENGINE-API
command: |
--config=${ETH2_NETWORK:-holesky}
--datadir=data
--HealthChecks.Enabled=true
--JsonRpc.Enabled=true
--JsonRpc.JwtSecretFile="/root/jwt/jwt.hex"
--JsonRpc.EngineHost=0.0.0.0
--JsonRpc.EnginePort=8551
--JsonRpc.Host=0.0.0.0
--JsonRpc.Port=8545
--Sync.SnapSync=true
--Sync.AncientBodiesBarrier=4367322
--Sync.AncientReceiptsBarrier=4367322
networks: [ cluster ]
volumes:
- ./data/nethermind:/nethermind/data
- ./jwt:/root/jwt
# _ _ _ _ _
# | (_) __ _| |__ | |_| |__ ___ _ _ ___ ___
# | | |/ _` | '_ \| __| '_ \ / _ \| | | / __|/ _ \
# | | | (_| | | | | |_| | | | (_) | |_| \__ \ __/
# |_|_|\__, |_| |_|\__|_| |_|\___/ \__,_|___/\___|
# |___/
lighthouse:
image: sigp/lighthouse:${LIGHTHOUSE_VERSION:-v5.3.0}
ports:
- ${LIGHTHOUSE_PORT_P2P:-9000}:9000/tcp # P2P TCP
- ${LIGHTHOUSE_PORT_P2P:-9000}:9000/udp # P2P UDP
- ${LIGHTHOUSE_PORT_HTTP:-5052}:5052 # HTTP API
- ${LIGHTHOUSE_PORT_METRICS:-5054}:5054 # Metrics
command: |
lighthouse bn
--network=${ETH2_NETWORK:-holesky}
--checkpoint-sync-url=https://checkpoint-sync.holesky.ethpandaops.io/
--execution-endpoint=${LIGHTHOUSE_EXECUTION_ENDPOINT:-http://nethermind:8551}
--execution-jwt=/opt/jwt/jwt.hex
--datadir=/opt/app/beacon/
--debug-level=info
--http
--http-address=0.0.0.0
--http-port=5052
--metrics
--metrics-address=0.0.0.0
--metrics-port=5054
--metrics-allow-origin="*"
networks: [ cluster ]
volumes:
- ./data/lighthouse:/opt/app/beacon
- ./jwt:/opt/jwt
restart: unless-stopped
# _ _ _ _
# ___| |__ __ _ _ __ ___ _ __ ___| (_) ___ _ __ | |_ ___
# / __| '_ \ / _` | '__/ _ \| '_ \ / __| | |/ _ \ '_ \| __/ __|
# | (__| | | | (_| | | | (_) | | | | | (__| | | __/ | | | |_\__ \
# \___|_| |_|\__,_|_| \___/|_| |_| \___|_|_|\___|_| |_|\__|___/
node0:
<<: *node-base
environment:
<<: *node-env
CHARON_PRIVATE_KEY_FILE: /opt/charon/.charon/cluster/node0/charon-enr-private-key
CHARON_LOCK_FILE: /opt/charon/.charon/cluster/node0/cluster-lock.json
CHARON_JAEGER_SERVICE: node0
CHARON_P2P_EXTERNAL_HOSTNAME: node0
node1:
<<: *node-base
environment:
<<: *node-env
CHARON_PRIVATE_KEY_FILE: /opt/charon/.charon/cluster/node1/charon-enr-private-key
CHARON_LOCK_FILE: /opt/charon/.charon/cluster/node1/cluster-lock.json
CHARON_JAEGER_SERVICE: node1
CHARON_P2P_EXTERNAL_HOSTNAME: node1
node2:
<<: *node-base
environment:
<<: *node-env
CHARON_PRIVATE_KEY_FILE: /opt/charon/.charon/cluster/node2/charon-enr-private-key
CHARON_LOCK_FILE: /opt/charon/.charon/cluster/node2/cluster-lock.json
CHARON_JAEGER_SERVICE: node2
CHARON_P2P_EXTERNAL_HOSTNAME: node2
node3:
<<: *node-base
environment:
<<: *node-env
CHARON_PRIVATE_KEY_FILE: /opt/charon/.charon/cluster/node3/charon-enr-private-key
CHARON_LOCK_FILE: /opt/charon/.charon/cluster/node3/cluster-lock.json
CHARON_JAEGER_SERVICE: node3
CHARON_P2P_EXTERNAL_HOSTNAME: node3
node4:
<<: *node-base
environment:
<<: *node-env
CHARON_PRIVATE_KEY_FILE: /opt/charon/.charon/cluster/node4/charon-enr-private-key
CHARON_LOCK_FILE: /opt/charon/.charon/cluster/node4/cluster-lock.json
CHARON_JAEGER_SERVICE: node4
CHARON_P2P_EXTERNAL_HOSTNAME: node4
node5:
<<: *node-base
environment:
<<: *node-env
CHARON_PRIVATE_KEY_FILE: /opt/charon/.charon/cluster/node5/charon-enr-private-key
CHARON_LOCK_FILE: /opt/charon/.charon/cluster/node5/cluster-lock.json
CHARON_JAEGER_SERVICE: node5
CHARON_P2P_EXTERNAL_HOSTNAME: node5
relay:
<<: *node-base
command: relay
depends_on: []
environment:
<<: *node-env
CHARON_HTTP_ADDRESS: 0.0.0.0:3640
CHARON_DATA_DIR: /opt/charon/relay
CHARON_P2P_RELAYS: ""
CHARON_P2P_EXTERNAL_HOSTNAME: relay
volumes:
- ./relay:/opt/charon/relay:rw
# _ _ _ _
# __ ____ _| (_) __| | __ _| |_ ___ _ __ ___
# \ \ / / _` | | |/ _` |/ _` | __/ _ \| '__/ __|
# \ V / (_| | | | (_| | (_| | || (_) | | \__ \
# \_/ \__,_|_|_|\__,_|\__,_|\__\___/|_| |___/
vc0-lighthouse:
image: sigp/lighthouse:${LIGHTHOUSE_VERSION:-v5.3.0}
entrypoint: /opt/lighthouse/run.sh
networks: [ cluster ]
depends_on: [ node0 ]
restart: unless-stopped
environment:
LIGHTHOUSE_BEACON_NODE_ADDRESS: http://node0:3600
ETH2_NETWORK: ${ETH2_NETWORK:-holesky}
volumes:
- ./lighthouse/run.sh:/opt/lighthouse/run.sh
- .charon/cluster/node0/validator_keys:/opt/charon/keys
vc1-teku:
image: consensys/teku:${TEKU_VERSION:-24.8.0}
networks: [ cluster ]
depends_on: [ node1 ]
restart: unless-stopped
command: |
validator-client
--beacon-node-api-endpoint="http://node1:3600"
--config-file "/opt/charon/teku/teku-config.yaml"
--Xblock-v3-enabled=false
volumes:
- .charon/cluster/node1/validator_keys:/opt/charon/validator_keys
- ./teku:/opt/charon/teku
vc2-nimbus:
build: nimbus
networks: [ cluster ]
depends_on: [ node2 ]
restart: unless-stopped
environment:
NODE: node2
volumes:
- .charon/cluster/node2/validator_keys:/home/validator_keys
- ./nimbus:/home/user/data
vc3-lighthouse:
image: sigp/lighthouse:${LIGHTHOUSE_VERSION:-v5.3.0}
entrypoint: /opt/lighthouse/run.sh
networks: [ cluster ]
depends_on: [ node3 ]
restart: unless-stopped
environment:
LIGHTHOUSE_BEACON_NODE_ADDRESS: http://node3:3600
ETH2_NETWORK: ${ETH2_NETWORK:-holesky}
volumes:
- ./lighthouse/run.sh:/opt/lighthouse/run.sh
- .charon/cluster/node3/validator_keys:/opt/charon/keys
vc4-teku:
image: consensys/teku:${TEKU_VERSION:-24.8.0}
networks: [ cluster ]
depends_on: [ node4 ]
restart: unless-stopped
command: |
validator-client
--beacon-node-api-endpoint="http://node4:3600"
--config-file "/opt/charon/teku/teku-config.yaml"
--Xblock-v3-enabled=false
volumes:
- .charon/cluster/node4/validator_keys:/opt/charon/validator_keys
- ./teku:/opt/charon/teku
vc5-nimbus:
build: nimbus
networks: [ cluster ]
depends_on: [ node5 ]
restart: unless-stopped
environment:
NODE: node5
volumes:
- .charon/cluster/node5/validator_keys:/home/validator_keys
- ./nimbus:/home/user/data
# _ _ _
# _ __ ___ ___ _ __ (_) |_ ___ _ __(_)_ __ __ _
# | '_ ` _ \ / _ \| '_ \| | __/ _ \| '__| | '_ \ / _` |
# | | | | | | (_) | | | | | || (_) | | | | | | | (_| |
# |_| |_| |_|\___/|_| |_|_|\__\___/|_| |_|_| |_|\__, |
# |___/
prometheus:
image: prom/prometheus:${PROMETHEUS_VERSION:-v2.50.1}
ports:
- "9090:9090"
networks: [ cluster ]
volumes:
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
grafana:
image: grafana/grafana:${GRAFANA_VERSION:-10.3.3}
ports:
- "3000:3000"
networks: [ cluster ]
depends_on: [ prometheus ]
volumes:
- ./grafana/datasource.yml:/etc/grafana/provisioning/datasources/datasource.yml
- ./grafana/dashboards.yml:/etc/grafana/provisioning/dashboards/datasource.yml
- ./grafana/grafana.ini:/etc/grafana/grafana.ini:ro
- ./grafana/dashboards:/etc/dashboards
node-exporter:
image: prom/node-exporter:${NODE_EXPORTER_VERSION:-v1.7.0}
ports:
- "9100:9100"
networks: [ cluster ]
jaeger:
image: jaegertracing/all-in-one:${JAEGAR_VERSION:-1.55.0}
networks: [ cluster ]
ports:
- "16686:16686"
networks:
cluster: