Skip to content

Commit 67bb144

Browse files
committed
Add default healthcheck options
To understand better what is going on
1 parent 020fed2 commit 67bb144

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

docker-compose.stack.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ services:
1919
- db_a
2020
healthcheck:
2121
test: ["CMD", "docker-healthcheck-gtm"]
22+
interval: 30s
23+
timeout: 30s
24+
start_period: 0s
25+
retries: 3
2226
# deploy:
2327
# placement:
2428
# constraints:
@@ -40,6 +44,10 @@ services:
4044
- db_b
4145
healthcheck:
4246
test: ["CMD", "docker-healthcheck-coord"]
47+
interval: 30s
48+
timeout: 30s
49+
start_period: 0s
50+
retries: 3
4351
# deploy:
4452
# placement:
4553
# constraints:
@@ -61,6 +69,10 @@ services:
6169
- db_b
6270
healthcheck:
6371
test: ["CMD", "docker-healthcheck-coord"]
72+
interval: 30s
73+
timeout: 30s
74+
start_period: 0s
75+
retries: 3
6476
# deploy:
6577
# placement:
6678
# constraints:
@@ -81,6 +93,10 @@ services:
8193
- db_a
8294
healthcheck:
8395
test: ["CMD", "docker-healthcheck-data"]
96+
interval: 30s
97+
timeout: 30s
98+
start_period: 0s
99+
retries: 3
84100
# deploy:
85101
# placement:
86102
# constraints:
@@ -101,6 +117,10 @@ services:
101117
- db_a
102118
healthcheck:
103119
test: ["CMD", "docker-healthcheck-data"]
120+
interval: 30s
121+
timeout: 30s
122+
start_period: 0s
123+
retries: 3
104124
# deploy:
105125
# placement:
106126
# constraints:

0 commit comments

Comments
 (0)