Fábio Kaiser Rauber
3 years ago
8 changed files with 20 additions and 15 deletions
@ -1,13 +1,14 @@ |
|||
FROM rawmind/alpine-monit:5.25-3 |
|||
MAINTAINER Fabio Rauber <fabiorauber@gmail.com> |
|||
FROM alpine:3.15 |
|||
LABEL MAINTAINER="Fabio Rauber <fabiorauber@gmail.com>" |
|||
|
|||
RUN apk add --no-cache bash postfix postfix-pcre rsyslog |
|||
RUN apk add --no-cache bash postfix postfix-pcre |
|||
|
|||
COPY conf /etc/postfix |
|||
COPY rsyslog.conf /etc/rsyslog.conf |
|||
|
|||
COPY monit-service.conf /opt/monit/etc/conf.d |
|||
|
|||
VOLUME ["/var/spool/postfix"] |
|||
|
|||
ENTRYPOINT ["etc/postfix/postfix-service.sh"] |
|||
|
|||
CMD [ "start" ] |
|||
|
|||
EXPOSE 25 |
|||
|
@ -0,0 +1,8 @@ |
|||
version: '2' |
|||
services: |
|||
postfix: |
|||
build: . |
|||
ports: |
|||
- 25 |
|||
entrypoint: /bin/bash |
|||
tty: true |
@ -1,4 +0,0 @@ |
|||
check process master with pidfile /var/run/postfix.pid |
|||
start program = "/etc/postfix/postfix-service.sh start" |
|||
stop program = "/etc/postfix/postfix-service.sh stop" |
|||
if failed port 25 type tcp for 5 cycles then exec "/opt/monit/bin/monit quit" |
Loading…
Reference in new issue