simpler healthcheck for postfix

This commit is contained in:
Thomas Sänger
2018-10-16 23:12:02 +02:00
parent 0bc901a722
commit a412951a30
2 changed files with 1 additions and 10 deletions

View File

@@ -7,11 +7,10 @@ RUN apk add --no-cache postfix postfix-pcre rsyslog \
COPY conf /conf
COPY start.py /start.py
COPY health.sh /health.sh
EXPOSE 25/tcp 10025/tcp
VOLUME ["/data"]
CMD /start.py
HEALTHCHECK CMD /health.sh
HEALTHCHECK CMD echo QUIT|nc localhost 25|grep "220 .* ESMTP Postfix"