We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 400570e + 084fecc commit 9985963Copy full SHA for 9985963
docker-compose.yml
@@ -9,6 +9,11 @@ services:
9
- "5555:5432"
10
networks:
11
- app-network
12
+ healthcheck:
13
+ test: ["CMD-SHELL", "pg_isready -h localhost -U $$POSTGRES_USER -d $$POSTGRES_DB"]
14
+ interval: 5s
15
+ timeout: 5s
16
+ retries: 5
17
18
redis:
19
image: "redis:alpine"
@@ -73,10 +78,14 @@ services:
73
78
ports:
74
79
- "8080:8080"
75
80
depends_on:
76
- - db
77
- - redis
- - s3
- - export-server
81
+ db:
82
+ condition: service_healthy
83
+ redis:
84
+ condition: service_started
85
+ s3:
86
87
+ export-server:
88
89
90
91
0 commit comments