From d5eca7afc538a0eb522d6ab09c450a9f523b3e47 Mon Sep 17 00:00:00 2001 From: Manuel Date: Fri, 9 Nov 2018 15:55:53 +0100 Subject: [PATCH] Global MySQL port and timeout variable --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index a631b70..2e141e2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,8 +13,9 @@ RUN wget https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSI ENV CRON_TIME="0 3 * * sun" \ MYSQL_HOST="mysql" \ - MYSQL_PORT="3306" + MYSQL_PORT="3306" \ + TIMEOUT="10s" VOLUME ["/backup"] -CMD dockerize -wait tcp://${MYSQL_HOST}:3306 /run.sh +CMD dockerize -wait tcp://${MYSQL_HOST}:${MYSQL_PORT} -timeout ${TIMEOUT} /run.sh