]> git.immae.eu Git - github/bastienwirtz/homer.git/commitdiff
Reduce docker healthcheck frequency
authorBastien Wirtz <bastien.wirtz@gmail.com>
Wed, 6 Oct 2021 20:55:53 +0000 (22:55 +0200)
committerBastien Wirtz <bastien.wirtz@gmail.com>
Wed, 6 Oct 2021 20:55:53 +0000 (22:55 +0200)
Dockerfile
Dockerfile.arm32v7
Dockerfile.arm64v8

index d7179fc59e3a9b5864b0577f1fff57be6e6dc139..e31d97d4af318a4c854f6d51d213c73aeae0fc34 100644 (file)
@@ -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}
index 1621abb74800d55809dd3d3cc80eea59563e3224..95a2db1dc3ea5102ed4db569fd35af50fcf5c77e 100644 (file)
@@ -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}
index fe35ede1a44b1136db90cb78cfbe7b547e412af4..cd15e4a0ddc08de149acc830d9c2b28c870e8ac2 100644 (file)
@@ -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}