diff options
author | Bastien Wirtz <bastien.wirtz@gmail.com> | 2021-10-06 22:55:53 +0200 |
---|---|---|
committer | Bastien Wirtz <bastien.wirtz@gmail.com> | 2021-10-06 22:55:53 +0200 |
commit | 220c60cba04e86e782e9610aa8ef0d77e221072c (patch) | |
tree | 4c51cd7efbf469f57dfc9b74218c68dbef4d0041 | |
parent | 2ca4faad9cb336ac8904bbc775fdcc2a12731b90 (diff) | |
download | homer-220c60cba04e86e782e9610aa8ef0d77e221072c.tar.gz homer-220c60cba04e86e782e9610aa8ef0d77e221072c.tar.zst homer-220c60cba04e86e782e9610aa8ef0d77e221072c.zip |
Reduce docker healthcheck frequency
-rw-r--r-- | Dockerfile | 2 | ||||
-rw-r--r-- | Dockerfile.arm32v7 | 2 | ||||
-rw-r--r-- | Dockerfile.arm64v8 | 2 |
3 files changed, 3 insertions, 3 deletions
@@ -25,7 +25,7 @@ COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist /www/ | |||
25 | COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist/assets /www/default-assets | 25 | COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist/assets /www/default-assets |
26 | COPY entrypoint.sh /entrypoint.sh | 26 | COPY entrypoint.sh /entrypoint.sh |
27 | 27 | ||
28 | HEALTHCHECK --interval=5s --timeout=5s --retries=3 \ | 28 | HEALTHCHECK --interval=30s --timeout=5s --retries=3 \ |
29 | CMD wget --no-verbose --tries=1 --spider http://127.0.0.1:${PORT}/ || exit 1 | 29 | CMD wget --no-verbose --tries=1 --spider http://127.0.0.1:${PORT}/ || exit 1 |
30 | 30 | ||
31 | EXPOSE ${PORT} | 31 | 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/ | |||
35 | COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist/assets /www/default-assets | 35 | COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist/assets /www/default-assets |
36 | COPY entrypoint.sh /entrypoint.sh | 36 | COPY entrypoint.sh /entrypoint.sh |
37 | 37 | ||
38 | HEALTHCHECK --interval=5s --timeout=5s --retries=3 \ | 38 | HEALTHCHECK --interval=30s --timeout=5s --retries=3 \ |
39 | CMD wget --no-verbose --tries=1 --spider http://127.0.0.1:${PORT}/ || exit 1 | 39 | CMD wget --no-verbose --tries=1 --spider http://127.0.0.1:${PORT}/ || exit 1 |
40 | 40 | ||
41 | EXPOSE ${PORT} | 41 | 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/ | |||
35 | COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist/assets /www/default-assets | 35 | COPY --from=build-stage --chown=${USER}:${GROUP} /app/dist/assets /www/default-assets |
36 | COPY entrypoint.sh /entrypoint.sh | 36 | COPY entrypoint.sh /entrypoint.sh |
37 | 37 | ||
38 | HEALTHCHECK --interval=5s --timeout=5s --retries=3 \ | 38 | HEALTHCHECK --interval=30s --timeout=5s --retries=3 \ |
39 | CMD wget --no-verbose --tries=1 --spider http://127.0.0.1:${PORT}/ || exit 1 | 39 | CMD wget --no-verbose --tries=1 --spider http://127.0.0.1:${PORT}/ || exit 1 |
40 | 40 | ||
41 | EXPOSE ${PORT} | 41 | EXPOSE ${PORT} |