Try log redirection another way

This commit is contained in:
Val
2015-07-26 22:19:24 +01:00
parent 8956bc8841
commit 16bd5e936f
6 changed files with 17 additions and 37 deletions

View File

@@ -43,16 +43,5 @@ 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 && \
ln -sf /dev/stdout /var/log/mail.info && \
ln -sf /dev/stdout /var/log/mail.warn && \
ln -sf /dev/stderr /var/log/mail.err
# Make logs writable for everyone
RUN chmod 002 /var/log/mail.log \
/var/log/mail.info \
/var/log/mail.warn \
/var/log/mail.err
EXPOSE 25 143 587
ENTRYPOINT /boot; service postfix start; dovecot -F