From 99a816430bfb3f3f10c0dba49ef1d9067c572a8b Mon Sep 17 00:00:00 2001 From: andryyy Date: Sun, 10 Feb 2019 17:36:25 +0100 Subject: [PATCH] [ACME] Wait for Nginx --- data/Dockerfiles/acme/docker-entrypoint.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/data/Dockerfiles/acme/docker-entrypoint.sh b/data/Dockerfiles/acme/docker-entrypoint.sh index c7d1f8ff..bb9a5a53 100755 --- a/data/Dockerfiles/acme/docker-entrypoint.sh +++ b/data/Dockerfiles/acme/docker-entrypoint.sh @@ -157,10 +157,17 @@ else fi fi -log_f "Waiting for database... " +log_f "Waiting for database... " no_nl while ! mysqladmin status --socket=/var/run/mysqld/mysqld.sock -u${DBUSER} -p${DBPASS} --silent; do sleep 2 done +log_f "OK" no_date + +log_f "Waiting for Nginx... " no_nl +until $(curl --output /dev/null --silent --head --fail http://nginx:8081); do + sleep 2 +done +log_f "OK" no_date # Waiting for domain table log_f "Waiting for domain table... " no_nl