Merge pull request from g-nardiello/feature-healthcheck

[Feature] Add basic healthcheck
This commit is contained in:
Fco. Javier Delgado del Hoyo 2023-01-20 19:00:55 +01:00 committed by GitHub
commit 19c7f7395d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 1 deletions

View file

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