Fix nginx healthcheck
@ -14,4 +14,4 @@ VOLUME ["/data", "/mail"]
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"]
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_set_header Content-Length "";
}
location /health {
return 204;
{% endif %}
@ -13,4 +13,4 @@ VOLUME ["/data"]
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"]
HEALTHCHECK CMD curl -f -L http://localhost:11334/ || exit 1
HEALTHCHECK --start-period=350s CMD curl -f -L http://localhost:11334/ || exit 1