computer-playbook/roles/docker-mailu/templates/docker-compose.yml.j2

128 lines
3.1 KiB
Plaintext
Raw Normal View History

2020-12-27 19:41:35 +01:00
# This file is auto-generated by the Mailu configuration wizard.
# Please read the documentation before attempting any change.
# Generated for compose flavor
version: '2.2'
services:
# External dependencies
redis:
image: redis:alpine
restart: always
volumes:
2020-12-27 20:05:30 +01:00
- "mailu-redis-data:/data"
2020-12-27 19:41:35 +01:00
# Core services
front:
image: ${DOCKER_ORG:-mailu}/${DOCKER_PREFIX:-}nginx:${MAILU_VERSION:-1.7}
restart: always
env_file: mailu.env
logging:
driver: json-file
ports:
- "{{ http_port }}:80"
- "{{ https_port }}:443"
- "{{ ip4_address }}:25:25"
- "{{ ip4_address }}:465:465"
- "{{ ip4_address }}:587:587"
- "{{ ip4_address }}:110:110"
- "{{ ip4_address }}:995:995"
- "{{ ip4_address }}:143:143"
- "{{ ip4_address }}:993:993"
volumes:
2020-12-27 20:05:30 +01:00
- "mailu-nginx-certs:/certs"
- "mailu-nginx-overrides:/overrides"
2020-12-27 19:41:35 +01:00
admin:
image: ${DOCKER_ORG:-mailu}/${DOCKER_PREFIX:-}admin:${MAILU_VERSION:-1.7}
restart: always
env_file: mailu.env
volumes:
2020-12-27 20:05:30 +01:00
- "mailu-admin-data:/data"
- "mailu-admin-dkim:/dkim"
2020-12-27 19:41:35 +01:00
depends_on:
- redis
imap:
image: ${DOCKER_ORG:-mailu}/${DOCKER_PREFIX:-}dovecot:${MAILU_VERSION:-1.7}
restart: always
env_file: mailu.env
volumes:
2020-12-27 20:05:30 +01:00
- "mailu-dovecot-mail:/mail"
- "mailu-dovecot-overrides:/overrides"
2020-12-27 19:41:35 +01:00
depends_on:
- front
smtp:
image: ${DOCKER_ORG:-mailu}/${DOCKER_PREFIX:-}postfix:${MAILU_VERSION:-1.7}
restart: always
env_file: mailu.env
volumes:
2020-12-27 20:05:30 +01:00
- "mailu-postfix-overrides:/overrides"
2020-12-27 19:41:35 +01:00
depends_on:
- front
antispam:
image: ${DOCKER_ORG:-mailu}/${DOCKER_PREFIX:-}rspamd:${MAILU_VERSION:-1.7}
restart: always
env_file: mailu.env
volumes:
2020-12-27 20:05:30 +01:00
- "mailu-rspamd-filter:/var/lib/rspamd"
- "mailu-rspamd-dkim:/dkim"
- "mailu-rspamd-overrides:/etc/rspamd/override.d"
2020-12-27 19:41:35 +01:00
depends_on:
- front
# Optional services
antivirus:
image: ${DOCKER_ORG:-mailu}/${DOCKER_PREFIX:-}clamav:${MAILU_VERSION:-1.7}
restart: always
env_file: mailu.env
volumes:
2020-12-27 20:05:30 +01:00
- "mailu-clamav-data:/data"
2020-12-27 19:41:35 +01:00
webdav:
image: ${DOCKER_ORG:-mailu}/${DOCKER_PREFIX:-}radicale:${MAILU_VERSION:-1.7}
restart: always
env_file: mailu.env
volumes:
2020-12-27 20:05:30 +01:00
- "mailu-radicale-data:/data"
2020-12-27 19:41:35 +01:00
fetchmail:
image: ${DOCKER_ORG:-mailu}/${DOCKER_PREFIX:-}fetchmail:${MAILU_VERSION:-1.7}
restart: always
env_file: mailu.env
# Webmail
webmail:
image: ${DOCKER_ORG:-mailu}/${DOCKER_PREFIX:-}roundcube:${MAILU_VERSION:-1.7}
restart: always
env_file: mailu.env
volumes:
2020-12-27 20:05:30 +01:00
- "mailu-roundcube-data:/data"
2020-12-27 19:41:35 +01:00
depends_on:
- imap
2020-12-27 20:56:32 +01:00
volumes:
mailu-redis-data:
mailu-nginx-certs:
mailu-nginx-overrides:
mailu-admin-data:
mailu-admin-dkim:
mailu-dovecot-mail:
mailu-dovecot-overrides:
mailu-postfix-overrides:
mailu-rspamd-filter:
mailu-rspamd-dkim:
mailu-rspamd-overrides:
mailu-clamav-data:
mailu-radicale-data:
mailu-roundcube-data:
2020-12-27 19:41:35 +01:00
networks:
default:
driver: bridge
ipam:
driver: default
config:
2020-12-27 20:08:54 +01:00
- subnet: {{mailu_subnet}}