From 9533e6011b835d698c6c68c99f4093fd4c8be0f7 Mon Sep 17 00:00:00 2001 From: Daniil Sliusar Date: Fri, 5 Apr 2019 18:35:32 +0300 Subject: [PATCH] Fix in monit postfix monitor --- Dockerfile | 2 ++ start.sh | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1649a4a..d6846d9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,6 +3,8 @@ FROM interlegis/alpine-postfix ADD ./bin/sendmail-http / ADD start.sh / +VOLUME ["/var/spool/postfix"] + EXPOSE 25 1001 ENTRYPOINT ["/start.sh"] \ No newline at end of file diff --git a/start.sh b/start.sh index dabd192..6534eeb 100755 --- a/start.sh +++ b/start.sh @@ -1,5 +1,5 @@ #!/bin/bash -SERVER_ADDR=${SERVER_ADDR:-:1001} /sendmail-http & +/etc/postfix/postfix-service.sh start & -/opt/monit/bin/monit-start.sh \ No newline at end of file +SERVER_ADDR=${SERVER_ADDR:-:1001} /sendmail-http