diff --git a/Dockerfile b/Dockerfile index 6b03111..50489b3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -55,3 +55,5 @@ RUN bash -c "if [ -n \"${VERSION}\" ] ; then echo ${VERSION} > ${WEBCRON_ROOT}/ USER root ENTRYPOINT ["/usr/local/bin/entrypoint.sh"] + +HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 CMD curl -f http://localhost:80/health || exit 1 diff --git a/Dockerfile.daemon b/Dockerfile.daemon index cdb477b..f6dc8e4 100644 --- a/Dockerfile.daemon +++ b/Dockerfile.daemon @@ -41,3 +41,5 @@ RUN bash -c "if [ -n \"${VERSION}\" ] ; then echo ${VERSION} > ${WEBCRON_ROOT}/ USER root ENTRYPOINT ["/usr/local/bin/entrypoint.sh"] + +HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 CMD bin/console webcron:health diff --git a/Dockerfile.webui b/Dockerfile.webui index a544813..64c58ea 100644 --- a/Dockerfile.webui +++ b/Dockerfile.webui @@ -55,3 +55,4 @@ RUN bash -c "if [ -n \"${VERSION}\" ] ; then echo ${VERSION} > ${WEBCRON_ROOT}/ USER root ENTRYPOINT ["/usr/local/bin/entrypoint.sh"] +HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 CMD curl -f http://localhost:80 || exit 1