Default listen on localhost only
This commit is contained in:
3
.env
3
.env
@@ -19,6 +19,9 @@ DEBUG=False
|
|||||||
# Set to a randomly generated 16 bytes string
|
# Set to a randomly generated 16 bytes string
|
||||||
SECRET_KEY=ChangeMeChangeMe
|
SECRET_KEY=ChangeMeChangeMe
|
||||||
|
|
||||||
|
# Address where listening ports should bind
|
||||||
|
BIND_ADDRESS=127.0.0.1
|
||||||
|
|
||||||
# Main mail domain
|
# Main mail domain
|
||||||
DOMAIN=freeposte.io
|
DOMAIN=freeposte.io
|
||||||
|
|
||||||
|
|||||||
@@ -8,8 +8,8 @@ services:
|
|||||||
restart: always
|
restart: always
|
||||||
env_file: .env
|
env_file: .env
|
||||||
ports:
|
ports:
|
||||||
- "80:80"
|
- "$BIND_ADDRESS:80:80"
|
||||||
- "443:443"
|
- "$BIND_ADDRESS:443:443"
|
||||||
volumes:
|
volumes:
|
||||||
- "$ROOT/certs:/certs"
|
- "$ROOT/certs:/certs"
|
||||||
|
|
||||||
@@ -25,8 +25,8 @@ services:
|
|||||||
restart: always
|
restart: always
|
||||||
env_file: .env
|
env_file: .env
|
||||||
ports:
|
ports:
|
||||||
- "143:143"
|
- "$BIND_ADDRESS:143:143"
|
||||||
- "993:993"
|
- "$BIND_ADDRESS:993:993"
|
||||||
volumes:
|
volumes:
|
||||||
- "$ROOT/freeposte:/data"
|
- "$ROOT/freeposte:/data"
|
||||||
- "$ROOT/mail:/mail"
|
- "$ROOT/mail:/mail"
|
||||||
@@ -39,9 +39,9 @@ services:
|
|||||||
restart: always
|
restart: always
|
||||||
env_file: .env
|
env_file: .env
|
||||||
ports:
|
ports:
|
||||||
- "25:25"
|
- "$BIND_ADDRESS:25:25"
|
||||||
- "465:465"
|
- "$BIND_ADDRESS:465:465"
|
||||||
- "587:587"
|
- "$BIND_ADDRESS:587:587"
|
||||||
volumes:
|
volumes:
|
||||||
- "$ROOT/freeposte:/data"
|
- "$ROOT/freeposte:/data"
|
||||||
- "$ROOT/certs:/certs"
|
- "$ROOT/certs:/certs"
|
||||||
@@ -84,7 +84,7 @@ services:
|
|||||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||||
|
|
||||||
webmail:
|
webmail:
|
||||||
# build: "$WEBMAIL"
|
build: "$WEBMAIL"
|
||||||
image: "freeposte/$WEBMAIL:$VERSION"
|
image: "freeposte/$WEBMAIL:$VERSION"
|
||||||
restart: always
|
restart: always
|
||||||
env_file: .env
|
env_file: .env
|
||||||
|
|||||||
Reference in New Issue
Block a user