Add Mailu configuration

This commit is contained in:
BatchAccount 1001 2022-12-02 20:17:43 +01:00
parent 809f592de1
commit b685c81607
2 changed files with 160 additions and 0 deletions

View File

@ -0,0 +1,17 @@
[Unit]
Description=Docker Compose Mailu Application Service
Requires=docker.service
After=docker.service
[Service]
WorkingDirectory=/opt/mailu
ExecStart=/usr/bin/docker-compose --project-name mailu up
ExecStop=/usr/bin/docker-compose --project-name mailu down
TimeoutStartSec=0
Restart=on-failure
StartLimitIntervalSec=60
StartLimitBurst=3
[Install]
WantedBy=multi-user.target

View File

@ -0,0 +1,143 @@
# 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:7.0.5-alpine
restart: always
volumes:
- redis_data:/data
depends_on:
- resolver
dns:
- 192.168.203.254
# Core services
front:
image: ${DOCKER_ORG:-mailu}/${DOCKER_PREFIX:-}nginx:${MAILU_VERSION:-1.9}
restart: always
env_file: mailu.env
environment:
ADMIN: "false"
logging:
driver: json-file
ports:
- 172.16.10.11:8004:80
- 172.16.10.11:8104:443
- 172.16.10.11:25:25
- 172.16.10.11:465:465
- 172.16.10.11:587:587
- 172.16.10.11:110:110
- 172.16.10.11:995:995
- 172.16.10.11:143:143
- 172.16.10.11:993:993
volumes:
- nginx_certs:/certs
- nginx_overrides:/overrides:ro
depends_on:
- resolver
dns:
- 192.168.203.254
resolver:
image: ${DOCKER_ORG:-mailu}/${DOCKER_PREFIX:-}unbound:${MAILU_VERSION:-1.9}
env_file: mailu.env
restart: always
networks:
default:
ipv4_address: 192.168.203.254
admin:
image: ${DOCKER_ORG:-mailu}/${DOCKER_PREFIX:-}admin:${MAILU_VERSION:-1.9}
restart: always
env_file: mailu.env
ports:
- 127.0.0.1:8005:80
volumes:
- admin_data:/data
- admin_dkim:/dkim
depends_on:
- redis
- resolver
dns:
- 192.168.203.254
imap:
image: ${DOCKER_ORG:-mailu}/${DOCKER_PREFIX:-}dovecot:${MAILU_VERSION:-1.9}
restart: always
env_file: mailu.env
volumes:
- dovecot_mail:/mail
- dovecot_overrides:/overrides:ro
depends_on:
- front
- resolver
dns:
- 192.168.203.254
smtp:
image: ${DOCKER_ORG:-mailu}/${DOCKER_PREFIX:-}postfix:${MAILU_VERSION:-1.9}
restart: always
env_file: mailu.env
volumes:
- postfix_mailqueue:/queue
- postfix_overrides:/overrides:ro
depends_on:
- front
- resolver
dns:
- 192.168.203.254
antispam:
image: ${DOCKER_ORG:-mailu}/${DOCKER_PREFIX:-}rspamd:${MAILU_VERSION:-1.9}
hostname: antispam
restart: always
env_file: mailu.env
volumes:
- rspamd_filter:/var/lib/rspamd
- rspamd_overrides:/etc/rspamd/override.d:ro
depends_on:
- front
- resolver
dns:
- 192.168.203.254
# Optional services
webdav:
image: ${DOCKER_ORG:-mailu}/${DOCKER_PREFIX:-}radicale:${MAILU_VERSION:-1.9}
restart: always
env_file: mailu.env
volumes:
- dav_data:/data
depends_on:
- resolver
dns:
- 192.168.203.254
volumes:
redis_data:
nginx_certs:
nginx_overrides:
admin_data:
admin_dkim:
dovecot_mail:
dovecot_overrides:
postfix_mailqueue:
postfix_overrides:
rspamd_filter:
rspamd_overrides:
dav_data:
networks:
default:
driver: bridge
ipam:
driver: default
config:
- subnet: 192.168.203.0/24