2018-10-24 11:02:28 +02:00
|
|
|
# This file is auto-generated by the Mailu configuration wizard.
|
|
|
|
# Please read the documentation before attempting any change.
|
|
|
|
# Generated for compose flavor
|
|
|
|
|
|
|
|
|
|
|
|
services:
|
|
|
|
|
|
|
|
# External dependencies
|
|
|
|
redis:
|
|
|
|
image: redis:alpine
|
2018-10-25 16:35:53 +02:00
|
|
|
restart: always
|
2018-10-24 11:02:28 +02:00
|
|
|
volumes:
|
|
|
|
- "/mailu/redis:/data"
|
|
|
|
|
|
|
|
# Core services
|
|
|
|
front:
|
2022-07-14 14:00:06 +02:00
|
|
|
image: ${DOCKER_ORG:-mailu}/${DOCKER_PREFIX:-}nginx:${MAILU_VERSION:-local}
|
2018-10-25 16:35:53 +02:00
|
|
|
restart: always
|
2018-10-24 11:02:28 +02:00
|
|
|
env_file: mailu.env
|
2018-10-25 16:35:53 +02:00
|
|
|
logging:
|
|
|
|
driver: json-file
|
2018-10-24 11:02:28 +02:00
|
|
|
ports:
|
|
|
|
- "127.0.0.1:80:80"
|
|
|
|
- "127.0.0.1:443:443"
|
|
|
|
- "127.0.0.1:25:25"
|
|
|
|
- "127.0.0.1:465:465"
|
|
|
|
- "127.0.0.1:587:587"
|
|
|
|
- "127.0.0.1:110:110"
|
|
|
|
- "127.0.0.1:995:995"
|
|
|
|
- "127.0.0.1:143:143"
|
|
|
|
- "127.0.0.1:993:993"
|
|
|
|
volumes:
|
|
|
|
- "/mailu/certs:/certs"
|
2023-03-11 12:58:51 +02:00
|
|
|
networks:
|
|
|
|
- default
|
|
|
|
- webmail
|
2018-10-24 11:02:28 +02:00
|
|
|
|
|
|
|
admin:
|
2022-07-14 14:00:06 +02:00
|
|
|
image: ${DOCKER_ORG:-mailu}/${DOCKER_PREFIX:-}admin:${MAILU_VERSION:-local}
|
2018-10-25 16:35:53 +02:00
|
|
|
restart: always
|
2018-10-24 11:02:28 +02:00
|
|
|
env_file: mailu.env
|
|
|
|
volumes:
|
|
|
|
- "/mailu/data:/data"
|
|
|
|
- "/mailu/dkim:/dkim"
|
|
|
|
depends_on:
|
|
|
|
- redis
|
2022-01-06 12:37:18 +02:00
|
|
|
- resolver
|
|
|
|
dns:
|
|
|
|
- 192.168.203.254
|
2018-10-24 11:02:28 +02:00
|
|
|
|
|
|
|
imap:
|
2022-07-14 14:00:06 +02:00
|
|
|
image: ${DOCKER_ORG:-mailu}/${DOCKER_PREFIX:-}dovecot:${MAILU_VERSION:-local}
|
2018-10-25 16:35:53 +02:00
|
|
|
restart: always
|
2018-10-24 11:02:28 +02:00
|
|
|
env_file: mailu.env
|
|
|
|
volumes:
|
|
|
|
- "/mailu/mail:/mail"
|
|
|
|
- "/mailu/overrides:/overrides"
|
|
|
|
depends_on:
|
|
|
|
- front
|
|
|
|
|
|
|
|
smtp:
|
2022-07-14 14:00:06 +02:00
|
|
|
image: ${DOCKER_ORG:-mailu}/${DOCKER_PREFIX:-}postfix:${MAILU_VERSION:-local}
|
2018-10-25 16:35:53 +02:00
|
|
|
restart: always
|
2018-10-24 11:02:28 +02:00
|
|
|
env_file: mailu.env
|
|
|
|
volumes:
|
|
|
|
- "/mailu/overrides:/overrides"
|
|
|
|
depends_on:
|
|
|
|
- front
|
|
|
|
|
2022-11-23 16:42:46 +02:00
|
|
|
oletools:
|
|
|
|
image: ${DOCKER_ORG:-mailu}/${DOCKER_PREFIX:-}oletools:${MAILU_VERSION:-local}
|
|
|
|
hostname: oletools
|
|
|
|
restart: always
|
|
|
|
networks:
|
|
|
|
- noinet
|
|
|
|
|
2018-10-24 11:02:28 +02:00
|
|
|
antispam:
|
2022-07-14 14:00:06 +02:00
|
|
|
image: ${DOCKER_ORG:-mailu}/${DOCKER_PREFIX:-}rspamd:${MAILU_VERSION:-local}
|
2018-10-25 16:35:53 +02:00
|
|
|
restart: always
|
2018-10-24 11:02:28 +02:00
|
|
|
env_file: mailu.env
|
2022-11-23 16:42:46 +02:00
|
|
|
networks:
|
|
|
|
- default
|
|
|
|
- noinet
|
2018-10-24 11:02:28 +02:00
|
|
|
volumes:
|
|
|
|
- "/mailu/filter:/var/lib/rspamd"
|
|
|
|
- "/mailu/dkim:/dkim"
|
|
|
|
- "/mailu/overrides/rspamd:/etc/rspamd/override.d"
|
|
|
|
depends_on:
|
|
|
|
- front
|
|
|
|
|
2018-10-25 16:35:53 +02:00
|
|
|
# Optional services
|
2018-10-24 11:02:28 +02:00
|
|
|
|
2022-01-06 12:37:18 +02:00
|
|
|
resolver:
|
|
|
|
image: ${DOCKER_ORG:-mailu}/${DOCKER_PREFIX:-}unbound:${MAILU_VERSION:-local}
|
|
|
|
env_file: mailu.env
|
|
|
|
restart: always
|
|
|
|
networks:
|
|
|
|
default:
|
|
|
|
ipv4_address: 192.168.203.254
|
2018-10-24 11:02:28 +02:00
|
|
|
|
|
|
|
# Webmail
|
|
|
|
webmail:
|
2022-11-12 12:51:12 +02:00
|
|
|
image: ${DOCKER_ORG:-mailu}/${DOCKER_PREFIX:-}webmail:${MAILU_VERSION:-local}
|
2018-10-25 16:35:53 +02:00
|
|
|
restart: always
|
2018-10-24 11:02:28 +02:00
|
|
|
env_file: mailu.env
|
|
|
|
volumes:
|
|
|
|
- "/mailu/webmail:/data"
|
|
|
|
depends_on:
|
|
|
|
- imap
|
2023-03-11 12:58:51 +02:00
|
|
|
networks:
|
|
|
|
- webmail
|
2018-12-06 16:44:12 +02:00
|
|
|
|
|
|
|
|
|
|
|
networks:
|
|
|
|
default:
|
|
|
|
driver: bridge
|
|
|
|
ipam:
|
|
|
|
driver: default
|
|
|
|
config:
|
|
|
|
- subnet: 192.168.203.0/24
|
2023-03-11 12:58:51 +02:00
|
|
|
webmail:
|
|
|
|
driver: bridge
|
2022-11-23 16:42:46 +02:00
|
|
|
noinet:
|
|
|
|
driver: bridge
|
|
|
|
internal: true
|