1
0
mirror of https://github.com/jhillyerd/inbucket.git synced 2025-12-17 09:37:02 +00:00

docker: Capture stderr in healthcheck

This commit is contained in:
James Hillyerd
2020-03-29 20:49:38 -07:00
parent c91a3ecd41
commit 107b649738

View File

@@ -45,7 +45,7 @@ ENV INBUCKET_STORAGE_RETENTIONPERIOD 72h
ENV INBUCKET_STORAGE_MAILBOXMSGCAP 300 ENV INBUCKET_STORAGE_MAILBOXMSGCAP 300
# Healthcheck # Healthcheck
HEALTHCHECK --interval=5s --timeout=5s --retries=3 CMD /bin/sh -c 'wget localhost:$(echo ${INBUCKET_WEB_ADDR:-0.0.0.0:9000}|cut -d: -f2) -q -O - > /dev/null 2>&1' HEALTHCHECK --interval=5s --timeout=5s --retries=3 CMD /bin/sh -c 'wget localhost:$(echo ${INBUCKET_WEB_ADDR:-0.0.0.0:9000}|cut -d: -f2) -q -O - >/dev/null'
# Ports: SMTP, HTTP, POP3 # Ports: SMTP, HTTP, POP3
EXPOSE 2500 9000 1100 EXPOSE 2500 9000 1100