-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
456 lines (428 loc) · 11.6 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
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
version: '3.4'
volumes:
lighthouse_data:
prysm_data:
lodestar_data:
config_data:
teku_data:
x-geth: &geth
build:
context: ./geth
dockerfile: Dockerfile.geth
depends_on:
genesis-generator:
condition: service_completed_successfully
entrypoint: geth.sh
healthcheck:
test: ["CMD", "curl", "--fail", "localhost:8545"]
interval: 2s
timeout: 2s
retries: 40
start_period: 1s
volumes:
- 'config_data:/config_data'
- type: bind
source: ./geth/geth.sh
target: /usr/local/bin/geth.sh
x-nethermind: &nethermind
image: nethermindeth/nethermind:eip-4844-v4-workaround
depends_on:
genesis-generator:
condition: service_completed_successfully
entrypoint: 'nethermind.sh'
healthcheck:
test: ["CMD", "curl", "--fail", "localhost:8545"]
interval: 2s
timeout: 2s
retries: 40
start_period: 1s
volumes:
- 'config_data:/config_data'
- type: bind
source: ./nethermind/nethermind.sh
target: /usr/local/bin/nethermind.sh
x-besu: &besu
depends_on:
genesis-generator:
condition: service_completed_successfully
entrypoint: 'besu.sh'
build:
context: .
dockerfile: besu/Dockerfile.besu
healthcheck:
test: ["CMD", "curl", "--fail", "localhost:8545"]
interval: 2s
timeout: 2s
retries: 40
start_period: 1s
volumes:
- 'config_data:/config_data'
- type: bind
source: ./besu/besu.sh
target: /usr/local/bin/besu.sh
- type: bind
source: ./besu/log4j2.xml
target: /opt/besu/log4j2.xml
x-prysm-beacon-node-env: &prysm-bn-env
TRACING_ENDPOINT: http://jaeger-tracing:14268/api/traces
PROCESS_NAME: beacon-node
VERBOSITY: debug
P2P_TCP_PORT: 13000
MIN_SYNC_PEERS: 0
x-prysm-beacon-node: &prysm-bn
depends_on:
bootnode:
condition: service_started
jaeger-tracing:
condition: service_started
genesis-generator:
condition: service_completed_successfully
build:
context: ./prysm
dockerfile: Dockerfile.prysm
healthcheck:
test: ["CMD", "curl", "--fail", "localhost:3500/eth/v1/node/health"]
interval: 2s
timeout: 2s
retries: 40
start_period: 1s
entrypoint: run_beacon_node.sh
volumes:
- 'config_data:/config_data'
- type: bind
source: ./prysm/run_beacon_node.sh
target: /usr/local/bin/run_beacon_node.sh
x-lighthouse-beacon-node: &lighthouse-bn
build:
context: ./lighthouse
dockerfile: Dockerfile.lighthouse
entrypoint: ["run_beacon_node.sh", "-d", "debug", "/data/node_1", "http://geth-1:8551"]
environment:
- P2P_PORT=9000
ports:
- "5052:5052"
- "8000:8000"
- "9000:9000"
volumes:
- lighthouse_data:/data
- config_data:/config_data
- type: bind
source: ./lighthouse/run_beacon_node.sh
target: /usr/local/bin/run_beacon_node.sh
- type: bind
source: ./shared/trusted_setup.txt
target: /config/trusted_setup.txt
- type: bind
source: ./shared/jwtsecret
target: /config/jwtsecret
services:
genesis-generator:
# image: fab10/ethereum-genesis-generator:eip4844
build:
context: ./ethereum-genesis-generator
dockerfile: Dockerfile
entrypoint: run_genesis_generator.sh
volumes:
- ./shared/run_genesis_generator.sh:/usr/local/bin/run_genesis_generator.sh
- ./shared/genesis-generator-configs:/config
- ./shared/generated-configs:/gen-configs
- lighthouse_data:/lighthouse_data
- prysm_data:/prysm_data
- lodestar_data:/lodestar_data
- teku_data:/teku_data
- config_data:/data
geth-1:
<<: *geth
ports:
- '8545:8545'
- '8551:8551'
geth-2:
<<: *geth
ports:
- '8546:8545'
- '8552:8551'
geth-3:
<<: *geth
ports:
- '8547:8545'
- '8553:8551'
nethermind-1:
<<: *nethermind
ports:
- '9545:8545'
nethermind-2:
<<: *nethermind
ports:
- '9546:8545'
besu-1:
<<: *besu
ports:
- '7551:8551'
- '7545:8545'
- '5005:5005'
ethereumjs:
image: g11tech/ethereumjs:jan23
depends_on:
genesis-generator:
condition: service_completed_successfully
command: >
--dataDir=/db
--gethGenesis=/config_data/custom_config_data/genesis.json
--rpc
--rpcAddr=0.0.0.0
--rpcCors="*"
--rpcEngine
--rpcEngineAddr=0.0.0.0
--logLevel=debug
--jwt-secret=/config_data/el/jwtsecret
ports:
- '11545:8545'
volumes:
- 'config_data:/config_data'
- type: bind
source: ./lodestar/run_beacon_node.sh
target: /usr/local/bin/run_beacon_node.sh
# TODO: move bootnode to genesis-generator
bootnode:
depends_on:
genesis-generator:
condition: service_completed_successfully
build:
context: ./lighthouse
dockerfile: Dockerfile.lighthouse
pull_policy: never
command: run_bootnode.sh
volumes:
- lighthouse_data:/data
- config_data:/config_data
- ./shared/genesis-generator-configs:/config
- type: bind
source: ./lighthouse/run_bootnode.sh
target: /usr/local/bin/run_bootnode.sh
prysm-beacon-node:
<<: *prysm-bn
depends_on:
geth-1:
condition: service_started
bootnode:
condition: service_started
jaeger-tracing:
condition: service_started
genesis-generator:
condition: service_completed_successfully
environment:
<<: *prysm-bn-env
EXECUTION_NODE_URL: http://geth-1:8551
PROCESS_NAME: beacon-node
MIN_SYNC_PEERS: 0
ports:
- '3500:3500'
- '4000:4000'
- '13000:13000'
prysm-beacon-node-besu-el:
<<: *prysm-bn
depends_on:
besu-1:
condition: service_started
bootnode:
condition: service_started
jaeger-tracing:
condition: service_started
genesis-generator:
condition: service_completed_successfully
environment:
<<: *prysm-bn-env
EXECUTION_NODE_URL: http://besu-1:8551
PROCESS_NAME: beacon-node
MIN_SYNC_PEERS: 0
ports:
- '3500:3500'
- '4000:4000'
- '13000:13000'
prysm-beacon-node-follower:
<<: *prysm-bn
depends_on:
geth-2:
condition: service_started
bootnode:
condition: service_started
jaeger-tracing:
condition: service_started
genesis-generator:
condition: service_completed_successfully
environment:
<<: *prysm-bn-env
EXECUTION_NODE_URL: http://geth-2:8551
PROCESS_NAME: beacon-node-follower
P2P_TCP_PORT: 13001
MIN_SYNC_PEERS: 1
ports:
- '3501:3500'
- '4001:4000'
- '13001:13001'
prysm-validator-node:
depends_on:
prysm-beacon-node:
condition: service_started
jaeger-tracing:
condition: service_started
genesis-generator:
condition: service_completed_successfully
build:
context: ./prysm
dockerfile: Dockerfile.prysm
command: >
validator
--accept-terms-of-use
--beacon-rpc-provider prysm-beacon-node:4000
--rpc
--grpc-gateway-host 0.0.0.0
--grpc-gateway-port 7500
--force-clear-db
--chain-config-file=/config_data/custom_config_data/config.yaml
--suggested-fee-recipient 0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b
--wallet-password-file=/prysm_data/wallet_pass.txt
--wallet-dir=/prysm_data/wallet
--enable-tracing
--tracing-endpoint http://jaeger-tracing:14268/api/traces
--tracing-process-name validator-node
--verbosity trace
ports:
- '7500:7500'
volumes:
- 'config_data:/config_data'
- 'prysm_data:/prysm_data'
prysm-validator-node-besu-el:
depends_on:
prysm-beacon-node-besu-el:
condition: service_started
jaeger-tracing:
condition: service_started
genesis-generator:
condition: service_completed_successfully
build:
context: ./prysm
dockerfile: Dockerfile.prysm
command: >
validator
--accept-terms-of-use
--beacon-rpc-provider prysm-beacon-node-besu-el:4000
--rpc
--grpc-gateway-host 0.0.0.0
--grpc-gateway-port 7500
--force-clear-db
--chain-config-file=/config_data/custom_config_data/config.yaml
--suggested-fee-recipient 0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b
--wallet-password-file=/prysm_data/wallet_pass.txt
--wallet-dir=/prysm_data/wallet
--enable-tracing
--tracing-endpoint http://jaeger-tracing:14268/api/traces
--tracing-process-name validator-node
--verbosity trace
ports:
- '7500:7500'
volumes:
- 'config_data:/config_data'
- 'prysm_data:/prysm_data'
lodestar-beacon-node:
depends_on:
bootnode:
condition: service_started
geth-3:
condition: service_healthy
genesis-generator:
condition: service_completed_successfully
image: g11tech/lodestar:4844-jan23
environment:
EXECUTION_NODE_URL: http://geth-3:8551
entrypoint: ['run_beacon_node.sh']
ports:
- '3600:3500'
- '14000:13000'
volumes:
- 'config_data:/config_data'
- type: bind
source: ./lodestar/run_beacon_node.sh
target: /usr/local/bin/run_beacon_node.sh
lodestar-validator-node:
depends_on:
- lodestar-beacon-node
image: g11tech/lodestar:4844-jan23
command: >
validator
--paramsFile /config_data/custom_config_data/config.yaml
--force
--dataDir /chaindata/validator
--keystoresDir /lodestar_data/keystores
--secretsDir /lodestar_data/secrets
--server http://lodestar-beacon-node:3500
--suggestedFeeRecipient 0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b
volumes:
- 'config_data:/config_data'
- 'lodestar_data:/lodestar_data'
lighthouse-beacon-node:
<<: *lighthouse-bn
depends_on:
bootnode:
condition: service_started
geth-1:
condition: service_started
genesis-generator:
condition: service_completed_successfully
entrypoint: ["run_beacon_node.sh", "-d", "debug", "/data/node_1", "http://geth-1:8551"]
environment:
- P2P_PORT=9000
ports:
- "5052:5052"
- "8000:8000"
- "9000:9000"
lighthouse-beacon-node-follower:
<<: *lighthouse-bn
depends_on:
bootnode:
condition: service_started
geth-2:
condition: service_started
genesis-generator:
condition: service_completed_successfully
entrypoint: ["run_beacon_node.sh", "-d", "debug", "/data/node_2", "http://geth-2:8551"]
environment:
- P2P_PORT=9001
ports:
- "5053:5052"
- "8001:8000"
- "9001:9001"
lighthouse-validator-node:
depends_on:
lighthouse-beacon-node:
condition: service_started
genesis-generator:
condition: service_completed_successfully
build:
context: ./lighthouse
dockerfile: Dockerfile.lighthouse
command: >
lighthouse
--debug-level info
vc
--validators-dir /data/validators
--secrets-dir /data/secrets
--testnet-dir /config_data/custom_config_data
--init-slashing-protection
--beacon-nodes http://lighthouse-beacon-node:8000
--suggested-fee-recipient 0x690B9A9E9aa1C9dB991C7721a92d351Db4FaC990
volumes:
- lighthouse_data:/data
- config_data:/config_data
jaeger-tracing:
image: jaegertracing/all-in-one:1.35
environment:
COLLECTOR_ZIPKIN_HTTP_PORT: 9411
ports:
- '5775:5775/udp'
- '6831:6831/udp'
- '6832:6832/udp'
- '5778:5778'
- '16686:16686'
- '14268:14268'
- '9411:9411'