mirror of
https://github.com/Mailu/Mailu.git
synced 2024-12-04 10:24:41 +02:00
Ensure healthchecks timeout
This commit is contained in:
parent
5e7d4edc9d
commit
7aaf7ec17b
@ -23,7 +23,7 @@ RUN set -euxo pipefail \
|
||||
RUN echo $VERSION >/version
|
||||
|
||||
#EXPOSE 8080/tcp
|
||||
HEALTHCHECK CMD curl -skfLo /dev/null http://localhost:8080/ping
|
||||
HEALTHCHECK CMD curl -m3 -skfLo /dev/null http://localhost:8080/ping
|
||||
|
||||
VOLUME ["/data","/dkim"]
|
||||
|
||||
|
@ -29,7 +29,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 14190/tcp
|
||||
HEALTHCHECK --start-period=60s CMD curl -skfLo /dev/null http://127.0.0.1:10204/health && kill -0 `cat /run/dovecot/master.pid`
|
||||
HEALTHCHECK --start-period=60s CMD curl -m3 -skfLo /dev/null http://127.0.0.1:10204/health && kill -0 `cat /run/dovecot/master.pid`
|
||||
|
||||
VOLUME ["/certs", "/overrides"]
|
||||
|
||||
|
@ -17,7 +17,7 @@ COPY start.py /
|
||||
RUN echo $VERSION >/version
|
||||
|
||||
#EXPOSE 11332/tcp 11334/tcp 11335/tcp
|
||||
HEALTHCHECK --start-period=350s CMD curl -skfLo /dev/null http://localhost:11334/
|
||||
HEALTHCHECK --start-period=350s CMD curl -m3 -skfLo /dev/null http://localhost:11334/
|
||||
|
||||
VOLUME ["/var/lib/rspamd"]
|
||||
|
||||
|
@ -15,7 +15,7 @@ COPY main.py ./main.py
|
||||
RUN echo $VERSION >> /version
|
||||
|
||||
EXPOSE 80/tcp
|
||||
HEALTHCHECK --start-period=350s CMD curl -skfLo /dev/null http://localhost/
|
||||
HEALTHCHECK --start-period=350s CMD curl -m3 -skfLo /dev/null http://localhost/
|
||||
USER mailu
|
||||
|
||||
CMD gunicorn -w 4 -b :80 --access-logfile - --error-logfile - --preload main:app
|
||||
|
@ -1 +1,2 @@
|
||||
Disable HARDENED_MALLOC unless the requirements are met
|
||||
Ensure the healthchecks timeout
|
||||
|
@ -94,6 +94,6 @@ VOLUME /overrides
|
||||
|
||||
CMD /start.py
|
||||
|
||||
HEALTHCHECK CMD curl -f -L http://localhost/ping || exit 1
|
||||
HEALTHCHECK CMD curl -m3 -f -L http://localhost/ping || exit 1
|
||||
|
||||
RUN echo $VERSION >> /version
|
||||
|
Loading…
Reference in New Issue
Block a user