@@ -6,15 +6,11 @@ services:
66 database :
77 condition : service_healthy
88 environment :
9- PGHOST : ${PGHOST:-database}
10- PGPORT : ${PGPORT:-5432}
11- PGUSER : ${PGUSER:-postgres}
12- PGPASSWORD : ${PGPASSWORD:-password}
13- PGDATABASE : ${PGDATABASE:-postgres}
14-
15- rollups-node :
16- environment :
17- CARTESI_FEATURE_INPUT_READER_ENABLED : false
9+ PGHOST : database
10+ PGPORT : 5432
11+ PGUSER : postgres
12+ PGPASSWORD : password
13+ PGDATABASE : postgres
1814
1915 espresso :
2016 image : ${CARTESI_SDK_IMAGE}
@@ -32,7 +28,7 @@ services:
3228 depends_on :
3329 espresso_database_creator :
3430 condition : service_completed_successfully
35- database :
31+ anvil :
3632 condition : service_healthy
3733 environment :
3834 ESPRESSO_SEQUENCER_L1_PROVIDER : ${CARTESI_BLOCKCHAIN_HTTP_ENDPOINT:-http://anvil:8545}
@@ -46,6 +42,8 @@ services:
4642 ESPRESSO_SEQUENCER_POSTGRES_PASSWORD : password
4743 ESPRESSO_SEQUENCER_POSTGRES_DATABASE : sequencer
4844 ESPRESSO_SEQUENCER_ETH_MNEMONIC : ${CARTESI_AUTH_MNEMONIC:-test test test test test test test test test test test junk}
45+ ESPRESSO_SEQUENCER_L1_POLLING_INTERVAL : " 1s"
46+ ESPRESSO_STATE_PROVER_UPDATE_INTERVAL : " 1s"
4947 healthcheck :
5048 test :
5149 [
@@ -60,9 +58,46 @@ services:
6058 timeout : 1s
6159 retries : 5
6260
61+ rollups-node :
62+ environment :
63+ CARTESI_FEATURE_INPUT_READER_ENABLED : false
64+
65+ espresso_reader_migration :
66+ image : ${CARTESI_SDK_IMAGE}
67+ command :
68+ - migrate
69+ - -source
70+ - file:///usr/share/cartesi/rollups-espresso-reader/migrations
71+ - -database
72+ - postgres://postgres:password@database:5432/postgres?sslmode=disable&x-migrations-table=espresso_schema_migrations
73+ - up
74+ depends_on :
75+ rollups-node-migration :
76+ condition : service_completed_successfully
77+
78+ espresso_reader :
79+ image : ${CARTESI_SDK_IMAGE}
80+ command : ["cartesi-rollups-espresso-reader"]
81+ env_file :
82+ - ${CARTESI_BIN_PATH}/compose/rollups/default.env
83+ ports :
84+ - 8081
85+ depends_on :
86+ espresso_reader_migration :
87+ condition : service_completed_successfully
88+ espresso :
89+ condition : service_healthy
90+ environment :
91+ CARTESI_POSTGRES_ENDPOINT : postgres://postgres:password@database:5432/postgres?sslmode=disable
92+ ESPRESSO_SERVICE_ENDPOINT : " :8081"
93+ ESPRESSO_BASE_URL : http://espresso:8770
94+ ESPRESSO_NAMESPACE : 51025
95+ ESPRESSO_STARTING_BLOCK : 101
96+
6397 proxy :
6498 depends_on :
6599 espresso :
66100 condition : service_healthy
67101 volumes :
68102 - ./proxy/espresso.yaml:/etc/traefik/conf.d/espresso.yaml
103+ - ./proxy/espresso-reader.yaml:/etc/traefik/conf.d/espresso-reader.yaml
0 commit comments