diff --git a/docker-compose.yml b/docker-compose.yml index b554633..ede07d4 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -28,9 +28,12 @@ services: MYSQL_USER: 'mapguesser' MYSQL_PASSWORD: 'mapguesser' healthcheck: - test: ["CMD", 'mysqladmin', 'ping', '-h', 'localhost', '-u', '$$MYSQL_USER', '-p$$MYSQL_PASSWORD' ] + test: ["CMD-SHELL", "mysqladmin -u $$MYSQL_USER -p$$MYSQL_PASSWORD ping -h localhost || exit 1"] + start_period: 5s + start_interval: 1s + interval: 5s timeout: 5s - retries: 10 + retries: 5 adminer: image: adminer:4.8.1-standalone ports: