mirror of
https://github.com/fradelg/docker-mysql-cron-backup.git
synced 2025-06-20 21:59:08 +00:00
Merge pull request #94 from g-nardiello/feature-healthcheck
[Feature] Add basic healthcheck
This commit is contained in:
commit
19c7f7395d
3 changed files with 12 additions and 1 deletions
|
@ -41,4 +41,7 @@ RUN mkdir /backup && \
|
|||
|
||||
VOLUME ["/backup"]
|
||||
|
||||
CMD dockerize -wait tcp://${MYSQL_HOST}:${MYSQL_PORT} -timeout ${TIMEOUT} /run.sh
|
||||
HEALTHCHECK --interval=2s --retries=1800 \
|
||||
CMD stat /HEALTHY.status || exit 1
|
||||
|
||||
ENTRYPOINT dockerize -wait tcp://${MYSQL_HOST}:${MYSQL_PORT} -timeout ${TIMEOUT} /run.sh
|
Loading…
Add table
Add a link
Reference in a new issue