1
0
mirror of https://github.com/Mailu/Mailu.git synced 2025-06-08 23:46:30 +02:00

Fix healthcheck

This commit is contained in:
Dimitri Huisman 2022-03-22 16:01:26 +00:00
parent af1cba2b30
commit dc7613b34a
2 changed files with 6 additions and 1 deletions

View File

@ -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

View File

@ -47,4 +47,9 @@ server {
location ^~ /data {
deny all;
}
location /health {
add_header Content-Type text/plain;
return 200;
}
}