Skip to content

Commit 21941a2

Browse files
committed
Switch to long-form dependencies to ensure they're healthy before starting up.
1 parent 265c6fc commit 21941a2

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

docker/docker-compose.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,14 @@ services:
5555
image: share-api
5656
container_name: share-api
5757
depends_on:
58-
- redis
59-
- postgres
60-
- vault
58+
redis:
59+
condition: service_healthy
60+
postgres:
61+
condition: service_healthy
62+
vault:
63+
condition: service_healthy
64+
http-echo:
65+
condition: service_started
6166
healthcheck:
6267
test: ["CMD", "curl", "-f", "http://localhost:5424/health"]
6368
interval: 3s

0 commit comments

Comments
 (0)