Skip to content

Commit 06a58a2

Browse files
Clarify startup dependencies by explicitly setting condition to service_started
Signed-off-by: guptapratykshh <pratykshgupta9999@gmail.com>
1 parent b7d0b55 commit 06a58a2

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

docker-compose.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ services:
1515
networks:
1616
- augur
1717
healthcheck:
18-
test: ["CMD-SHELL", "pg_isready -U ${AUGUR_DB_USER:-augur} -d augur"]
18+
test: ["CMD-SHELL", "pg_isready -U ${AUGUR_DB_USER:-augur} -d ${AUGUR_DB_NAME:-augur}"]
19+
1920
interval: 10s
2021
timeout: 5s
2122
retries: 5
@@ -86,9 +87,12 @@ services:
8687
depends_on:
8788
augur-db:
8889
condition: service_healthy
89-
- redis
90-
- augur-keyman
91-
- rabbitmq
90+
redis:
91+
condition: service_started
92+
augur-keyman:
93+
condition: service_started
94+
rabbitmq:
95+
condition: service_started
9296
networks:
9397
- augur
9498
user: 2345:2345 # Run as an arbitrary non-root user

0 commit comments

Comments
 (0)