-
Notifications
You must be signed in to change notification settings - Fork 69
/
docker-compose.yaml
736 lines (704 loc) · 28.5 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
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
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_ETH_MULTISIG_ADDRESS
- 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 light-client
environment:
- ESPRESSO_SEQUENCER_ORCHESTRATOR_URL
- ESPRESSO_SEQUENCER_L1_PROVIDER
- ESPRESSO_SEQUENCER_URL
- ESPRESSO_SEQUENCER_STAKE_TABLE_CAPACITY
- ESPRESSO_SEQUENCER_PERMISSIONED_PROVER
- ESPRESSO_DEPLOYER_ACCOUNT_INDEX
- ESPRESSO_SEQUENCER_ETH_MULTISIG_ADDRESS
- RUST_LOG
- RUST_LOG_FORMAT
- ASYNC_STD_THREAD_COUNT
depends_on:
demo-l1-network:
condition: service_healthy
sequencer0:
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: espresso-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
- RUST_LOG
- RUST_LOG_FORMAT
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_URLS=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_URL
- ESPRESSO_STATE_PROVER_UPDATE_INTERVAL
- ESPRESSO_SEQUENCER_L1_PROVIDER
- ESPRESSO_SEQUENCER_ETH_MNEMONIC
- ESPRESSO_SEQUENCER_LIGHTCLIENT_ADDRESS
- ESPRESSO_SEQUENCER_STAKE_TABLE_CAPACITY
- 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:
sequencer0:
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"
# Run the full API server with all modules, Postgres storage
command: sequencer -- storage-sql -- http -- query -- catchup -- status -- submit -- hotshot-events -- config
environment:
- ESPRESSO_SEQUENCER_GENESIS_FILE
- ESPRESSO_SEQUENCER_ORCHESTRATOR_URL
- ESPRESSO_SEQUENCER_CDN_ENDPOINT
- ESPRESSO_SEQUENCER_API_PORT
- ESPRESSO_SEQUENCER_MAX_CONNECTIONS
- 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
- ESPRESSO_SEQUENCER_IDENTITY_NODE_NAME=sequencer0
- ESPRESSO_SEQUENCER_IDENTITY_WALLET_ADDRESS=0x0000000000000000000000000000000000000000
- ESPRESSO_SEQUENCER_IDENTITY_COMPANY_NAME=Espresso Systems
- ESPRESSO_SEQUENCER_IDENTITY_COMPANY_WEBSITE=https://www.espressosys.com/
- ESPRESSO_SEQUENCER_IDENTITY_OPERATING_SYSTEM=Linux 5.15.153.1
- ESPRESSO_SEQUENCER_IDENTITY_NETWORK_TYPE=local
- ESPRESSO_SEQUENCER_IDENTITY_COUNTRY_CODE=US
- ESPRESSO_SEQUENCER_IDENTITY_LATITUDE=40.7128
- ESPRESSO_SEQUENCER_IDENTITY_LONGITUDE=-74.0060
- ESPRESSO_SEQUENCER_PUBLIC_API_URL=http://sequencer0:$ESPRESSO_SEQUENCER_API_PORT/
- 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"
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_MAX_CONNECTIONS
- 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_WS_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
- ESPRESSO_SEQUENCER_IDENTITY_NODE_NAME=sequencer1
- ESPRESSO_SEQUENCER_IDENTITY_WALLET_ADDRESS=0x0000000000000000000000000000000000000001
- ESPRESSO_SEQUENCER_IDENTITY_COMPANY_NAME=Espresso Systems
- ESPRESSO_SEQUENCER_IDENTITY_COMPANY_WEBSITE=https://www.espressosys.com/
- ESPRESSO_SEQUENCER_IDENTITY_OPERATING_SYSTEM=Darwin 23.5.0
- ESPRESSO_SEQUENCER_IDENTITY_NETWORK_TYPE=local
- ESPRESSO_SEQUENCER_IDENTITY_COUNTRY_CODE=GR
- ESPRESSO_SEQUENCER_IDENTITY_LATITUDE=39.0742
- ESPRESSO_SEQUENCER_IDENTITY_LONGITUDE=21.8243
- ESPRESSO_SEQUENCER_PUBLIC_API_URL=http://sequencer1:$ESPRESSO_SEQUENCER_API_PORT/
- 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"
command: sequencer -- http -- catchup -- status
environment:
- ESPRESSO_SEQUENCER_GENESIS_FILE
- ESPRESSO_SEQUENCER_ORCHESTRATOR_URL
- ESPRESSO_SEQUENCER_CDN_ENDPOINT
- ESPRESSO_SEQUENCER_API_PORT
- ESPRESSO_SEQUENCER_MAX_CONNECTIONS
- 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
- ESPRESSO_SEQUENCER_IDENTITY_NODE_NAME=sequencer2
- ESPRESSO_SEQUENCER_IDENTITY_WALLET_ADDRESS=0x0000000000000000000000000000000000000002
- ESPRESSO_SEQUENCER_IDENTITY_COMPANY_NAME=Espresso Systems
- ESPRESSO_SEQUENCER_IDENTITY_COMPANY_WEBSITE=https://www.espressosys.com/
- ESPRESSO_SEQUENCER_IDENTITY_OPERATING_SYSTEM=Darwin 23.5.0
- ESPRESSO_SEQUENCER_IDENTITY_NETWORK_TYPE=local
- ESPRESSO_SEQUENCER_IDENTITY_COUNTRY_CODE=CN
- ESPRESSO_SEQUENCER_IDENTITY_LATITUDE=35.8617
- ESPRESSO_SEQUENCER_IDENTITY_LONGITUDE=104.1954
- ESPRESSO_SEQUENCER_PUBLIC_API_URL=http://sequencer2:$ESPRESSO_SEQUENCER_API_PORT/
- 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"
command: sequencer -- http -- catchup -- status
environment:
- ESPRESSO_SEQUENCER_GENESIS_FILE
- ESPRESSO_SEQUENCER_ORCHESTRATOR_URL
- ESPRESSO_SEQUENCER_CDN_ENDPOINT
- ESPRESSO_SEQUENCER_API_PORT
- ESPRESSO_SEQUENCER_MAX_CONNECTIONS
- ESPRESSO_SEQUENCER_STATE_PEERS=http://sequencer4:$ESPRESSO_SEQUENCER_API_PORT
- ESPRESSO_SEQUENCER_L1_PROVIDER=$ESPRESSO_SEQUENCER_L1_WS_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
- ESPRESSO_SEQUENCER_IDENTITY_NODE_NAME=sequencer3
- ESPRESSO_SEQUENCER_IDENTITY_WALLET_ADDRESS=0x0000000000000000000000000000000000000003
- ESPRESSO_SEQUENCER_IDENTITY_COMPANY_NAME=Espresso Systems
- ESPRESSO_SEQUENCER_IDENTITY_COMPANY_WEBSITE=https://www.espressosys.com/
- ESPRESSO_SEQUENCER_IDENTITY_OPERATING_SYSTEM=Microsoft Windows NT 10.0.22621.0
- ESPRESSO_SEQUENCER_IDENTITY_E=espresso-sequencer@0.1.0
- ESPRESSO_SEQUENCER_IDENTITY_NETWORK_TYPE=local
- ESPRESSO_SEQUENCER_IDENTITY_COUNTRY_CODE=CN
- ESPRESSO_SEQUENCER_IDENTITY_LATITUDE=35.8617
- ESPRESSO_SEQUENCER_IDENTITY_LONGITUDE=104.1954
- ESPRESSO_SEQUENCER_PUBLIC_API_URL=http://sequencer3:$ESPRESSO_SEQUENCER_API_PORT/
- 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"
command: sequencer -- http -- catchup -- status
environment:
- ESPRESSO_SEQUENCER_GENESIS_FILE
- ESPRESSO_SEQUENCER_ORCHESTRATOR_URL
- ESPRESSO_SEQUENCER_CDN_ENDPOINT
- ESPRESSO_SEQUENCER_API_PORT
- ESPRESSO_SEQUENCER_MAX_CONNECTIONS
- 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
- ESPRESSO_SEQUENCER_IDENTITY_NODE_NAME=sequencer4
- ESPRESSO_SEQUENCER_IDENTITY_WALLET_ADDRESS=0x0000000000000000000000000000000000000004
- ESPRESSO_SEQUENCER_IDENTITY_COMPANY_NAME=Espresso Systems
- ESPRESSO_SEQUENCER_IDENTITY_COMPANY_WEBSITE=https://www.espressosys.com/
- ESPRESSO_SEQUENCER_IDENTITY_OPERATING_SYSTEM=TempleOS 5.03
- ESPRESSO_SEQUENCER_IDENTITY_NETWORK_TYPE=local
- ESPRESSO_SEQUENCER_IDENTITY_COUNTRY_CODE=AU
- ESPRESSO_SEQUENCER_IDENTITY_LATITUDE=-25.2744
- ESPRESSO_SEQUENCER_IDENTITY_LONGITUDE=133.7751
- ESPRESSO_SEQUENCER_PUBLIC_API_URL=http://sequencer4:$ESPRESSO_SEQUENCER_API_PORT/
- 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
submit-transactions-public:
image: ghcr.io/espressosystems/espresso-sequencer/submit-transactions:main
ports:
- "$ESPRESSO_SUBMIT_TRANSACTIONS_PUBLIC_PORT:8080"
environment:
- ESPRESSO_ORCHESTRATOR_NUM_NODES
- ESPRESSO_SUBMIT_TRANSACTIONS_PORT=8080
- ESPRESSO_SUBMIT_TRANSACTIONS_DELAY
- ESPRESSO_BENCH_START_BLOCK
- ESPRESSO_BENCH_END_BLOCK
- 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_ORCHESTRATOR_NUM_NODES
- ESPRESSO_SUBMIT_TRANSACTIONS_PORT=8080
- ESPRESSO_SUBMIT_TRANSACTIONS_SUBMIT_URL=http://permissionless-builder:$ESPRESSO_BUILDER_SERVER_PORT/txn_submit
- ESPRESSO_SUBMIT_TRANSACTIONS_DELAY
- ESPRESSO_BENCH_START_BLOCK
- ESPRESSO_BENCH_END_BLOCK
- ESPRESSO_SEQUENCER_URL
- RUST_LOG
- RUST_LOG_FORMAT
- ASYNC_STD_THREAD_COUNT
depends_on:
sequencer0:
condition: service_healthy
permissionless-builder:
condition: service_healthy
marketplace-reserve-builder:
image: ghcr.io/espressosystems/espresso-sequencer/marketplace-builder:main
ports:
- "$ESPRESSO_BUILDER_SERVER_PORT:$ESPRESSO_BUILDER_SERVER_PORT"
profiles: [marketplace]
environment:
- ESPRESSO_MARKETPLACE_BUILDER_IS_RESERVE=true
- ESPRESSO_MARKETPLACE_SOLVER_API_URL=http://localhost:$ESPRESSO_MARKETPLACE_SOLVER_API_PORT
- ESPRESSO_MARKETPLACE_BUILDER_NAMESPACE=10000
- 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_TX_CHANNEL_CAPACITY
- ESPRESSO_BUILDER_EVENT_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:
sequencer0:
condition: service_healthy
fund-builder:
condition: service_completed_successfully
marketplace-fallback-builder:
image: ghcr.io/espressosystems/espresso-sequencer/marketplace-builder:main
ports:
- "$ESPRESSO_FALLBACK_BUILDER_SERVER_PORT:$ESPRESSO_FALLBACK_BUILDER_SERVER_PORT"
profiles: [marketplace]
environment:
- ESPRESSO_BUILDER_SERVER_PORT=$ESPRESSO_FALLBACK_BUILDER_SERVER_PORT
- ESPRESSO_MARKETPLACE_BUILDER_IS_RESERVE=false
- ESPRESSO_MARKETPLACE_SOLVER_API_URL=http://localhost:$ESPRESSO_MARKETPLACE_SOLVER_API_PORT
- ESPRESSO_MARKETPLACE_BUILDER_NAMESPACE=10000
- 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_TX_CHANNEL_CAPACITY
- ESPRESSO_BUILDER_EVENT_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:
sequencer0:
condition: service_healthy
fund-builder:
condition: service_completed_successfully
permissionless-builder:
image: ghcr.io/espressosystems/espresso-sequencer/builder:main
ports:
- "$ESPRESSO_BUILDER_SERVER_PORT:$ESPRESSO_BUILDER_SERVER_PORT"
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_TX_CHANNEL_CAPACITY
- ESPRESSO_BUILDER_EVENT_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:
sequencer0:
condition: service_healthy
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
marketplace-solver:
image: ghcr.io/espressosystems/espresso-sequencer/marketplace-solver:main
ports:
- "$ESPRESSO_MARKETPLACE_SOLVER_API_PORT:$ESPRESSO_MARKETPLACE_SOLVER_API_PORT"
environment:
- MARKETPLACE_SOLVER_POSTGRES_URL=postgresql://root:password@solver-db/solver
- ESPRESSO_MARKETPLACE_SOLVER_API_PORT
- ESPRESSO_SEQUENCER_HOTSHOT_EVENT_API_URL=http://sequencer0:$ESPRESSO_SEQUENCER_HOTSHOT_EVENT_STREAMING_API_PORT
- MARKETPLACE_SOLVER_POSTGRES_MAX_CONNECTIONS=100
- MARKETPLACE_SOLVER_POSTGRES_ACQUIRE_TIMEOUT=5
- RUST_LOG
depends_on:
sequencer0:
condition: service_healthy
solver-db:
condition: service_healthy
node-validator:
image: ghcr.io/espressosystems/espresso-sequencer/node-validator:main
ports:
- "$ESPRESSO_NODE_VALIDATOR_PORT:$ESPRESSO_NODE_VALIDATOR_PORT"
environment:
- RUST_LOG
- RUST_LOG_FORMAT
- ESPRESSO_NODE_VALIDATOR_PORT
- ESPRESSO_NODE_VALIDATOR_STAKE_TABLE_SOURCE_BASE_URL=http://sequencer0:$ESPRESSO_SEQUENCER_API_PORT/v0/
- ESPRESSO_NODE_VALIDATOR_LEAF_STREAM_SOURCE_BASE_URL=http://sequencer0:$ESPRESSO_SEQUENCER_API_PORT/v0/
- ESPRESSO_NODE_VALIDATOR_INITIAL_NODE_PUBLIC_BASE_URLS=http://sequencer0:$ESPRESSO_SEQUENCER_API_PORT/,http://sequencer1:$ESPRESSO_SEQUENCER_API_PORT/,http://sequencer2:$ESPRESSO_SEQUENCER_API_PORT/,http://sequencer3:$ESPRESSO_SEQUENCER_API_PORT/,http://sequencer4:$ESPRESSO_SEQUENCER_API_PORT/
depends_on:
sequencer0:
condition: service_healthy
sequencer1:
condition: service_healthy
sequencer2:
condition: service_healthy
sequencer3:
condition: service_healthy
sequencer4:
condition: service_healthy
sequencer-db-0:
image: postgres
user: root
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 -d sequencer && sleep 1 && pg_isready -U root -d sequencer"
interval: 5s
timeout: 4s
retries: 20
sequencer-db-1:
image: postgres
user: root
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 -d sequencer && sleep 1 && pg_isready -U root -d sequencer"
interval: 5s
timeout: 4s
retries: 20
solver-db:
image: postgres
user: root
ports:
- "$MARKETPLACE_SOLVER_POSTGRES_PORT:5432"
environment:
- POSTGRES_PASSWORD=password
- POSTGRES_USER=root
- POSTGRES_DB=solver
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 -d solver && sleep 1 && pg_isready -U root -d solver"
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/
- NODE_VALIDATOR_URI=ws://localhost:$ESPRESSO_NODE_VALIDATOR_PORT/v0/
depends_on:
sequencer1:
condition: service_healthy
dev-rollup:
image: ghcr.io/espressosystems/espresso-sequencer/dev-rollup:main
command:
dev-rollup register --ns 1; dev-rollup register --ns 2; dev-rollup register --ns 3
environment:
- ESPRESSO_MARKETPLACE_SOLVER_API_URL=http://marketplace-solver:$ESPRESSO_MARKETPLACE_SOLVER_API_PORT
depends_on:
marketplace-solver:
condition: service_healthy