Less yank mariadb healthcheck

This commit is contained in:
Donkie
2023-05-21 23:46:44 +02:00
parent 5e75d6d70e
commit adda3e6f25

View File

@@ -7,11 +7,19 @@ services:
- MARIADB_RANDOM_ROOT_PASSWORD=yes - MARIADB_RANDOM_ROOT_PASSWORD=yes
- MARIADB_PASSWORD=abc - MARIADB_PASSWORD=abc
- MARIADB_DATABASE=spoolman - MARIADB_DATABASE=spoolman
- MARIADB_MYSQL_LOCALHOST_USER=true
healthcheck: healthcheck:
test: [ "CMD", "mysqladmin", "ping", "-h", "localhost" ] test:
[
"CMD",
"/usr/local/bin/healthcheck.sh",
"--su-mysql",
"--connect",
"--innodb_initialized"
]
interval: 1s interval: 1s
timeout: 20s timeout: 5s
retries: 10 retries: 30
spoolman: spoolman:
image: donkie/spoolman:test image: donkie/spoolman:test
environment: environment: