Skip to content

Commit e3ae638

Browse files
committed
start_mailserver.sh: force ipv4 for port binding
Signed-off-by: Thilo Fromm <thilo.alexander@gmail.com>
1 parent 197e4ae commit e3ae638

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

systemd/start_mailserver.sh

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,18 @@ if [ -f "VERSION" ] ; then
88
version=":$(cat VERSION)"
99
fi
1010

11-
exec docker run --rm -i -p $http:80 -p $https:443 \
12-
-p 25:25 -p 465:465 \
13-
-p 143:143 -p 993:993 \
14-
-p 4190:4190 \
15-
-v $(pwd)/_server_workspace_:/host --env-file settings.env \
16-
--network mailserver-network \
17-
--cap-add CAP_DAC_READ_SEARCH \
18-
--cap-add CAP_NET_ADMIN \
19-
--cap-add CAP_NET_RAW \
20-
--name mailserver \
11+
exec docker run --rm -i \
12+
--publish 0.0.0.0:$http:80 \
13+
--publish 0.0.0.0:$https:443 \
14+
--publish 0.0.0.0:25:25 \
15+
--publish 0.0.0.0:465:465 \
16+
--publish 0.0.0.0:143:143 \
17+
--publish 0.0.0.0:993:993 \
18+
--publish 0.0.0.0:4190:4190 \
19+
-v $(pwd)/_server_workspace_:/host --env-file settings.env \
20+
--network mailserver-network \
21+
--cap-add CAP_DAC_READ_SEARCH \
22+
--cap-add CAP_NET_ADMIN \
23+
--cap-add CAP_NET_RAW \
24+
--name mailserver \
2125
"ghcr.io/t-lo/mailserver${version}"

0 commit comments

Comments
 (0)