[Config] Fix binding problems with IPv6 in newer Docker versions
parent
6f14955b69
commit
64c12d50bc
|
@ -336,8 +336,8 @@ services:
|
||||||
- ./data/conf/rspamd/meta_exporter:/meta_exporter:ro,z
|
- ./data/conf/rspamd/meta_exporter:/meta_exporter:ro,z
|
||||||
- sogo-web-vol-1:/usr/lib/GNUstep/SOGo/:z
|
- sogo-web-vol-1:/usr/lib/GNUstep/SOGo/:z
|
||||||
ports:
|
ports:
|
||||||
- "${HTTPS_BIND:-0.0.0.0}:${HTTPS_PORT:-443}:${HTTPS_PORT:-443}"
|
- "${HTTPS_BIND:-:}:${HTTPS_PORT:-443}:${HTTPS_PORT:-443}"
|
||||||
- "${HTTP_BIND:-0.0.0.0}:${HTTP_PORT:-80}:${HTTP_PORT:-80}"
|
- "${HTTP_BIND:-:}:${HTTP_PORT:-80}:${HTTP_PORT:-80}"
|
||||||
restart: always
|
restart: always
|
||||||
networks:
|
networks:
|
||||||
mailcow-network:
|
mailcow-network:
|
||||||
|
|
|
@ -143,12 +143,14 @@ DBROOT=$(LC_ALL=C </dev/urandom tr -dc A-Za-z0-9 | head -c 28)
|
||||||
# If you use a proxy within Docker, point it to the ports you set below.
|
# If you use a proxy within Docker, point it to the ports you set below.
|
||||||
# Do _not_ use IP:PORT in HTTP(S)_BIND or HTTP(S)_PORT
|
# Do _not_ use IP:PORT in HTTP(S)_BIND or HTTP(S)_PORT
|
||||||
# IMPORTANT: Do not use port 8081, 9081 or 65510!
|
# IMPORTANT: Do not use port 8081, 9081 or 65510!
|
||||||
|
# Example: HTTP_BIND=1.2.3.4
|
||||||
|
# For IPv6 see https://mailcow.github.io/mailcow-dockerized-docs/firststeps-ip_bindings/
|
||||||
|
|
||||||
HTTP_PORT=80
|
HTTP_PORT=80
|
||||||
HTTP_BIND=0.0.0.0
|
HTTP_BIND=
|
||||||
|
|
||||||
HTTPS_PORT=443
|
HTTPS_PORT=443
|
||||||
HTTPS_BIND=0.0.0.0
|
HTTPS_BIND=
|
||||||
|
|
||||||
# ------------------------------
|
# ------------------------------
|
||||||
# Other bindings
|
# Other bindings
|
||||||
|
|
|
@ -556,6 +556,9 @@ fi
|
||||||
|
|
||||||
# Checking for old project name bug
|
# Checking for old project name bug
|
||||||
sed -i --follow-symlinks 's#COMPOSEPROJECT_NAME#COMPOSE_PROJECT_NAME#g' mailcow.conf
|
sed -i --follow-symlinks 's#COMPOSEPROJECT_NAME#COMPOSE_PROJECT_NAME#g' mailcow.conf
|
||||||
|
# Checking old, wrong bindings
|
||||||
|
sed -i --follow-symlinks 's/HTTP_BIND=0.0.0.0/HTTP_BIND=/g' mailcow.conf
|
||||||
|
sed -i --follow-symlinks 's/HTTPS_BIND=0.0.0.0/HTTPS_BIND=/g' mailcow.conf
|
||||||
|
|
||||||
# Fix Rspamd maps
|
# Fix Rspamd maps
|
||||||
if [ -f data/conf/rspamd/custom/global_from_blacklist.map ]; then
|
if [ -f data/conf/rspamd/custom/global_from_blacklist.map ]; then
|
||||||
|
|
Loading…
Reference in New Issue