2019-01-16 21:01:09 +02:00
|
|
|
# WARNING: this file is being deprecated over the new setup utility, found at https://setup.mailu.io
|
|
|
|
|
2016-04-12 19:58:49 +02:00
|
|
|
version: '2'
|
2016-02-24 08:44:49 +02:00
|
|
|
|
2016-04-12 19:58:49 +02:00
|
|
|
services:
|
2016-02-24 08:44:49 +02:00
|
|
|
|
2017-09-24 14:01:26 +02:00
|
|
|
front:
|
|
|
|
image: mailu/nginx:$VERSION
|
2016-05-30 22:52:38 +02:00
|
|
|
restart: always
|
2016-08-20 16:32:10 +02:00
|
|
|
env_file: .env
|
2018-10-16 11:38:17 +02:00
|
|
|
logging:
|
|
|
|
driver: $LOG_DRIVER
|
2016-04-12 19:58:49 +02:00
|
|
|
ports:
|
2017-10-22 16:13:13 +02:00
|
|
|
- "$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"
|
2017-11-05 17:55:37 +02:00
|
|
|
- "$BIND_ADDRESS6:587:587"
|
2016-04-12 19:58:49 +02:00
|
|
|
volumes:
|
2016-08-20 16:32:10 +02:00
|
|
|
- "$ROOT/certs:/certs"
|
2020-05-11 09:53:09 +02:00
|
|
|
- "$ROOT/overrides/nginx:/overrides:ro"
|
2016-06-25 12:30:21 +02:00
|
|
|
|
2016-05-29 15:54:34 +02:00
|
|
|
redis:
|
2017-11-13 00:23:54 +02:00
|
|
|
image: redis:alpine
|
2016-05-30 22:52:38 +02:00
|
|
|
restart: always
|
2016-05-29 15:54:34 +02:00
|
|
|
volumes:
|
2016-08-20 16:32:10 +02:00
|
|
|
- "$ROOT/redis:/data"
|
2016-02-24 08:44:49 +02:00
|
|
|
|
2016-04-12 19:58:49 +02:00
|
|
|
imap:
|
2016-10-28 23:30:25 +02:00
|
|
|
image: mailu/dovecot:$VERSION
|
2016-05-30 22:52:38 +02:00
|
|
|
restart: always
|
2016-08-20 16:32:10 +02:00
|
|
|
env_file: .env
|
2016-04-12 19:58:49 +02:00
|
|
|
volumes:
|
2016-08-20 16:32:10 +02:00
|
|
|
- "$ROOT/mail:/mail"
|
2020-05-11 09:53:09 +02:00
|
|
|
- "$ROOT/overrides/dovecot:/overrides:ro"
|
2017-11-11 16:08:23 +02:00
|
|
|
depends_on:
|
|
|
|
- front
|
2016-03-02 23:31:44 +02:00
|
|
|
|
2016-04-12 19:58:49 +02:00
|
|
|
smtp:
|
2016-10-28 23:30:25 +02:00
|
|
|
image: mailu/postfix:$VERSION
|
2016-05-30 22:52:38 +02:00
|
|
|
restart: always
|
2016-08-20 16:32:10 +02:00
|
|
|
env_file: .env
|
2016-04-12 19:58:49 +02:00
|
|
|
volumes:
|
2020-05-11 09:53:09 +02:00
|
|
|
- "$ROOT/mailqueue:/queue"
|
|
|
|
- "$ROOT/overrides/postfix:/overrides:ro"
|
2017-11-11 16:08:23 +02:00
|
|
|
depends_on:
|
|
|
|
- front
|
2016-02-24 08:44:49 +02:00
|
|
|
|
2016-05-29 15:54:34 +02:00
|
|
|
antispam:
|
2016-10-28 23:30:25 +02:00
|
|
|
image: mailu/rspamd:$VERSION
|
2016-05-30 22:52:38 +02:00
|
|
|
restart: always
|
2016-08-20 16:32:10 +02:00
|
|
|
env_file: .env
|
2016-05-29 15:54:34 +02:00
|
|
|
volumes:
|
2016-08-20 16:32:10 +02:00
|
|
|
- "$ROOT/filter:/var/lib/rspamd"
|
2020-05-11 09:53:09 +02:00
|
|
|
- "$ROOT/dkim:/dkim:ro"
|
|
|
|
- "$ROOT/overrides/rspamd:/etc/rspamd/override.d:ro"
|
2017-11-11 16:08:23 +02:00
|
|
|
depends_on:
|
|
|
|
- front
|
2016-06-25 12:30:21 +02:00
|
|
|
|
2016-05-29 15:54:34 +02:00
|
|
|
antivirus:
|
2017-06-25 18:15:47 +02:00
|
|
|
image: mailu/$ANTIVIRUS:$VERSION
|
2016-05-30 22:52:38 +02:00
|
|
|
restart: always
|
2016-08-20 16:32:10 +02:00
|
|
|
env_file: .env
|
2016-04-12 19:58:49 +02:00
|
|
|
volumes:
|
2016-08-20 16:32:10 +02:00
|
|
|
- "$ROOT/filter:/data"
|
2016-04-12 19:58:49 +02:00
|
|
|
|
2016-11-30 15:02:36 +02:00
|
|
|
webdav:
|
|
|
|
image: mailu/$WEBDAV:$VERSION
|
|
|
|
restart: always
|
|
|
|
env_file: .env
|
|
|
|
volumes:
|
|
|
|
- "$ROOT/dav:/data"
|
|
|
|
|
2016-04-12 19:58:49 +02:00
|
|
|
admin:
|
2016-10-28 23:30:25 +02:00
|
|
|
image: mailu/admin:$VERSION
|
2016-05-30 22:52:38 +02:00
|
|
|
restart: always
|
2016-08-20 16:32:10 +02:00
|
|
|
env_file: .env
|
2016-04-12 19:58:49 +02:00
|
|
|
volumes:
|
2016-11-01 11:54:32 +02:00
|
|
|
- "$ROOT/data:/data"
|
2016-08-20 16:32:10 +02:00
|
|
|
- "$ROOT/dkim:/dkim"
|
2017-11-13 22:38:59 +02:00
|
|
|
depends_on:
|
|
|
|
- redis
|
2016-04-12 19:58:49 +02:00
|
|
|
|
|
|
|
webmail:
|
2016-10-28 23:30:25 +02:00
|
|
|
image: "mailu/$WEBMAIL:$VERSION"
|
2016-05-30 22:52:38 +02:00
|
|
|
restart: always
|
2016-08-20 16:32:10 +02:00
|
|
|
env_file: .env
|
2016-04-12 19:58:49 +02:00
|
|
|
volumes:
|
2016-08-20 16:32:10 +02:00
|
|
|
- "$ROOT/webmail:/data"
|
2021-12-18 18:43:21 +02:00
|
|
|
- "$ROOT/overrides/$WEBMAIL:/overrides:ro"
|
2018-03-02 12:23:41 +02:00
|
|
|
depends_on:
|
|
|
|
- imap
|
2016-04-28 20:07:38 +02:00
|
|
|
|
|
|
|
fetchmail:
|
2016-10-28 23:30:25 +02:00
|
|
|
image: mailu/fetchmail:$VERSION
|
2016-05-30 22:52:38 +02:00
|
|
|
restart: always
|
2016-08-20 16:32:10 +02:00
|
|
|
env_file: .env
|
2018-12-11 17:40:36 +02:00
|
|
|
|
|
|
|
networks:
|
|
|
|
default:
|
|
|
|
driver: bridge
|
|
|
|
ipam:
|
2018-12-03 03:16:53 +02:00
|
|
|
driver: default
|
|
|
|
config:
|
|
|
|
- subnet: $SUBNET
|