Skip to content

Commit 54ef0eb

Browse files
committed
fixup! feat(cli): use pre-initialized rollups-database
1 parent a120a02 commit 54ef0eb

1 file changed

Lines changed: 6 additions & 19 deletions

File tree

apps/cli/src/compose/rollups/docker-compose-explorer.yaml

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,4 @@
11
services:
2-
database_creator:
3-
image: postgres:16
4-
command: ["createdb", "squid"]
5-
depends_on:
6-
database:
7-
condition: service_healthy
8-
environment:
9-
PGHOST: ${PGHOST:-database}
10-
PGPORT: ${PGPORT:-5432}
11-
PGUSER: ${PGUSER:-postgres}
12-
PGPASSWORD: ${PGPASSWORD:-password}
13-
PGDATABASE: ${PGDATABASE:-postgres}
14-
152
explorer_api:
163
image: cartesi/rollups-explorer-api:0.5.0
174
environment:
@@ -37,8 +24,8 @@ services:
3724
timeout: 1s
3825
retries: 5
3926
depends_on:
40-
database_creator:
41-
condition: service_completed_successfully
27+
database:
28+
condition: service_healthy
4229

4330
squid_processor:
4431
image: cartesi/rollups-explorer-api:0.5.0
@@ -52,16 +39,16 @@ services:
5239
DB_PASS: ${PGPASSWORD:-password}
5340
command: ["sqd", "process:prod"]
5441
depends_on:
55-
database_creator:
56-
condition: service_completed_successfully
42+
database:
43+
condition: service_healthy
5744

5845
explorer:
5946
image: cartesi/rollups-explorer:0.12.0
6047
expose:
6148
- 3000
6249
depends_on:
63-
database_creator:
64-
condition: service_completed_successfully
50+
database:
51+
condition: service_healthy
6552

6653
proxy:
6754
volumes:

0 commit comments

Comments
 (0)