mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-26 08:10:11 +01:00
Added healthcheck to mysql container
Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
parent
aa07811d52
commit
9dbfbb74af
@ -16,6 +16,12 @@ services:
|
|||||||
- MYSQL_PASSWORD=piler123
|
- MYSQL_PASSWORD=piler123
|
||||||
- MYSQL_RANDOM_ROOT_PASSWORD=yes
|
- MYSQL_RANDOM_ROOT_PASSWORD=yes
|
||||||
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
|
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
|
||||||
|
healthcheck:
|
||||||
|
test: mysql --user=piler --password=piler123 piler --execute "show tables"
|
||||||
|
interval: "60s"
|
||||||
|
timeout: "5s"
|
||||||
|
start_period: "15s"
|
||||||
|
retries: 3
|
||||||
volumes:
|
volumes:
|
||||||
- db_data:/var/lib/mysql
|
- db_data:/var/lib/mysql
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user