Expose correct Postfix port and remove manual pages
This commit is contained in:
parent
ebd58cb120
commit
ae68a565ef
@ -67,6 +67,7 @@ vi 00-install.sh
|
||||
| MariaDB | 3306 |
|
||||
| RabbitMQ | 5672 |
|
||||
| Redis | 6379 |
|
||||
| Postfix | 25 |
|
||||
| Postgres | 5432 |
|
||||
| Solr | 8983 |
|
||||
|
||||
|
@ -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
|
||||
|
@ -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"]
|
||||
|
Loading…
Reference in New Issue
Block a user