forked from Inphi/eip4844-interop
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
345 lines (330 loc) · 9.64 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
version: '3.4'
volumes:
geth_data:
geth_data2:
beacon_node_data:
beacon_node_follower_data:
lighthouse_shared_config:
lighthouse_data:
services:
execution-bootnode:
build:
context: ./geth
dockerfile: Dockerfile.geth
command: /usr/local/bin/bootnode.sh
volumes:
- type: bind
source: ./geth/bootnode.sh
target: /usr/local/bin/bootnode.sh
execution-node:
depends_on:
#- execution-bootnode
- lcli-build-genesis
build:
context: ./geth
dockerfile: Dockerfile.geth
ports:
- '8545:8545'
entrypoint: ["geth.sh"]
volumes:
- 'geth_data:/db'
- lighthouse_shared_config:/shared-configs
- type: bind
source: ./shared/jwtsecret
target: /config/jwtsecret
- type: bind
source: ./lighthouse/vars.env
target: /config/vars.env
- type: bind
source: ./geth/geth.sh
target: /usr/local/bin/geth.sh
execution-node-2:
depends_on:
- execution-node
build:
context: ./geth
dockerfile: Dockerfile.geth
ports:
- '8546:8545'
entrypoint: ["geth.sh"]
volumes:
- 'geth_data2:/db'
- lighthouse_shared_config:/shared-configs
- type: bind
source: ./shared/jwtsecret
target: /config/jwtsecret
- type: bind
source: ./lighthouse/vars.env
target: /config/vars.env
- type: bind
source: ./geth/geth.sh
target: /usr/local/bin/geth.sh
prysm-beacon-node:
depends_on:
- execution-node
- jaeger-tracing
build:
context: ./prysm
dockerfile: Dockerfile.prysm
environment:
EXECUTION_NODE_URL: http://execution-node:8545
TRACING_ENDPOINT: http://jaeger-tracing:14268/api/traces
PROCESS_NAME: beacon-node
VERBOSITY: debug
P2P_PRIV_KEY: /etc/prysm-priv-key
entrypoint:
['run_beacon_node.sh', '--min-sync-peers=0', '--bootstrap-node=']
ports:
- '3500:3500'
- '4000:4000'
- '13000:13000'
volumes:
- 'beacon_node_data:/chaindata'
- type: bind
source: ./shared/chain-config.yml
target: /config/chain-config.yml
- type: bind
source: ./prysm/run_beacon_node.sh
target: /usr/local/bin/run_beacon_node.sh
- type: bind
source: ./prysm/prysm-priv-key
target: /etc/prysm-priv-key
prysm-beacon-node-follower:
depends_on:
- execution-node-2
- prysm-beacon-node
- jaeger-tracing
build:
context: ./prysm
dockerfile: Dockerfile.prysm
environment:
EXECUTION_NODE_URL: http://execution-node-2:8545
TRACING_ENDPOINT: http://jaeger-tracing:14268/api/traces
PROCESS_NAME: beacon-node-follower
BEACON_NODE_RPC: http://prysm-beacon-node:3500
VERBOSITY: debug
P2P_PRIV_KEY: /etc/prysm-priv-key
entrypoint: run_beacon_node_peer.sh
ports:
- '3501:3500'
- '4001:4000'
- '13001:13000'
volumes:
- 'beacon_node_follower_data:/chaindata'
- type: bind
source: ./shared/chain-config.yml
target: /config/chain-config.yml
- type: bind
source: ./prysm/run_beacon_node.sh
target: /usr/local/bin/run_beacon_node.sh
- type: bind
source: ./prysm/run_beacon_node_peer.sh
target: /usr/local/bin/run_beacon_node_peer.sh
- type: bind
source: ./prysm/prysm-follower-priv-key
target: /etc/prysm-priv-key
prysm-validator-node:
depends_on:
- prysm-beacon-node
- jaeger-tracing
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
--interop-num-validators=4
--interop-start-index=0
--force-clear-db
--chain-config-file=/config/chain-config.yml
--suggested-fee-recipient 0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b
--enable-tracing
--tracing-endpoint http://jaeger-tracing:14268/api/traces
--tracing-process-name validator-node
ports:
- '7500:7500'
volumes:
- type: bind
source: ./shared/chain-config.yml
target: /config/chain-config.yml
lodestar-beacon-node:
depends_on:
- execution-node
build:
context: ./lodestar
dockerfile: Dockerfile.lodestar
environment:
EXECUTION_NODE_URL: http://execution-node:8545
PROCESS_NAME: lodestar-beacon-node
entrypoint: ['run_beacon_node.sh']
ports:
- '3500:3500'
- '13000:13000'
volumes:
- 'beacon_node_data:/chaindata'
- type: bind
source: ./shared/chain-config.yml
target: /config/chain-config.yml
- type: bind
source: ./lodestar/run_beacon_node.sh
target: /usr/local/bin/run_beacon_node.sh
lodestar-beacon-node-follower:
depends_on:
- execution-node-2
- lodestar-beacon-node
build:
context: ./lodestar
dockerfile: Dockerfile.lodestar
environment:
EXECUTION_NODE_URL: http://execution-node-2:8545
BEACON_NODE_RPC: http://lodestar-beacon-node:3500
PROCESS_NAME: lodestar-beacon-node-follower
VERBOSITY: debug
entrypoint: run_beacon_node_peer.sh
ports:
- '3501:3500'
- '13001:13000'
volumes:
- 'beacon_node_follower_data:/chaindata'
- type: bind
source: ./shared/chain-config.yml
target: /config/chain-config.yml
- type: bind
source: ./lodestar/run_beacon_node.sh
target: /usr/local/bin/run_beacon_node.sh
- type: bind
source: ./lodestar/run_beacon_node_peer.sh
target: /usr/local/bin/run_beacon_node_peer.sh
# TODO: temporary solution for generating genesis, remove this before merge
lcli-build-genesis:
build:
context: ./lighthouse
dockerfile: Dockerfile.lighthouse
image: lighthouse-interop
pull_policy: never
entrypoint: ["generate-genesis.sh"]
volumes:
- lighthouse_data:/data
- lighthouse_shared_config:/lighthouse_shared_config
- "./lighthouse/vars.env:/config/vars.env"
- type: bind
source: ./lighthouse/generate-genesis.sh
target: /usr/local/bin/generate-genesis.sh
- type: bind
source: ./lighthouse/genesis.json
target: /config/genesis.json
- type: bind
source: ./lighthouse/generated-genesis.json
target: /config/generated-genesis.json
- type: bind
source: ./lighthouse/generated-config.yaml
target: /config/generated-config.yaml
lighthouse-bootnode:
depends_on:
- lcli-build-genesis
image: lighthouse-interop
pull_policy: never
command: run_bootnode.sh
volumes:
- lighthouse_data:/data
- lighthouse_shared_config:/lighthouse_shared_config
- type: bind
source: ./lighthouse/run_bootnode.sh
target: /usr/local/bin/run_bootnode.sh
- type: bind
source: ./lighthouse/vars.env
target: /config/vars.env
lighthouse-beacon-node:
depends_on:
- lighthouse-bootnode
- execution-node
- lcli-build-genesis
# build:
# context: ./lighthouse
# dockerfile: Dockerfile.lighthouse
image: lighthouse-interop
pull_policy: never
entrypoint: ["run_beacon_node.sh", "-d", "debug", "/data/node_1", "http://execution-node:8551"]
environment:
- P2P_PORT=9000
ports:
- "5052:5052"
- "8000:8000"
- "9000:9000"
volumes:
- lighthouse_data:/data
- lighthouse_shared_config:/lighthouse_shared_config
- type: bind
source: ./lighthouse/run_beacon_node.sh
target: /usr/local/bin/run_beacon_node.sh
- type: bind
source: ./lighthouse/vars.env
target: /config/vars.env
- type: bind
source: ./shared/trusted_setup.txt
target: /config/trusted_setup.txt
- type: bind
source: ./shared/jwtsecret
target: /config/jwtsecret
lighthouse-beacon-node-follower:
depends_on:
- execution-node-2
- lighthouse-beacon-node
# build:
# context: ./lighthouse
# dockerfile: Dockerfile.lighthouse
image: lighthouse-interop
pull_policy: never
entrypoint: ["run_beacon_node.sh", "-d", "debug", "/data/node_2", "http://execution-node-2:8551"]
environment:
- P2P_PORT=9001
ports:
- "5053:5052"
- "8001:8000"
- "9001:9001"
volumes:
- lighthouse_data:/data
- lighthouse_shared_config:/lighthouse_shared_config
- type: bind
source: ./lighthouse/run_beacon_node.sh
target: /usr/local/bin/run_beacon_node.sh
- type: bind
source: ./lighthouse/vars.env
target: /config/vars.env
- type: bind
source: ./shared/trusted_setup.txt
target: /config/trusted_setup.txt
- type: bind
source: ./shared/jwtsecret
target: /config/jwtsecret
lighthouse-validator-node:
image: lighthouse-interop
pull_policy: never
depends_on:
- lighthouse-beacon-node
entrypoint: ['run_validator.sh', 'http://lighthouse-beacon-node:8000']
volumes:
- lighthouse_data:/data
- lighthouse_shared_config:/lighthouse_shared_config
- type: bind
source: ./lighthouse/run_validator.sh
target: /usr/local/bin/run_validator.sh
- type: bind
source: ./lighthouse/vars.env
target: /config/vars.env
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'