From 55df4f266aebe7709e5e97f01259f8681b1f153d Mon Sep 17 00:00:00 2001 From: andis Date: Thu, 22 Dec 2022 19:10:01 +0100 Subject: [PATCH] healthcheck for etherpad sql --- docker-compose.test.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docker-compose.test.yml b/docker-compose.test.yml index 9e22b86b..71f3c4ab 100644 --- a/docker-compose.test.yml +++ b/docker-compose.test.yml @@ -29,6 +29,10 @@ services: MYSQL_COLLATION: utf8_general_ci MYSQL_CHARSET: utf8 MYSQL_ALLOW_EMPTY_PASSWORD: "yes" + healthcheck: + test: ["CMD", "mysqladmin", "ping", "-h", "localhost"] + timeout: 20s + retries: 20 volumes: #- ep-mysql-volume:/var/lib/mysql - /srv/initdb/etherpad:/docker-entrypoint-initdb.d/ @@ -47,7 +51,7 @@ services: REQUIRE_SESSION: "true" depends_on: etherpadsql: - condition: "service_started" + condition: "service_healthy" volumes: - /srv/APIKEY.txt:/opt/etherpad-lite/APIKEY.txt # - ./deployment/mysql.cnf:/etc/mysql/conf.d