Skip to content

Commit b34bb34

Browse files
update service dependencies to start smoothly (#226)
1 parent 74cc927 commit b34bb34

File tree

1 file changed

+19
-8
lines changed

1 file changed

+19
-8
lines changed

docker-compose.yml

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,16 @@ services:
124124
- "8890:8890"
125125
- "8891:8891"
126126
- "9000:9000"
127-
- "30315:30315"
127+
- "40401:40401"
128128
depends_on:
129-
- entry-point
130-
- init-keyspace
131-
- cassandra
129+
entry-point:
130+
condition: service_healthy
131+
cassandra:
132+
condition: service_healthy
133+
init-keyspace:
134+
condition: service_completed_successfully
135+
deploy-network-subgraphs-fastchain:
136+
condition: service_completed_successfully
132137
environment:
133138
STREAMR_URL: "${STREAMR_BASE_URL}"
134139
CASSANDRA_HOST: 10.200.10.1:9042
@@ -149,9 +154,12 @@ services:
149154
- "8790:8790"
150155
- "8791:8791"
151156
- "9100:9100"
152-
- "30316:30316"
157+
- "40402:40402"
153158
depends_on:
154-
- entry-point
159+
entry-point:
160+
condition: service_healthy
161+
deploy-network-subgraphs-fastchain:
162+
condition: service_completed_successfully
155163
environment:
156164
STREAMR_URL: "${STREAMR_BASE_URL}"
157165
command: npm exec -- streamr-broker configs/docker-2.env.json
@@ -171,9 +179,12 @@ services:
171179
- "8690:8690"
172180
- "8691:8691"
173181
- "9200:9200"
174-
- "30317:30317"
182+
- "40403:40403"
175183
depends_on:
176-
- entry-point
184+
entry-point:
185+
condition: service_healthy
186+
deploy-network-subgraphs-fastchain:
187+
condition: service_completed_successfully
177188
environment:
178189
STREAMR_URL: "${STREAMR_BASE_URL}"
179190
command: npm exec -- streamr-broker configs/docker-3.env.json

0 commit comments

Comments
 (0)