Replace rsyslog with redirection to std(out|err)
This commit is contained in:
parent
77f2122708
commit
e3a66629c3
@ -31,6 +31,13 @@ RUN chmod 755 /boot
|
||||
|
||||
ENV AMAVIS=true
|
||||
|
||||
# Redirect logs for Docker to pickup
|
||||
RUN ln -sf /dev/stdout /var/log/razor-agent.log
|
||||
RUN ln -sf /dev/stdout /var/log/mail.log
|
||||
RUN ln -sf /dev/stdout /var/log/mail.info
|
||||
RUN ln -sf /dev/stdout /var/log/mail.warn
|
||||
RUN ln -sf /dev/stderr /var/log/mail.err
|
||||
|
||||
EXPOSE 10024
|
||||
|
||||
ENTRYPOINT ./boot; service rsyslog start; amavisd-new foreground
|
||||
ENTRYPOINT ./boot; amavisd-new foreground
|
||||
|
@ -43,5 +43,11 @@ VOLUME ["/vmail"]
|
||||
RUN groupadd -g 5000 vmail
|
||||
RUN useradd -g vmail -u 5000 vmail -d /vmail -m
|
||||
|
||||
# Redirect logs for Docker to pickup
|
||||
RUN ln -sf /dev/stdout /var/log/mail.log
|
||||
RUN ln -sf /dev/stdout /var/log/mail.info
|
||||
RUN ln -sf /dev/stdout /var/log/mail.warn
|
||||
RUN ln -sf /dev/stderr /var/log/mail.err
|
||||
|
||||
EXPOSE 25 143 587
|
||||
ENTRYPOINT /boot; service rsyslog start; service postfix start; dovecot -F
|
||||
ENTRYPOINT /boot; service postfix start; dovecot -F
|
||||
|
@ -5,8 +5,7 @@ RUN locale-gen en_GB en_GB.UTF-8 && dpkg-reconfigure locales
|
||||
|
||||
# Prerequisites
|
||||
RUN echo "#!/bin/sh\nexit 0" > /usr/sbin/policy-rc.d && \
|
||||
apt-get update && apt-get install -y \
|
||||
opendkim && \
|
||||
apt-get update && apt-get install -y opendkim && \
|
||||
apt-get clean && \
|
||||
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||
|
||||
@ -19,6 +18,12 @@ RUN chmod 755 /boot
|
||||
|
||||
ENV OPEN_DKIM=true
|
||||
|
||||
# Redirect logs for Docker to pickup
|
||||
RUN ln -sf /dev/stdout /var/log/mail.log
|
||||
RUN ln -sf /dev/stdout /var/log/mail.info
|
||||
RUN ln -sf /dev/stdout /var/log/mail.warn
|
||||
RUN ln -sf /dev/stderr /var/log/mail.err
|
||||
|
||||
EXPOSE 8891
|
||||
|
||||
ENTRYPOINT /boot; service rsyslog start; opendkim -f -p inet:8891@0.0.0.0
|
||||
ENTRYPOINT /boot; opendkim -f -p inet:8891@0.0.0.0
|
||||
|
Loading…
Reference in New Issue
Block a user