-
Notifications
You must be signed in to change notification settings - Fork 85
/
Copy pathdocker-compose.yaml
566 lines (540 loc) · 20 KB
/
docker-compose.yaml
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
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
version: "3"
networks:
default:
name: espresso-sequencer
services:
demo-l1-network:
image: ghcr.io/espressosystems/geth-l1:main
command: --dev --dev.period=1
ports:
- $ESPRESSO_SEQUENCER_L1_PORT:8545
- $ESPRESSO_SEQUENCER_L1_WS_PORT:8546
volumes:
- "./geth-config/genesis-default.json:/genesis.json"
- "./geth-config/test-jwt-secret.txt:/config/test-jwt-secret.txt"
deploy-sequencer-contracts:
image: ghcr.io/espressosystems/espresso-sequencer/deploy:main
command: deploy --only fee-contract
environment:
- ESPRESSO_SEQUENCER_L1_PROVIDER
- ESPRESSO_DEPLOYER_ACCOUNT_INDEX
- RUST_LOG
- RUST_LOG_FORMAT
- ASYNC_STD_THREAD_COUNT
depends_on:
demo-l1-network:
condition: service_healthy
deploy-prover-contracts:
image: ghcr.io/espressosystems/espresso-sequencer/deploy:main
command: deploy --use-mock-contract --only hotshot,light-client
environment:
- ESPRESSO_SEQUENCER_ORCHESTRATOR_URL
- ESPRESSO_SEQUENCER_L1_PROVIDER
- ESPRESSO_DEPLOYER_ACCOUNT_INDEX
- RUST_LOG
- RUST_LOG_FORMAT
- ASYNC_STD_THREAD_COUNT
depends_on:
demo-l1-network:
condition: service_healthy
orchestrator:
condition: service_healthy
# Make sure this doesn't start until the other contracts have been deployed, since we use the same mnemonic.
deploy-sequencer-contracts:
condition: service_completed_successfully
fund-builder:
image: ghcr.io/espressosystems/espresso-sequencer/bridge:main
command: bridge deposit
environment:
- L1_PROVIDER=$ESPRESSO_SEQUENCER_L1_PROVIDER
- ESPRESSO_PROVIDER=http://sequencer1:$ESPRESSO_SEQUENCER_API_PORT
- CONTRACT_ADDRESS=0xa15bb66138824a1c7167f5e85b957d04dd34e468
- MNEMONIC=$ESPRESSO_BUILDER_ETH_MNEMONIC
- ACCOUNT_INDEX=$ESPRESSO_BUILDER_ETH_ACCOUNT_INDEX
- AMOUNT=1000000000000000000
- CONFIRMATIONS=1
depends_on:
deploy-sequencer-contracts:
condition: service_completed_successfully
sequencer1:
condition: service_healthy
orchestrator:
image: ghcr.io/espressosystems/espresso-sequencer/orchestrator:main
ports:
- "$ESPRESSO_ORCHESTRATOR_PORT:$ESPRESSO_ORCHESTRATOR_PORT"
environment:
- ESPRESSO_ORCHESTRATOR_BUILDER_URL=http://permissionless-builder:$ESPRESSO_BUILDER_SERVER_PORT
- ESPRESSO_ORCHESTRATOR_PORT
- ESPRESSO_ORCHESTRATOR_NUM_NODES
- ESPRESSO_ORCHESTRATOR_START_DELAY
- ESPRESSO_ORCHESTRATOR_NEXT_VIEW_TIMEOUT
- ESPRESSO_ORCHESTRATOR_BUILDER_TIMEOUT
- RUST_LOG
- RUST_LOG_FORMAT
- ASYNC_STD_THREAD_COUNT
# We use KeyDB (a Redis variant) to maintain consistency between
# different parts of the CDN
keydb:
image: docker.io/eqalpha/keydb:latest
command: [ "--requirepass", "changemeplease!!" ]
healthcheck:
# Attempt to PING the database
test: keydb-cli --pass changemeplease!! --raw incr PING
interval: 5s
timeout: 4s
retries: 20
# The CDN system's main entry point; where users contact first.
marshal-0:
environment:
- RUST_LOG
- ESPRESSO_CDN_SERVER_METRICS_PORT
image: ghcr.io/espressosystems/espresso-sequencer/cdn-marshal:main
command:
- cdn-marshal
- -d
- redis://:changemeplease!!@keydb:6379
- -b
- $ESPRESSO_CDN_SERVER_PORT
- -m
- 0.0.0.0:$ESPRESSO_CDN_SERVER_METRICS_PORT
depends_on:
keydb:
condition: service_healthy
# A broker is the main message-routing unit of the CDN
broker-0:
environment:
- RUST_LOG
- ESPRESSO_CDN_SERVER_METRICS_PORT
image: ghcr.io/espressosystems/espresso-sequencer/cdn-broker:main
command:
- cdn-broker
- -d
- redis://:changemeplease!!@keydb:6379
- --public-advertise-endpoint
- broker-0:1738
- --private-advertise-endpoint
- broker-0:1739
- -m
- 0.0.0.0:$ESPRESSO_CDN_SERVER_METRICS_PORT
depends_on:
keydb:
condition: service_healthy
# A broker is the main message-routing unit of the CDN
broker-1:
environment:
- RUST_LOG
- ESPRESSO_CDN_SERVER_METRICS_PORT
image: ghcr.io/espressosystems/espresso-sequencer/cdn-broker:main
command:
- cdn-broker
- -d
- redis://:changemeplease!!@keydb:6379
- --public-advertise-endpoint
- broker-1:1738
- --private-advertise-endpoint
- broker-1:1739
- -m
- 0.0.0.0:$ESPRESSO_CDN_SERVER_METRICS_PORT
depends_on:
keydb:
condition: service_healthy
# A service to whitelist specific public keys for the CDN
cdn-whitelist:
restart: no
environment:
- RUST_LOG
- ESPRESSO_SEQUENCER_ORCHESTRATOR_URL
image: ghcr.io/espressosystems/espresso-sequencer/cdn-whitelist:main
command:
- cdn-whitelist
- -d
- redis://:changemeplease!!@keydb:6379
depends_on:
keydb:
condition: service_healthy
orchestrator:
condition: service_healthy
state-relay-server:
image: ghcr.io/espressosystems/espresso-sequencer/state-relay-server:main
ports:
- "$ESPRESSO_STATE_RELAY_SERVER_PORT:$ESPRESSO_STATE_RELAY_SERVER_PORT"
environment:
- ESPRESSO_STATE_RELAY_SERVER_PORT
- ESPRESSO_STATE_SIGNATURE_TOTAL_STAKE
- RUST_LOG
- RUST_LOG_FORMAT
- ASYNC_STD_THREAD_COUNT
prover-service:
image: ghcr.io/espressosystems/espresso-sequencer/prover-service:main
ports:
- "$ESPRESSO_PROVER_SERVICE_PORT:$ESPRESSO_PROVER_SERVICE_PORT"
environment:
- ESPRESSO_PROVER_SERVICE_PORT
- ESPRESSO_STATE_RELAY_SERVER_URL
- ESPRESSO_SEQUENCER_ORCHESTRATOR_URL
- ESPRESSO_STATE_PROVER_UPDATE_INTERVAL
- ESPRESSO_SEQUENCER_L1_PROVIDER
- ESPRESSO_SEQUENCER_ETH_MNEMONIC
- ESPRESSO_SEQUENCER_LIGHTCLIENT_ADDRESS
- MNEMONIC=$ESPRESSO_SEQUENCER_ETH_MNEMONIC
- ESPRESSO_SEQUENCER_STATE_PROVER_ACCOUNT_INDEX
- RAYON_NUM_THREADS=$PROVER_RAYON_NUM_THREADS
- RUST_LOG
- RUST_LOG_FORMAT
- ASYNC_STD_THREAD_COUNT
- RAYON_NUM_THREADS
depends_on:
orchestrator:
condition: service_healthy
state-relay-server:
condition: service_healthy
demo-l1-network:
condition: service_healthy
deploy-prover-contracts:
condition: service_completed_successfully
sequencer0:
image: ghcr.io/espressosystems/espresso-sequencer/sequencer:main
ports:
- "$ESPRESSO_SEQUENCER_API_PORT:$ESPRESSO_SEQUENCER_API_PORT"
- "$ESPRESSO_SEQUENCER_HOTSHOT_EVENT_STREAMING_API_PORT:$ESPRESSO_SEQUENCER_HOTSHOT_EVENT_STREAMING_API_PORT"
volumes:
- "./data/genesis.toml:$ESPRESSO_SEQUENCER_GENESIS_FILE"
# Run the full API server with all modules, Postgres storage
command: sequencer -- storage-sql -- http -- query -- catchup -- status -- submit -- hotshot-events
environment:
- ESPRESSO_SEQUENCER_GENESIS_FILE
- ESPRESSO_SEQUENCER_ORCHESTRATOR_URL
- ESPRESSO_SEQUENCER_CDN_ENDPOINT
- ESPRESSO_SEQUENCER_API_PORT
- ESPRESSO_SEQUENCER_HOTSHOT_EVENT_STREAMING_API_PORT
- ESPRESSO_SEQUENCER_STATE_PEERS=http://sequencer1:$ESPRESSO_SEQUENCER_API_PORT
- ESPRESSO_SEQUENCER_POSTGRES_HOST=sequencer-db-0
- ESPRESSO_SEQUENCER_POSTGRES_USER=root
- ESPRESSO_SEQUENCER_POSTGRES_PASSWORD=password
- ESPRESSO_SEQUENCER_POSTGRES_DATABASE=sequencer
- ESPRESSO_SEQUENCER_L1_PROVIDER
- ESPRESSO_SEQUENCER_L1_EVENTS_MAX_BLOCK_RANGE
- ESPRESSO_STATE_RELAY_SERVER_URL
- ESPRESSO_SEQUENCER_PRIVATE_STAKING_KEY=$ESPRESSO_DEMO_SEQUENCER_STAKING_PRIVATE_KEY_0
- ESPRESSO_SEQUENCER_PRIVATE_STATE_KEY=$ESPRESSO_DEMO_SEQUENCER_STATE_PRIVATE_KEY_0
- ESPRESSO_SEQUENCER_LIBP2P_BIND_ADDRESS=0.0.0.0:$ESPRESSO_DEMO_SEQUENCER_LIBP2P_PORT_0
- ESPRESSO_SEQUENCER_LIBP2P_ADVERTISE_ADDRESS=sequencer0:$ESPRESSO_DEMO_SEQUENCER_LIBP2P_PORT_0
- ESPRESSO_SEQUENCER_IS_DA=true
- RUST_LOG
- RUST_LOG_FORMAT
- ASYNC_STD_THREAD_COUNT
depends_on:
orchestrator:
condition: service_healthy
demo-l1-network:
condition: service_healthy
sequencer-db-0:
condition: service_healthy
state-relay-server:
condition: service_healthy
broker-0:
condition: service_healthy
broker-1:
condition: service_healthy
marshal-0:
condition: service_healthy
deploy-sequencer-contracts:
condition: service_completed_successfully
sequencer1:
image: ghcr.io/espressosystems/espresso-sequencer/sequencer:main
ports:
- "$ESPRESSO_SEQUENCER1_API_PORT:$ESPRESSO_SEQUENCER_API_PORT"
volumes:
- "./data/genesis.toml:$ESPRESSO_SEQUENCER_GENESIS_FILE"
command: sequencer -- storage-sql -- http -- query -- catchup -- status -- state -- explorer
environment:
- ESPRESSO_SEQUENCER_GENESIS_FILE
- ESPRESSO_SEQUENCER_ORCHESTRATOR_URL
- ESPRESSO_SEQUENCER_CDN_ENDPOINT
- ESPRESSO_SEQUENCER_API_PORT
- ESPRESSO_SEQUENCER_API_PEERS=http://sequencer2:$ESPRESSO_SEQUENCER_API_PORT
- ESPRESSO_SEQUENCER_STATE_PEERS=http://sequencer2:$ESPRESSO_SEQUENCER_API_PORT
- ESPRESSO_SEQUENCER_POSTGRES_HOST=sequencer-db-1
- ESPRESSO_SEQUENCER_POSTGRES_USER=root
- ESPRESSO_SEQUENCER_POSTGRES_PASSWORD=password
- ESPRESSO_SEQUENCER_POSTGRES_DATABASE=sequencer
- ESPRESSO_SEQUENCER_L1_PROVIDER
- ESPRESSO_SEQUENCER_L1_EVENTS_MAX_BLOCK_RANGE
- ESPRESSO_STATE_RELAY_SERVER_URL
- ESPRESSO_SEQUENCER_PRIVATE_STAKING_KEY=$ESPRESSO_DEMO_SEQUENCER_STAKING_PRIVATE_KEY_1
- ESPRESSO_SEQUENCER_PRIVATE_STATE_KEY=$ESPRESSO_DEMO_SEQUENCER_STATE_PRIVATE_KEY_1
- ESPRESSO_SEQUENCER_LIBP2P_BIND_ADDRESS=0.0.0.0:$ESPRESSO_DEMO_SEQUENCER_LIBP2P_PORT_1
- ESPRESSO_SEQUENCER_LIBP2P_ADVERTISE_ADDRESS=sequencer1:$ESPRESSO_DEMO_SEQUENCER_LIBP2P_PORT_1
- ESPRESSO_SEQUENCER_IS_DA=true
- RUST_LOG
- RUST_LOG_FORMAT
- ASYNC_STD_THREAD_COUNT
depends_on:
orchestrator:
condition: service_healthy
demo-l1-network:
condition: service_healthy
sequencer-db-1:
condition: service_healthy
state-relay-server:
condition: service_healthy
broker-0:
condition: service_healthy
broker-1:
condition: service_healthy
marshal-0:
condition: service_healthy
deploy-sequencer-contracts:
condition: service_completed_successfully
sequencer2:
image: ghcr.io/espressosystems/espresso-sequencer/sequencer:main
ports:
- "$ESPRESSO_SEQUENCER2_API_PORT:$ESPRESSO_SEQUENCER_API_PORT"
volumes:
- "./data/genesis.toml:$ESPRESSO_SEQUENCER_GENESIS_FILE"
command: sequencer -- http -- catchup -- status
environment:
- ESPRESSO_SEQUENCER_GENESIS_FILE
- ESPRESSO_SEQUENCER_ORCHESTRATOR_URL
- ESPRESSO_SEQUENCER_CDN_ENDPOINT
- ESPRESSO_SEQUENCER_API_PORT
- ESPRESSO_SEQUENCER_API_PEERS=http://sequencer1:$ESPRESSO_SEQUENCER_API_PORT
- ESPRESSO_SEQUENCER_STATE_PEERS=http://sequencer3:$ESPRESSO_SEQUENCER_API_PORT
- ESPRESSO_SEQUENCER_L1_PROVIDER
- ESPRESSO_SEQUENCER_L1_EVENTS_MAX_BLOCK_RANGE
- ESPRESSO_STATE_RELAY_SERVER_URL
- ESPRESSO_SEQUENCER_PRIVATE_STAKING_KEY=$ESPRESSO_DEMO_SEQUENCER_STAKING_PRIVATE_KEY_2
- ESPRESSO_SEQUENCER_PRIVATE_STATE_KEY=$ESPRESSO_DEMO_SEQUENCER_STATE_PRIVATE_KEY_2
- ESPRESSO_SEQUENCER_LIBP2P_BIND_ADDRESS=0.0.0.0:$ESPRESSO_DEMO_SEQUENCER_LIBP2P_PORT_2
- ESPRESSO_SEQUENCER_LIBP2P_ADVERTISE_ADDRESS=sequencer2:$ESPRESSO_DEMO_SEQUENCER_LIBP2P_PORT_2
- ESPRESSO_SEQUENCER_IS_DA=true
- RUST_LOG
- RUST_LOG_FORMAT
- ASYNC_STD_THREAD_COUNT
depends_on:
orchestrator:
condition: service_healthy
demo-l1-network:
condition: service_healthy
state-relay-server:
condition: service_healthy
broker-0:
condition: service_healthy
broker-1:
condition: service_healthy
marshal-0:
condition: service_healthy
deploy-sequencer-contracts:
condition: service_completed_successfully
sequencer3:
image: ghcr.io/espressosystems/espresso-sequencer/sequencer:main
ports:
- "$ESPRESSO_SEQUENCER3_API_PORT:$ESPRESSO_SEQUENCER_API_PORT"
volumes:
- "./data/genesis.toml:$ESPRESSO_SEQUENCER_GENESIS_FILE"
command: sequencer -- http -- catchup -- status
environment:
- ESPRESSO_SEQUENCER_GENESIS_FILE
- ESPRESSO_SEQUENCER_ORCHESTRATOR_URL
- ESPRESSO_SEQUENCER_CDN_ENDPOINT
- ESPRESSO_SEQUENCER_API_PORT
- ESPRESSO_SEQUENCER_STATE_PEERS=http://sequencer4:$ESPRESSO_SEQUENCER_API_PORT
- ESPRESSO_SEQUENCER_L1_PROVIDER
- ESPRESSO_SEQUENCER_L1_EVENTS_MAX_BLOCK_RANGE
- ESPRESSO_STATE_RELAY_SERVER_URL
- ESPRESSO_SEQUENCER_PRIVATE_STAKING_KEY=$ESPRESSO_DEMO_SEQUENCER_STAKING_PRIVATE_KEY_3
- ESPRESSO_SEQUENCER_PRIVATE_STATE_KEY=$ESPRESSO_DEMO_SEQUENCER_STATE_PRIVATE_KEY_3
- ESPRESSO_SEQUENCER_LIBP2P_BIND_ADDRESS=0.0.0.0:$ESPRESSO_DEMO_SEQUENCER_LIBP2P_PORT_3
- ESPRESSO_SEQUENCER_LIBP2P_ADVERTISE_ADDRESS=sequencer3:$ESPRESSO_DEMO_SEQUENCER_LIBP2P_PORT_3
- RUST_LOG
- RUST_LOG_FORMAT
- ASYNC_STD_THREAD_COUNT
depends_on:
orchestrator:
condition: service_healthy
demo-l1-network:
condition: service_healthy
state-relay-server:
condition: service_healthy
broker-0:
condition: service_healthy
broker-1:
condition: service_healthy
marshal-0:
condition: service_healthy
deploy-sequencer-contracts:
condition: service_completed_successfully
sequencer4:
image: ghcr.io/espressosystems/espresso-sequencer/sequencer:main
ports:
- "$ESPRESSO_SEQUENCER4_API_PORT:$ESPRESSO_SEQUENCER_API_PORT"
volumes:
- "./data/genesis.toml:$ESPRESSO_SEQUENCER_GENESIS_FILE"
command: sequencer -- http -- catchup -- status
environment:
- ESPRESSO_SEQUENCER_GENESIS_FILE
- ESPRESSO_SEQUENCER_ORCHESTRATOR_URL
- ESPRESSO_SEQUENCER_CDN_ENDPOINT
- ESPRESSO_SEQUENCER_API_PORT
- ESPRESSO_SEQUENCER_STATE_PEERS=http://sequencer0:$ESPRESSO_SEQUENCER_API_PORT
- ESPRESSO_SEQUENCER_L1_PROVIDER
- ESPRESSO_SEQUENCER_L1_EVENTS_MAX_BLOCK_RANGE
- ESPRESSO_STATE_RELAY_SERVER_URL
- ESPRESSO_SEQUENCER_PRIVATE_STAKING_KEY=$ESPRESSO_DEMO_SEQUENCER_STAKING_PRIVATE_KEY_4
- ESPRESSO_SEQUENCER_PRIVATE_STATE_KEY=$ESPRESSO_DEMO_SEQUENCER_STATE_PRIVATE_KEY_4
- ESPRESSO_SEQUENCER_LIBP2P_BIND_ADDRESS=0.0.0.0:$ESPRESSO_DEMO_SEQUENCER_LIBP2P_PORT_4
- ESPRESSO_SEQUENCER_LIBP2P_ADVERTISE_ADDRESS=sequencer4:$ESPRESSO_DEMO_SEQUENCER_LIBP2P_PORT_4
- RUST_LOG
- RUST_LOG_FORMAT
- ASYNC_STD_THREAD_COUNT
depends_on:
orchestrator:
condition: service_healthy
demo-l1-network:
condition: service_healthy
state-relay-server:
condition: service_healthy
broker-0:
condition: service_healthy
broker-1:
condition: service_healthy
marshal-0:
condition: service_healthy
deploy-sequencer-contracts:
condition: service_completed_successfully
commitment-task:
image: ghcr.io/espressosystems/espresso-sequencer/commitment-task:main
ports:
- "$ESPRESSO_COMMITMENT_TASK_PORT:$ESPRESSO_COMMITMENT_TASK_PORT"
environment:
- ESPRESSO_SEQUENCER_ETH_MNEMONIC
- ESPRESSO_SEQUENCER_HOTSHOT_ACCOUNT_INDEX
- ESPRESSO_COMMITMENT_TASK_PORT
- ESPRESSO_SEQUENCER_URL
- ESPRESSO_SEQUENCER_L1_PROVIDER
- ESPRESSO_SEQUENCER_HOTSHOT_ADDRESS
- RUST_LOG
- RUST_LOG_FORMAT
- ASYNC_STD_THREAD_COUNT
depends_on:
sequencer0:
condition: service_healthy
demo-l1-network:
condition: service_healthy
deploy-prover-contracts:
condition: service_completed_successfully
submit-transactions-public:
image: ghcr.io/espressosystems/espresso-sequencer/submit-transactions:main
ports:
- "$ESPRESSO_SUBMIT_TRANSACTIONS_PUBLIC_PORT:8080"
environment:
- ESPRESSO_SUBMIT_TRANSACTIONS_PORT=8080
- ESPRESSO_SUBMIT_TRANSACTIONS_DELAY
- ESPRESSO_SEQUENCER_URL
- RUST_LOG
- RUST_LOG_FORMAT
- ASYNC_STD_THREAD_COUNT
depends_on:
sequencer0:
condition: service_healthy
# We don't directly depend on the builder, but transactions will not be finalized until it has
# started, so there is no point in starting before then.
permissionless-builder:
condition: service_healthy
submit-transactions-private:
image: ghcr.io/espressosystems/espresso-sequencer/submit-transactions:main
ports:
- "$ESPRESSO_SUBMIT_TRANSACTIONS_PRIVATE_PORT:8080"
environment:
- ESPRESSO_SUBMIT_TRANSACTIONS_PORT=8080
- ESPRESSO_SUBMIT_TRANSACTIONS_SUBMIT_URL=http://permissionless-builder:$ESPRESSO_BUILDER_SERVER_PORT/txn_submit
- ESPRESSO_SUBMIT_TRANSACTIONS_DELAY
- ESPRESSO_SEQUENCER_URL
- RUST_LOG
- RUST_LOG_FORMAT
- ASYNC_STD_THREAD_COUNT
depends_on:
sequencer0:
condition: service_healthy
permissionless-builder:
condition: service_healthy
permissionless-builder:
image: ghcr.io/espressosystems/espresso-sequencer/builder:main
ports:
- "$ESPRESSO_BUILDER_SERVER_PORT:$ESPRESSO_BUILDER_SERVER_PORT"
volumes:
- "./data/genesis.toml:$ESPRESSO_BUILDER_GENESIS_FILE"
environment:
- ESPRESSO_SEQUENCER_HOTSHOT_EVENT_STREAMING_API_URL=http://sequencer0:$ESPRESSO_SEQUENCER_HOTSHOT_EVENT_STREAMING_API_PORT
- ESPRESSO_SEQUENCER_STATE_PEERS=http://sequencer0:$ESPRESSO_SEQUENCER_API_PORT
- ESPRESSO_BUILDER_GENESIS_FILE
- ESPRESSO_BUILDER_ETH_MNEMONIC
- ESPRESSO_BUILDER_ETH_ACCOUNT_INDEX
- ESPRESSO_BUILDER_L1_PROVIDER
- ESPRESSO_BUILDER_SERVER_PORT
- ESPRESSO_BUILDER_CHANNEL_CAPACITY
- ESPRESSO_BUILDER_BOOTSTRAPPED_VIEW
- ESPRESSO_BUILDER_WEBSERVER_RESPONSE_TIMEOUT_DURATION
- ESPRESSO_BUILDER_BUFFER_VIEW_NUM_COUNT
- ESPRESSO_BUILDER_INIT_NODE_COUNT
- RUST_LOG
- RUST_LOG_FORMAT
- ASYNC_STD_THREAD_COUNT
depends_on:
fund-builder:
condition: service_completed_successfully
nasty-client:
image: ghcr.io/espressosystems/espresso-sequencer/nasty-client:main
ports:
- "$ESPRESSO_NASTY_CLIENT_PORT:$ESPRESSO_NASTY_CLIENT_PORT"
environment:
# Point the nasty client at sequencer1, the only one running the state API.
- ESPRESSO_SEQUENCER_URL=http://sequencer1:$ESPRESSO_SEQUENCER_API_PORT
- ESPRESSO_NASTY_CLIENT_PORT
- RUST_LOG
- RUST_LOG_FORMAT
- ASYNC_STD_THREAD_COUNT
depends_on:
sequencer0:
condition: service_healthy
sequencer-db-0:
image: postgres
user: postgres
ports:
- "$ESPRESSO_SEQUENCER0_DB_PORT:5432"
environment:
- POSTGRES_PASSWORD=password
- POSTGRES_USER=root
- POSTGRES_DB=sequencer
healthcheck:
# Postgres can be falsely "ready" once before running init scripts.
# See https://github.com/docker-library/postgres/issues/146 for discussion.
test: "pg_isready -U root && sleep 1 && pg_isready -U root"
interval: 5s
timeout: 4s
retries: 20
sequencer-db-1:
image: postgres
user: postgres
ports:
- "$ESPRESSO_SEQUENCER1_DB_PORT:5432"
environment:
- POSTGRES_PASSWORD=password
- POSTGRES_USER=root
- POSTGRES_DB=sequencer
healthcheck:
# Postgres can be falsely "ready" once before running init scripts.
# See https://github.com/docker-library/postgres/issues/146 for discussion.
test: "pg_isready -U root && sleep 1 && pg_isready -U root"
interval: 5s
timeout: 4s
retries: 20
block-explorer:
image: ghcr.io/espressosystems/espresso-block-explorer:main
ports:
- "$ESPRESSO_BLOCK_EXPLORER_PORT:3000"
environment:
- QUERY_SERVICE_URI:http://localhost:$ESPRESSO_SEQUENCER1_API_PORT/v0/
depends_on:
sequencer1:
condition: service_healthy