From dc7613b34a00b39dc9f206daaa3ea8b51dd5b475 Mon Sep 17 00:00:00 2001 From: Dimitri Huisman Date: Tue, 22 Mar 2022 16:01:26 +0000 Subject: [PATCH] Fix healthcheck --- webmails/snappymail/Dockerfile | 2 +- webmails/snappymail/config/nginx-snappymail.conf | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/webmails/snappymail/Dockerfile b/webmails/snappymail/Dockerfile index 142f4430..8777dd11 100644 --- a/webmails/snappymail/Dockerfile +++ b/webmails/snappymail/Dockerfile @@ -88,5 +88,5 @@ VOLUME ["/data"] CMD /start.py -HEALTHCHECK CMD curl -f -L http://localhost/ || exit 1 +HEALTHCHECK CMD curl -f -L http://localhost/health || exit 1 RUN echo $VERSION >> /version diff --git a/webmails/snappymail/config/nginx-snappymail.conf b/webmails/snappymail/config/nginx-snappymail.conf index ca70e4db..7819125f 100644 --- a/webmails/snappymail/config/nginx-snappymail.conf +++ b/webmails/snappymail/config/nginx-snappymail.conf @@ -47,4 +47,9 @@ server { location ^~ /data { deny all; } + + location /health { + add_header Content-Type text/plain; + return 200; + } }