Expose correct Postfix port and remove manual pages

This commit is contained in:
Disassembler 2018-01-30 15:12:01 +01:00
parent ebd58cb120
commit ae68a565ef
Signed by: Disassembler
GPG Key ID: 524BD33A0EE29499
3 changed files with 6 additions and 4 deletions

View File

@ -67,6 +67,7 @@ vi 00-install.sh
| MariaDB | 3306 |
| RabbitMQ | 5672 |
| Redis | 6379 |
| Postfix | 25 |
| Postgres | 5432 |
| Solr | 8983 |

View File

@ -7,7 +7,6 @@ docker build -t postfix ${SOURCE_DIR}
# Copy existing config files into persistent storage
mkdir -p /srv/postfix/conf /srv/postfix/data
chown -R 587:587 /srv/postfix/data
docker run --rm -v /srv/postfix/conf:/mnt/conf postfix cp -rp /etc/postfix/. /mnt/conf
# Configure postfix

View File

@ -6,11 +6,13 @@ RUN \
addgroup -S -g 587 postfix \
&& adduser -S -u 587 -h /var/spool/postfix -s /bin/false -g postfix -G postfix postfix \
# Install Postfix
&& apk --no-cache add ca-certificates postfix s6
&& apk --no-cache add ca-certificates postfix s6 \
# Cleanup
&& rm -r /etc/postfix/access /etc/postfix/aliases /etc/postfix/canonical /etc/postfix/dynamicmaps.cf* /etc/postfix/generic /etc/postfix/header_checks /etc/postfix/postfix-files.d /etc/postfix/relocated /etc/postfix/transport /etc/postfix/virtual
COPY docker/ /
VOLUME ["/var/spool/postfix"]
EXPOSE 587
VOLUME ["/etc/postfix", "/var/spool/postfix"]
EXPOSE 25
CMD ["s6-svscan", "/etc/services.d"]