-
Notifications
You must be signed in to change notification settings - Fork 3.3k
/
docker-compose.yml
353 lines (338 loc) · 10.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
# This Compose file is expected to be used with the devnet-up.sh script.
# The volumes below mount the configs generated by the script into each
# service.
volumes:
l1_data:
l1_bn_data:
l1_vc_data:
l2_a_data:
safedb_a_data:
l2_b_data:
safedb_b_data:
supervisor_data:
# TODO: reconfigure keys, using interop key CLI
services:
l1:
build:
context: .
dockerfile: l1-geth.Dockerfile
ports:
- "8545:8545"
- "8546:8546"
- "7060:6060"
volumes:
- "l1_data:/db"
- "${PWD}/../.devnet-interop/genesis-l1.json:/genesis.json"
- "${PWD}/test-jwt-secret.txt:/config/jwt-secret.txt"
environment:
GETH_MINER_RECOMMIT: 100ms
l1-bn:
depends_on:
- l1
build:
context: .
dockerfile: l1-lighthouse.Dockerfile
ports:
- "9000:9000"
- "5052:5052"
volumes:
- "l1_bn_data:/db"
- "${PWD}/test-jwt-secret.txt:/config/jwt-secret.txt"
- "${PWD}/beacon-data/config.yaml:/genesis/config.yaml"
- "${PWD}/beacon-data/deposit_contract_block.txt:/genesis/deposit_contract_block.txt"
- "${PWD}/../.devnet-interop/genesis-l1.ssz:/genesis/genesis.ssz"
environment:
LH_EXECUTION_ENDPOINT: "http://l1:8551"
entrypoint:
- "/bin/sh"
- "/entrypoint-bn.sh"
l1-vc:
depends_on:
- l1
- l1-bn
build:
context: .
dockerfile: l1-lighthouse.Dockerfile
volumes:
- "l1_vc_data:/db"
- "${PWD}/beacon-data/data/keys:/validator_setup/validators"
- "${PWD}/beacon-data/data/secrets:/validator_setup/secrets"
- "${PWD}/beacon-data/config.yaml:/genesis/config.yaml"
- "${PWD}/beacon-data/deposit_contract_block.txt:/genesis/deposit_contract_block.txt"
- "${PWD}/../.devnet-interop/genesis-l1.ssz:/genesis/genesis.ssz"
environment:
LH_BEACON_NODES: "http://l1-bn:5052/"
entrypoint:
- "/bin/sh"
- "/entrypoint-vc.sh"
l2-a:
build:
context: ../ops-bedrock/
dockerfile: l2-op-geth.Dockerfile
ports:
- "9545:8545"
- "8060:6060"
volumes:
- "l2_a_data:/db"
- "${PWD}/../.devnet-interop/genesis-l2-a.json:/genesis.json"
- "${PWD}/test-jwt-secret.txt:/config/jwt-secret.txt"
entrypoint: # pass the L2 specific flags by overriding the entry-point and adding extra arguments
- "/bin/sh"
- "/entrypoint.sh"
environment:
GETH_MINER_RECOMMIT: 100ms
l2-b:
build:
context: ../ops-bedrock/
dockerfile: l2-op-geth.Dockerfile
ports:
- "9545:8545"
- "8060:6060"
volumes:
- "l2_a_data:/db"
- "${PWD}/../.devnet-interop/genesis-l2-b.json:/genesis.json"
- "${PWD}/test-jwt-secret.txt:/config/jwt-secret.txt"
entrypoint: # pass the L2 specific flags by overriding the entry-point and adding extra arguments
- "/bin/sh"
- "/entrypoint.sh"
environment:
GETH_MINER_RECOMMIT: 100ms
op-supervisor:
depends_on:
- l1
- l2-a
- l2-b
build:
context: ../
dockerfile: ops/docker/op-stack-go/Dockerfile
target: op-supervisor-target
ports:
- "8545:8545"
volumes:
- "supervisor_data:/db"
image: us-docker.pkg.dev/oplabs-tools-artifacts/images/op-supervisor:devnet
command: >
op-supervisor
--l2-rpcs="ws://l2-a:8546,ws://l2-b:8546"
--datadir="/db"
--rpc.addr="0.0.0.0"
--rpc.port=8545
--rpc.enable-admin
op-node-a:
depends_on:
- l1
- l1-bn
- l1-vc
- l2-a
- op-supervisor
build:
context: ../
dockerfile: ops/docker/op-stack-go/Dockerfile
target: op-node-target
image: us-docker.pkg.dev/oplabs-tools-artifacts/images/op-node:devnet
# p2p seq key addr: 0x84c7EAD5EF72Fc376617A8b3c17da24d95Bdc8c2
command: >
op-node
--l1=ws://l1:8546
--l1.beacon=http://l1-bn:5052
--l1.epoch-poll-interval=12s
--l1.http-poll-interval=6s
--l2=http://l2-a:8551
--l2.jwt-secret=/config/jwt-secret.txt
--sequencer.enabled
--sequencer.l1-confs=0
--verifier.l1-confs=0
--p2p.sequencer.key=d6d2d225174aeffe7dec4d6bd8980aaf2b24c5c0fd481ea7191af94ed8b54aca
--rollup.config=/rollup.json
--rpc.addr=0.0.0.0
--rpc.port=8545
--p2p.listen.ip=0.0.0.0
--p2p.listen.tcp=9003
--p2p.listen.udp=9003
--p2p.scoring.peers=light
--p2p.ban.peers=true
--p2p.priv.raw=84173a002bde07fa4e3fa989e6fd21707f923d6136e1486fb367ff0e666ecede
--metrics.enabled
--metrics.addr=0.0.0.0
--metrics.port=7300
--pprof.enabled
--rpc.enable-admin
--safedb.path=/db
ports:
- "7545:8545"
- "9003:9003"
- "7300:7300"
- "6060:6060"
volumes:
- "safedb_a_data:/db"
- "${PWD}/test-jwt-secret.txt:/config/jwt-secret.txt"
- "${PWD}/../.devnet-interop/rollup-a.json:/rollup.json"
- op_log:/op_log
op-node-b:
depends_on:
- l1
- l1-bn
- l1-vc
- l2-b
- op-supervisor
build:
context: ../
dockerfile: ops/docker/op-stack-go/Dockerfile
target: op-node-target
image: us-docker.pkg.dev/oplabs-tools-artifacts/images/op-node:devnet
# p2p seq key addr: 0x35981c5F25A5dc24B148e5c0370833Bb13d9E1C4
command: >
op-node
--l1=ws://l1:8546
--l1.beacon=http://l1-bn:5052
--l1.epoch-poll-interval=12s
--l1.http-poll-interval=6s
--l2=http://l2-b:8551
--l2.jwt-secret=/config/jwt-secret.txt
--sequencer.enabled
--sequencer.l1-confs=0
--verifier.l1-confs=0
--p2p.sequencer.key=693735dd50656650d39861b4afa7bb140fbd01b61e391b2989127c32077c56db
--rollup.config=/rollup.json
--rpc.addr=0.0.0.0
--rpc.port=8545
--p2p.listen.ip=0.0.0.0
--p2p.listen.tcp=9003
--p2p.listen.udp=9003
--p2p.scoring.peers=light
--p2p.ban.peers=true
--p2p.priv.raw=e9fe4082a4beb2609c516979c692c667cbd9e0779328ed92574a26678f6cc8dc
--metrics.enabled
--metrics.addr=0.0.0.0
--metrics.port=7300
--pprof.enabled
--rpc.enable-admin
--safedb.path=/db
ports:
- "7545:8545"
- "9003:9003"
- "7300:7300"
- "6060:6060"
volumes:
- "safedb_b_data:/db"
- "${PWD}/test-jwt-secret.txt:/config/jwt-secret.txt"
- "${PWD}/../.devnet-interop/rollup-b.json:/rollup.json"
- op_log:/op_log
op-proposer-a:
depends_on:
- l1
- op-node-a
build:
context: ../
dockerfile: ops/docker/op-stack-go/Dockerfile
target: op-proposer-target
image: us-docker.pkg.dev/oplabs-tools-artifacts/images/op-proposer:devnet
ports:
- "6062:6060"
- "7302:7300"
- "6546:8545"
# proposer addr: 0x71b4a2d9B91726bdb5849D928967A1654D7F3de7
environment:
OP_PROPOSER_L1_ETH_RPC: http://l1:8545
OP_PROPOSER_ROLLUP_RPC: http://op-node-a:8545
OP_PROPOSER_POLL_INTERVAL: 1s
OP_PROPOSER_NUM_CONFIRMATIONS: 1
OP_PROPOSER_MNEMONIC: test test test test test test test test test test test junk
OP_PROPOSER_L2_OUTPUT_HD_PATH: "m/44'/60'/0'/1/1"
OP_PROPOSER_GAME_FACTORY_ADDRESS: "${DGF_ADDRESS}"
OP_PROPOSER_GAME_TYPE: "${DG_TYPE}"
OP_PROPOSER_PROPOSAL_INTERVAL: "${PROPOSAL_INTERVAL}"
OP_PROPOSER_PPROF_ENABLED: "true"
OP_PROPOSER_METRICS_ENABLED: "true"
OP_PROPOSER_ALLOW_NON_FINALIZED: "true"
OP_PROPOSER_RPC_ENABLE_ADMIN: "true"
op-proposer-b:
depends_on:
- l1
- op-node-b
build:
context: ../
dockerfile: ops/docker/op-stack-go/Dockerfile
target: op-proposer-target
image: us-docker.pkg.dev/oplabs-tools-artifacts/images/op-proposer:devnet
ports:
- "6062:6060"
- "7302:7300"
- "6546:8545"
# proposer addr: 0x8c408c9ce6718F4a3AFa7860f2E7B190B25fBDfA
environment:
OP_PROPOSER_L1_ETH_RPC: http://l1:8545
OP_PROPOSER_ROLLUP_RPC: http://op-node-b:8545
OP_PROPOSER_POLL_INTERVAL: 1s
OP_PROPOSER_NUM_CONFIRMATIONS: 1
OP_PROPOSER_MNEMONIC: test test test test test test test test test test test junk # TODO
OP_PROPOSER_L2_OUTPUT_HD_PATH: "m/44'/60'/0'/2/1"
OP_PROPOSER_GAME_FACTORY_ADDRESS: "${DGF_ADDRESS}"
OP_PROPOSER_GAME_TYPE: "${DG_TYPE}"
OP_PROPOSER_PROPOSAL_INTERVAL: "${PROPOSAL_INTERVAL}"
OP_PROPOSER_PPROF_ENABLED: "true"
OP_PROPOSER_METRICS_ENABLED: "true"
OP_PROPOSER_ALLOW_NON_FINALIZED: "true"
OP_PROPOSER_RPC_ENABLE_ADMIN: "true"
op-batcher-a:
depends_on:
- l1
- l2-a
- op-node-a
build:
context: ../
dockerfile: ops/docker/op-stack-go/Dockerfile
target: op-batcher-target
image: us-docker.pkg.dev/oplabs-tools-artifacts/images/op-batcher:devnet
ports:
- "6061:6060"
- "7301:7300"
- "6545:8545"
# batcher addr: 0xCA55aC8514b25C660151a8AE0c90f116DF160daa
environment:
OP_BATCHER_L1_ETH_RPC: http://l1:8545
OP_BATCHER_L2_ETH_RPC: http://l2-a:8545
OP_BATCHER_ROLLUP_RPC: http://op-node-a:8545
OP_BATCHER_MAX_CHANNEL_DURATION: 2
OP_BATCHER_SUB_SAFETY_MARGIN: 4 # SWS is 15, ChannelTimeout is 40
OP_BATCHER_POLL_INTERVAL: 1s
OP_BATCHER_NUM_CONFIRMATIONS: 1
OP_BATCHER_MNEMONIC: test test test test test test test test test test test junk
OP_BATCHER_SEQUENCER_HD_PATH: "m/44'/60'/0'/1/2"
OP_BATCHER_PPROF_ENABLED: "true"
OP_BATCHER_METRICS_ENABLED: "true"
OP_BATCHER_RPC_ENABLE_ADMIN: "true"
OP_BATCHER_BATCH_TYPE:
# uncomment to use blobs
# OP_BATCHER_DATA_AVAILABILITY_TYPE: blobs
op-batcher-b:
depends_on:
- l1
- l2-b
- op-node-b
build:
context: ../
dockerfile: ops/docker/op-stack-go/Dockerfile
target: op-batcher-target
image: us-docker.pkg.dev/oplabs-tools-artifacts/images/op-batcher:devnet
ports:
- "6061:6060"
- "7301:7300"
- "6545:8545"
# batcher addr: 0x252a3336Fb2A4352D1bD3b139f4e540AA45236bd
environment:
OP_BATCHER_L1_ETH_RPC: http://l1:8545
OP_BATCHER_L2_ETH_RPC: http://l2-b:8545
OP_BATCHER_ROLLUP_RPC: http://op-node-b:8545
OP_BATCHER_MAX_CHANNEL_DURATION: 2
OP_BATCHER_SUB_SAFETY_MARGIN: 4 # SWS is 15, ChannelTimeout is 40
OP_BATCHER_POLL_INTERVAL: 1s
OP_BATCHER_NUM_CONFIRMATIONS: 1
OP_BATCHER_MNEMONIC: test test test test test test test test test test test junk
OP_BATCHER_SEQUENCER_HD_PATH: "m/44'/60'/0'/2/2"
OP_BATCHER_PPROF_ENABLED: "true"
OP_BATCHER_METRICS_ENABLED: "true"
OP_BATCHER_RPC_ENABLE_ADMIN: "true"
OP_BATCHER_BATCH_TYPE:
# uncomment to use blobs
# OP_BATCHER_DATA_AVAILABILITY_TYPE: blobs