Merge pull request #2 from usrpro/fix-nginx-healthcheck
Fix nginx healthcheck
This commit is contained in:
@@ -14,4 +14,4 @@ VOLUME ["/data", "/mail"]
|
|||||||
|
|
||||||
CMD /start.py
|
CMD /start.py
|
||||||
|
|
||||||
HEALTHCHECK CMD echo QUIT|nc localhost 110|grep "Dovecot ready."
|
HEALTHCHECK --start-period=350s CMD echo QUIT|nc localhost 110|grep "Dovecot ready."
|
||||||
|
|||||||
@@ -13,4 +13,4 @@ VOLUME ["/certs"]
|
|||||||
|
|
||||||
CMD /start.py
|
CMD /start.py
|
||||||
|
|
||||||
HEALTHCHECK CMD curl -f -L http://localhost/ || exit 1
|
HEALTHCHECK CMD curl -k -f -L http://localhost/health || exit 1
|
||||||
|
|||||||
@@ -150,6 +150,10 @@ http {
|
|||||||
proxy_pass_request_body off;
|
proxy_pass_request_body off;
|
||||||
proxy_set_header Content-Length "";
|
proxy_set_header Content-Length "";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location /health {
|
||||||
|
return 204;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|||||||
@@ -13,4 +13,4 @@ VOLUME ["/data"]
|
|||||||
|
|
||||||
CMD /start.py
|
CMD /start.py
|
||||||
|
|
||||||
HEALTHCHECK CMD echo QUIT|nc localhost 25|grep "220 .* ESMTP Postfix"
|
HEALTHCHECK --start-period=350s CMD echo QUIT|nc localhost 25|grep "220 .* ESMTP Postfix"
|
||||||
|
|||||||
@@ -15,4 +15,4 @@ VOLUME ["/var/lib/rspamd"]
|
|||||||
|
|
||||||
CMD /start.py
|
CMD /start.py
|
||||||
|
|
||||||
HEALTHCHECK CMD curl -f -L http://localhost:11334/ || exit 1
|
HEALTHCHECK --start-period=350s CMD curl -f -L http://localhost:11334/ || exit 1
|
||||||
|
|||||||
Reference in New Issue
Block a user