mirror of
https://github.com/Mailu/Mailu.git
synced 2024-12-12 10:45:38 +02:00
maybe fix healthcheck
This commit is contained in:
parent
915c1a75f1
commit
0025d06c4e
@ -28,7 +28,7 @@ RUN echo $VERSION >/version
|
||||
|
||||
EXPOSE 80/tcp 443/tcp 110/tcp 143/tcp 465/tcp 587/tcp 993/tcp 995/tcp 25/tcp 4190/tcp
|
||||
# EXPOSE 10025/tcp 10143/tcp
|
||||
HEALTHCHECK --start-period=60s CMD curl -skfLo /dev/null http://127.0.0.1:10204/health && echo PING|nc -w2 localhost 5001|grep "PONG"
|
||||
HEALTHCHECK --start-period=60s CMD curl -skfLo /dev/null http://127.0.0.1/health && echo PING|nc -w2 127.0.0.1 5001|grep -q "PONG"
|
||||
|
||||
VOLUME ["/certs", "/overrides"]
|
||||
|
||||
|
@ -73,6 +73,9 @@ http {
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
|
||||
location /health {
|
||||
return 204;
|
||||
}
|
||||
}
|
||||
{% endif %}
|
||||
|
||||
@ -290,14 +293,6 @@ http {
|
||||
}
|
||||
}
|
||||
|
||||
# Healthcheck over localhost, for docker
|
||||
server {
|
||||
listen 127.0.0.1:10204;
|
||||
location /health {
|
||||
return 204;
|
||||
}
|
||||
}
|
||||
|
||||
include /etc/nginx/conf.d/*.conf;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user