Skip to content
Snippets Groups Projects
Commit 430cc99d authored by nimrod's avatar nimrod
Browse files

Use the status module for health checks.

parent eb4a9d36
No related branches found
No related tags found
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment