Skip to content

Commit 36d363c

Browse files
committed
delay api service start until other resources are ready
1 parent 021ac4f commit 36d363c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

compose.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,10 @@ services:
2020
ports:
2121
- "8080:8080"
2222
depends_on:
23-
- postgres
24-
- redis
23+
postgres:
24+
condition: service_healthy
25+
redis:
26+
condition: service_started
2527

2628
postgres:
2729
container_name: panettone_postgres

0 commit comments

Comments
 (0)