add healthcheck
This commit is contained in:
parent
ad4365c6ec
commit
bf7b49c855
1 changed files with 4 additions and 0 deletions
|
@ -14,3 +14,7 @@ RUN apk update --no-cache && \
|
|||
EXPOSE 25
|
||||
#ENTRYPOINT ["/run.sh"]
|
||||
CMD ["/run.sh"]
|
||||
|
||||
# health check
|
||||
HEALTHCHECK --interval=5m --timeout=3s \
|
||||
CMD curl -s smtp://localhost:25 -v >/dev/null 2>&1
|
||||
|
|
Loading…
Reference in a new issue