mirror of
https://github.com/Mailu/Mailu.git
synced 2024-12-14 10:53:30 +02:00
1bcbf4b613
(cherry picked from commit cfd7e6b690
)
136 lines
2.8 KiB
YAML
136 lines
2.8 KiB
YAML
# WARNING: this file is being deprecated over the new setup utility, found at https://setup.mailu.io
|
|
|
|
|
|
services:
|
|
|
|
front:
|
|
image: mailu/nginx:$VERSION
|
|
restart: always
|
|
env_file: .env
|
|
logging:
|
|
driver: journald
|
|
options:
|
|
tag: mailu-front
|
|
ports:
|
|
- "$BIND_ADDRESS4:80:80"
|
|
- "$BIND_ADDRESS4:443:443"
|
|
- "$BIND_ADDRESS4:110:110"
|
|
- "$BIND_ADDRESS4:143:143"
|
|
- "$BIND_ADDRESS4:993:993"
|
|
- "$BIND_ADDRESS4:995:995"
|
|
- "$BIND_ADDRESS4:25:25"
|
|
- "$BIND_ADDRESS4:465:465"
|
|
- "$BIND_ADDRESS4:587:587"
|
|
- "$BIND_ADDRESS6:80:80"
|
|
- "$BIND_ADDRESS6:443:443"
|
|
- "$BIND_ADDRESS6:110:110"
|
|
- "$BIND_ADDRESS6:143:143"
|
|
- "$BIND_ADDRESS6:993:993"
|
|
- "$BIND_ADDRESS6:995:995"
|
|
- "$BIND_ADDRESS6:25:25"
|
|
- "$BIND_ADDRESS6:465:465"
|
|
- "$BIND_ADDRESS6:587:587"
|
|
volumes:
|
|
- "$ROOT/certs:/certs"
|
|
- "$ROOT/overrides/nginx:/overrides:ro"
|
|
|
|
redis:
|
|
image: redis:alpine
|
|
restart: always
|
|
volumes:
|
|
- "$ROOT/redis:/data"
|
|
|
|
imap:
|
|
image: mailu/dovecot:$VERSION
|
|
restart: always
|
|
env_file: .env
|
|
logging:
|
|
driver: journald
|
|
options:
|
|
tag: mailu-imap
|
|
volumes:
|
|
- "$ROOT/mail:/mail"
|
|
- "$ROOT/overrides/dovecot:/overrides:ro"
|
|
depends_on:
|
|
- front
|
|
|
|
smtp:
|
|
image: mailu/postfix:$VERSION
|
|
restart: always
|
|
env_file: .env
|
|
logging:
|
|
driver: journald
|
|
options:
|
|
tag: mailu-smtp
|
|
volumes:
|
|
- "$ROOT/mailqueue:/queue"
|
|
- "$ROOT/overrides/postfix:/overrides:ro"
|
|
depends_on:
|
|
- front
|
|
|
|
antispam:
|
|
image: mailu/rspamd:$VERSION
|
|
restart: always
|
|
env_file: .env
|
|
logging:
|
|
driver: journald
|
|
options:
|
|
tag: mailu-antispam
|
|
volumes:
|
|
- "$ROOT/filter:/var/lib/rspamd"
|
|
- "$ROOT/dkim:/dkim:ro"
|
|
- "$ROOT/overrides/rspamd:/etc/rspamd/override.d:ro"
|
|
depends_on:
|
|
- front
|
|
|
|
antivirus:
|
|
image: mailu/$ANTIVIRUS:$VERSION
|
|
restart: always
|
|
env_file: .env
|
|
volumes:
|
|
- "$ROOT/filter:/data"
|
|
|
|
webdav:
|
|
image: mailu/$WEBDAV:$VERSION
|
|
restart: always
|
|
env_file: .env
|
|
volumes:
|
|
- "$ROOT/dav:/data"
|
|
|
|
admin:
|
|
image: mailu/admin:$VERSION
|
|
restart: always
|
|
env_file: .env
|
|
logging:
|
|
driver: journald
|
|
options:
|
|
tag: mailu-admin
|
|
volumes:
|
|
- "$ROOT/data:/data"
|
|
- "$ROOT/dkim:/dkim"
|
|
depends_on:
|
|
- redis
|
|
|
|
webmail:
|
|
image: "mailu/$WEBMAIL:$VERSION"
|
|
restart: always
|
|
env_file: .env
|
|
volumes:
|
|
- "$ROOT/webmail:/data"
|
|
- "$ROOT/overrides/$WEBMAIL:/overrides:ro"
|
|
depends_on:
|
|
- imap
|
|
|
|
fetchmail:
|
|
image: mailu/fetchmail:$VERSION
|
|
restart: always
|
|
env_file: .env
|
|
|
|
networks:
|
|
default:
|
|
driver: bridge
|
|
ipam:
|
|
driver: default
|
|
config:
|
|
- subnet: $SUBNET
|