From 1c608859e77d3c2c98b658931ef9075939ecea05 Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Sun, 25 Jul 2021 15:04:22 -0600 Subject: [PATCH] refactor(dockerfile): change healthcheck periods - reduce interval and increase start-period - format for clarity --- build/Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build/Dockerfile b/build/Dockerfile index 2410014..b7e7255 100644 --- a/build/Dockerfile +++ b/build/Dockerfile @@ -29,7 +29,11 @@ RUN apk --no-cache add libcap \ && mkdir /usr/share/nginx/letsencrypt # health check -HEALTHCHECK --interval=60s --timeout=5s --start-period=30s --retries=3 \ +HEALTHCHECK \ + --interval=10s \ + --timeout=5s \ + --start-period=60s \ + --retries=3 \ CMD curl --fail http://127.0.0.1:9000/nginx_status || exit 1 # standardized labels