Skip to content

Commit

Permalink
Fix in monit postfix monitor
Browse files Browse the repository at this point in the history
  • Loading branch information
danyanya committed Apr 5, 2019
1 parent 153ff93 commit 9533e60
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
4 changes: 2 additions & 2 deletions start.sh
Original file line number Diff line number Diff line change
@@ -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
SERVER_ADDR=${SERVER_ADDR:-:1001} /sendmail-http

0 comments on commit 9533e60

Please sign in to comment.