Skip to content

Commit ecbfb1c

Browse files
committed
Tuned health checks.
1 parent 14f49f3 commit ecbfb1c

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

compose.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,10 @@ services:
3232
- ./mysql/config.cnf:/etc/mysql/conf.d/custom.cnf:ro
3333
- mysql:/var/lib/mysql:rw
3434
healthcheck:
35-
interval: 5s
36-
timeout: 1s
35+
interval: 10s
36+
timeout: 2s
3737
retries: 3
38+
start_period: 30s
3839
logging:
3940
driver: "json-file"
4041
options: { max-size: "5m", max-file: "3" }
@@ -60,9 +61,10 @@ services:
6061
soft: -1
6162
hard: -1
6263
healthcheck:
63-
interval: 5s
64-
timeout: 1s
64+
interval: 10s
65+
timeout: 2s
6566
retries: 3
67+
start_period: 30s
6668
logging:
6769
driver: "json-file"
6870
options: { max-size: "2m", max-file: "3" }
@@ -81,9 +83,10 @@ services:
8183
driver: json-file
8284
options: { max-size: "2m", max-file: "3" }
8385
healthcheck:
84-
interval: 5s
85-
timeout: 1s
86+
interval: 10s
87+
timeout: 2s
8688
retries: 3
89+
start_period: 10s
8790
networks:
8891
default:
8992
aliases:

0 commit comments

Comments
 (0)