Skip to content
Snippets Groups Projects
Verified Commit fb18eb82 authored by David Beniamine's avatar David Beniamine
Browse files

Add mariadb healthcheck

parent 927ac4c6
Branches
No related tags found
No related merge requests found
...@@ -12,6 +12,12 @@ services: ...@@ -12,6 +12,12 @@ services:
MYSQL_USER: dolibarr MYSQL_USER: dolibarr
MYSQL_PASSWORD: ${PASS} MYSQL_PASSWORD: ${PASS}
restart: ${RESTART} restart: ${RESTART}
healthcheck:
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
start_period: 10s
interval: 10s
timeout: 5s
retries: 3
dolibarr: dolibarr:
build: build:
...@@ -37,3 +43,6 @@ services: ...@@ -37,3 +43,6 @@ services:
restart: ${RESTART} restart: ${RESTART}
links: links:
- mariadb - mariadb
depends_on:
mariadb:
condition: service_healthy
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment