From 220c60cba04e86e782e9610aa8ef0d77e221072c Mon Sep 17 00:00:00 2001 From: Bastien Wirtz Date: Wed, 6 Oct 2021 22:55:53 +0200 Subject: [PATCH] Reduce docker healthcheck frequency --- Dockerfile | 2 +- Dockerfile.arm32v7 | 2 +- Dockerfile.arm64v8 | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index d7179fc..e31d97d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,7 +25,7 @@ COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist /www/ COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist/assets /www/default-assets COPY entrypoint.sh /entrypoint.sh -HEALTHCHECK --interval=5s --timeout=5s --retries=3 \ +HEALTHCHECK --interval=30s --timeout=5s --retries=3 \ CMD wget --no-verbose --tries=1 --spider http://127.0.0.1:${PORT}/ || exit 1 EXPOSE ${PORT} diff --git a/Dockerfile.arm32v7 b/Dockerfile.arm32v7 index 1621abb..95a2db1 100644 --- a/Dockerfile.arm32v7 +++ b/Dockerfile.arm32v7 @@ -35,7 +35,7 @@ COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist /www/ COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist/assets /www/default-assets COPY entrypoint.sh /entrypoint.sh -HEALTHCHECK --interval=5s --timeout=5s --retries=3 \ +HEALTHCHECK --interval=30s --timeout=5s --retries=3 \ CMD wget --no-verbose --tries=1 --spider http://127.0.0.1:${PORT}/ || exit 1 EXPOSE ${PORT} diff --git a/Dockerfile.arm64v8 b/Dockerfile.arm64v8 index fe35ede..cd15e4a 100644 --- a/Dockerfile.arm64v8 +++ b/Dockerfile.arm64v8 @@ -35,7 +35,7 @@ COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist /www/ COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist/assets /www/default-assets COPY entrypoint.sh /entrypoint.sh -HEALTHCHECK --interval=5s --timeout=5s --retries=3 \ +HEALTHCHECK --interval=30s --timeout=5s --retries=3 \ CMD wget --no-verbose --tries=1 --spider http://127.0.0.1:${PORT}/ || exit 1 EXPOSE ${PORT}