Global MySQL port and timeout variable

This commit is contained in:
Manuel 2018-11-09 15:55:53 +01:00 committed by GitHub
parent fe1028a205
commit d5eca7afc5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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