From 699fa81a08ff4c12c49c55f64abf708bcd22f5f1 Mon Sep 17 00:00:00 2001 From: Kumbirai Tanekha Date: Thu, 7 Mar 2019 20:27:50 +0000 Subject: [PATCH] use reasonable health check params (#13) --- test/docker-compose.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/test/docker-compose.yml b/test/docker-compose.yml index 42121b5..cebee08 100644 --- a/test/docker-compose.yml +++ b/test/docker-compose.yml @@ -12,16 +12,18 @@ services: image: postgres:9.6 healthcheck: test: ["CMD-SHELL", "pg_isready -U postgres"] - interval: 1s - timeout: 30s + timeout: 10s + interval: 10s + retries: 10 environment: POSTGRES_PASSWORD: securerootpass mysql: image: mysql/mysql-server:5.7 healthcheck: - test: ["CMD-SHELL", "mysql --execute \"SHOW DATABASES\""] - interval: 1s - timeout: 30s + test: ["CMD-SHELL", "mysqladmin ping"] + timeout: 10s + interval: 10s + retries: 10 environment: MYSQL_ROOT_PASSWORD: securerootpass MYSQL_DATABASE: mysql