From 430cc99dca678abe8182eff2a4c1575f41ab8d8e Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Sat, 24 Apr 2021 18:26:54 +0300 Subject: [PATCH] Use the status module for health checks. --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 5dacd4b..306914c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,4 +23,4 @@ COPY conf.d/ /etc/nginx/conf.d/ COPY snippets/ /etc/nginx/snippets/ USER nginx RUN nginx -t -HEALTHCHECK CMD curl --fail --verbose --user-agent 'Docker health check' http://localhost/ || exit 1 +HEALTHCHECK CMD curl --fail --verbose --user-agent 'Docker health check' --header "Host: status" http://localhost/ || exit 1 -- GitLab