From ee2bbdb4b8f816ba1d219de9d8575c479d6dd337 Mon Sep 17 00:00:00 2001 From: Patrick Mayr Date: Tue, 29 Nov 2022 20:55:16 +0000 Subject: [PATCH] fix docker compose --- docker-compose.test.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/docker-compose.test.yml b/docker-compose.test.yml index 7d91624e..b5d10d97 100644 --- a/docker-compose.test.yml +++ b/docker-compose.test.yml @@ -13,6 +13,10 @@ services: volumes: - mysql-volume:/var/lib/mysql - /srv/initdb/mysql:/docker-entrypoint-initdb.d/ + healthcheck: + test: ["CMD", "mysqladmin", "ping", "-h", "localhost"] + timeout: 20s + retries: 20 etherpadsql: image: mariadb container_name: test_mysql_etherpad @@ -55,8 +59,10 @@ services: MYSQL_PASSWORD: "hgu" ETHERPAD_GROUP: "g.snlbqn7S6ksRbom3" depends_on: - - mysql - - etherpad + mysql: + condition: service_healthy + etherpad: + condition: service_healthy ports: - "8005:8080" volumes: