Skip to content

Commit 26365d9

Browse files
committed
improved HAProxy's depends_on
1 parent 05dd7c0 commit 26365d9

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

sharding-ha-compose.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -227,10 +227,8 @@ services:
227227
volumes:
228228
- ./scripts/sharding/haproxy-shard1.cfg:/usr/local/etc/haproxy/haproxy.cfg:ro
229229
depends_on:
230-
aggregator-shard1-1:
231-
condition: service_healthy
232-
aggregator-shard1-2:
233-
condition: service_healthy
230+
- aggregator-shard1-1
231+
- aggregator-shard1-2
234232
healthcheck:
235233
test:
236234
[
@@ -258,10 +256,8 @@ services:
258256
volumes:
259257
- ./scripts/sharding/haproxy-shard2.cfg:/usr/local/etc/haproxy/haproxy.cfg:ro
260258
depends_on:
261-
aggregator-shard2-1:
262-
condition: service_healthy
263-
aggregator-shard2-2:
264-
condition: service_healthy
259+
- aggregator-shard2-1
260+
- aggregator-shard2-2
265261
healthcheck:
266262
test:
267263
[

0 commit comments

Comments
 (0)