Merge pull request #2 from usrpro/fix-nginx-healthcheck

Fix nginx healthcheck
master
Thomas Sänger 6 years ago committed by GitHub
commit 603b6e7390
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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"]
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_set_header Content-Length "";
}
location /health {
return 204;
}
}
{% endif %}

@ -13,4 +13,4 @@ VOLUME ["/data"]
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
HEALTHCHECK CMD curl -f -L http://localhost:11334/ || exit 1
HEALTHCHECK --start-period=350s CMD curl -f -L http://localhost:11334/ || exit 1

Loading…
Cancel
Save