From 57a467d4a2d383d736e87e1544766a359fec1b23 Mon Sep 17 00:00:00 2001 From: Chiara Rasi Date: Wed, 11 Dec 2024 13:43:39 +0100 Subject: [PATCH] Fix the healthcheck step of the docker-compose MySQL file --- CHANGELOG.md | 4 ++++ docker-compose-mysql.yml | 10 ++++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ba154a90..787b0c97 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## [unreleased] +### Fixed +- The MariaDB healthcheck step in docker-compose-mysql.yml, preventing the demo app to start + ## [2.1] ### Added - Refseq transcripts names on coverage overview page diff --git a/docker-compose-mysql.yml b/docker-compose-mysql.yml index ffd67156..a16aab6d 100644 --- a/docker-compose-mysql.yml +++ b/docker-compose-mysql.yml @@ -12,10 +12,12 @@ services: - MYSQL_DATABASE=${MYSQL_DATABASE_NAME} - MYSQL_HOST_PORT=${MYSQL_HOST_PORT} - MARIADB_RANDOM_ROOT_PASSWORD=T - healthcheck: # Wait for the service to be ready before accepting incoming connections - test: "mariadb --user=${MYSQL_USER} --password=${MYSQL_PASSWORD} --execute \"SHOW DATABASES;\"" - timeout: 10s - retries: 20 + healthcheck: + test: [ "CMD", "healthcheck.sh", "--connect", "--innodb_initialized" ] + start_period: 10s + interval: 10s + timeout: 5s + retries: 3 volumes: - ${HOST_DATA_VOLUME}:${CONTAINER_DATA_VOLUME} networks: