From 279aed2080df2f40a2922942ab5c74f97a3a45c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C4=93teris=20Caune?= <cuu508@gmail.com> Date: Sun, 22 Dec 2024 18:11:16 +0200 Subject: [PATCH] Add --start-period and --start-interval in Dockerfile ... to make the container go into a healthy state sooner. cc: #1108 --- docker/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index cae2e1cb..0bce417c 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -45,5 +45,5 @@ RUN mkdir /data && chown hc /data USER hc ENV USE_GZIP_MIDDLEWARE=True -HEALTHCHECK --interval=60s --retries=1 CMD ./fetchstatus.py +HEALTHCHECK --start-period=20s --start-interval=5s --interval=60s --retries=1 CMD ./fetchstatus.py CMD [ "uwsgi", "/opt/healthchecks/docker/uwsgi.ini"]