We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f36b9e9 commit 907c8f2Copy full SHA for 907c8f2
.devcontainer/docker-compose.yml
@@ -13,9 +13,11 @@ services:
13
ports:
14
- 80:80
15
depends_on:
16
- - db
17
- - mailhog
18
-
+ db:
+ condition: service_healthy
+ mailhog:
19
+ condition: service_started
20
+
21
db:
22
image: postgres
23
restart: always
@@ -26,14 +28,21 @@ services:
26
28
- ../../data/db:/data/postgres
27
29
expose:
30
- "5432"
31
+ healthcheck:
32
+ test: ["CMD-SHELL", "pg_isready"]
33
+ interval: 10s
34
+ timeout: 5s
35
+ retries: 10
36
37
38
adminer:
39
image: adminer
40
41
42
- 8080:8080
43
44
45
46
47
mailhog:
48
image: mailhog/mailhog
0 commit comments