mirror of
https://github.com/Mailu/Mailu.git
synced 2024-12-14 10:53:30 +02:00
113 lines
2.4 KiB
YAML
113 lines
2.4 KiB
YAML
# This file is auto-generated by the Mailu configuration wizard.
|
|
# Please read the documentation before attempting any change.
|
|
# Generated for compose flavor
|
|
|
|
version: '3.6'
|
|
|
|
services:
|
|
|
|
# External dependencies
|
|
redis:
|
|
image: redis:alpine
|
|
restart: always
|
|
volumes:
|
|
- "/mailu/redis:/data"
|
|
|
|
# Core services
|
|
front:
|
|
image: ${DOCKER_ORG:-mailu}/${DOCKER_PREFIX:-}nginx:${MAILU_VERSION:-local}
|
|
restart: always
|
|
env_file: mailu.env
|
|
logging:
|
|
driver: json-file
|
|
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"
|
|
- "127.0.0.1:4190:4190"
|
|
volumes:
|
|
- "/mailu/certs:/certs"
|
|
|
|
admin:
|
|
image: ${DOCKER_ORG:-mailu}/${DOCKER_PREFIX:-}admin:${MAILU_VERSION:-local}
|
|
restart: always
|
|
env_file: mailu.env
|
|
volumes:
|
|
- "/mailu/data:/data"
|
|
- "/mailu/dkim:/dkim"
|
|
dns:
|
|
- 192.168.203.254
|
|
depends_on:
|
|
- redis
|
|
- resolver
|
|
|
|
imap:
|
|
image: ${DOCKER_ORG:-mailu}/${DOCKER_PREFIX:-}dovecot:${MAILU_VERSION:-local}
|
|
restart: always
|
|
env_file: mailu.env
|
|
volumes:
|
|
- "/mailu/mail:/mail"
|
|
- "/mailu/overrides:/overrides"
|
|
depends_on:
|
|
- front
|
|
|
|
smtp:
|
|
image: ${DOCKER_ORG:-mailu}/${DOCKER_PREFIX:-}postfix:${MAILU_VERSION:-local}
|
|
restart: always
|
|
env_file: mailu.env
|
|
volumes:
|
|
- "/mailu/overrides:/overrides"
|
|
depends_on:
|
|
- front
|
|
|
|
oletools:
|
|
image: ${DOCKER_ORG:-mailu}/${DOCKER_PREFIX:-}oletools:${MAILU_VERSION:-local}
|
|
hostname: oletools
|
|
restart: always
|
|
networks:
|
|
- noinet
|
|
|
|
antispam:
|
|
image: ${DOCKER_ORG:-mailu}/${DOCKER_PREFIX:-}rspamd:${MAILU_VERSION:-local}
|
|
restart: always
|
|
env_file: mailu.env
|
|
networks:
|
|
- default
|
|
- noinet
|
|
volumes:
|
|
- "/mailu/filter:/var/lib/rspamd"
|
|
- "/mailu/dkim:/dkim"
|
|
- "/mailu/overrides/rspamd:/etc/rspamd/override.d"
|
|
depends_on:
|
|
- front
|
|
|
|
# Optional services
|
|
|
|
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
|
|
|
|
# Webmail
|
|
|
|
|
|
networks:
|
|
default:
|
|
driver: bridge
|
|
ipam:
|
|
driver: default
|
|
config:
|
|
- subnet: 192.168.203.0/24
|
|
noinet:
|
|
driver: bridge
|
|
internal: true
|