added healthcheck

This commit is contained in:
Bryan Joshua Pedini 2024-10-16 15:27:49 +02:00
parent 40de85a1ff
commit 9e211712a4

View File

@ -8,6 +8,12 @@ services:
- MARIADB_USER=${MARIADB_USER}
- MARIADB_PASSWORD=${MARIADB_PASSWORD}
- MARIADB_DATABASE=${MARIADB_DATABASE}
healthcheck:
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
start_period: 5s
interval: 3s
timeout: 3s
retries: 3
labels:
### Section Diun
- diun.enable=${DIUN_ENABLE}