mirror of
https://github.com/Mailu/Mailu.git
synced 2025-01-18 03:21:36 +02:00
change healtcheck again
This commit is contained in:
parent
88f7ab48f7
commit
2e26c7ad80
@ -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/health && kill -0 `cat /run/dovecot/master.pid`
|
||||
HEALTHCHECK --start-period=60s CMD curl -skfLo /dev/null http://127.0.0.1:10204/health && kill -0 `cat /run/dovecot/master.pid`
|
||||
|
||||
VOLUME ["/certs", "/overrides"]
|
||||
|
||||
|
@ -275,10 +275,6 @@ http {
|
||||
proxy_pass_request_body off;
|
||||
proxy_set_header Content-Length "";
|
||||
}
|
||||
|
||||
location /health {
|
||||
return 204;
|
||||
}
|
||||
}
|
||||
|
||||
# Forwarding authentication server
|
||||
@ -293,6 +289,14 @@ http {
|
||||
}
|
||||
}
|
||||
|
||||
# Healthcheck over localhost, for docker
|
||||
server {
|
||||
listen 127.0.0.1:10204;
|
||||
location /health {
|
||||
return 204;
|
||||
}
|
||||
}
|
||||
|
||||
include /etc/nginx/conf.d/*.conf;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user