From d1dbba2d3ab9c935bd7d416f3300411dec60de29 Mon Sep 17 00:00:00 2001 From: kaiyou Date: Sat, 21 Apr 2018 14:46:01 +0200 Subject: [PATCH] Add expose instructions in Dockerfiles, fixes #392 --- core/admin/Dockerfile | 2 ++ core/dovecot/Dockerfile | 2 ++ core/nginx/Dockerfile | 2 ++ core/postfix/Dockerfile | 2 ++ optional/clamav/Dockerfile | 2 ++ optional/radicale/Dockerfile | 2 ++ services/rspamd/Dockerfile | 2 ++ 7 files changed, 14 insertions(+) diff --git a/core/admin/Dockerfile b/core/admin/Dockerfile index 78fa753e..72314aa6 100644 --- a/core/admin/Dockerfile +++ b/core/admin/Dockerfile @@ -15,4 +15,6 @@ COPY start.sh /start.sh RUN pybabel compile -d mailu/translations +EXPOSE 80/tcp + CMD ["/start.sh"] diff --git a/core/dovecot/Dockerfile b/core/dovecot/Dockerfile index 9e87f12f..cacfe354 100644 --- a/core/dovecot/Dockerfile +++ b/core/dovecot/Dockerfile @@ -9,4 +9,6 @@ COPY conf /conf COPY sieve /var/lib/dovecot COPY start.py /start.py +EXPOSE 110/tcp 143/tcp 993/tcp 4190/tcp 2525/tcp + CMD /start.py diff --git a/core/nginx/Dockerfile b/core/nginx/Dockerfile index ad6752ac..3be4b50f 100644 --- a/core/nginx/Dockerfile +++ b/core/nginx/Dockerfile @@ -5,4 +5,6 @@ RUN apk add --no-cache nginx nginx-mod-mail python py-jinja2 certbot openssl COPY conf /conf COPY *.py / +EXPOSE 80/tcp 443/tcp 110/tcp 143/tcp 465/tcp 587/tcp 993/tcp 995/tcp 25/tcp 10025/tcp 10143/tcp + CMD /start.py diff --git a/core/postfix/Dockerfile b/core/postfix/Dockerfile index 4dc1c893..bb5831a2 100644 --- a/core/postfix/Dockerfile +++ b/core/postfix/Dockerfile @@ -5,4 +5,6 @@ RUN apk add --no-cache postfix postfix-sqlite postfix-pcre rsyslog python py-jin COPY conf /conf COPY start.py /start.py +EXPOSE 25/tcp 10025/tcp + CMD /start.py diff --git a/optional/clamav/Dockerfile b/optional/clamav/Dockerfile index 5b7b99d8..92309c45 100644 --- a/optional/clamav/Dockerfile +++ b/optional/clamav/Dockerfile @@ -5,4 +5,6 @@ RUN apk add --no-cache clamav rsyslog wget clamav-libunrar COPY conf /etc/clamav COPY start.sh /start.sh +EXPOSE 3310/tcp + CMD ["/start.sh"] diff --git a/optional/radicale/Dockerfile b/optional/radicale/Dockerfile index dce888b5..b1e63d7b 100644 --- a/optional/radicale/Dockerfile +++ b/optional/radicale/Dockerfile @@ -5,4 +5,6 @@ RUN echo "@testing http://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/re COPY radicale.conf /radicale.conf +EXPOSE 5232/tcp + CMD radicale -f -S -C /radicale.conf diff --git a/services/rspamd/Dockerfile b/services/rspamd/Dockerfile index d1e39011..0b566b8a 100644 --- a/services/rspamd/Dockerfile +++ b/services/rspamd/Dockerfile @@ -7,4 +7,6 @@ RUN mkdir /run/rspamd COPY conf/ /conf COPY start.py /start.py +EXPOSE 11332/tcp 11334/tcp + CMD /start.py