Commit f61f478f authored by kaiyou's avatar kaiyou

Add Mailu to the repo

parent 3ae9733d
# 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:
- "/srv/apps/mailu/redis:/data"
# Core services
front:
image: ${DOCKER_ORG:-mailu}/${DOCKER_PREFIX:-}nginx:${MAILU_VERSION:-master}
restart: always
env_file: mailu.env
ports:
- "${ipv4}:80:80"
- "${ipv4}:443:443"
- "${ipv4}:25:25"
- "${ipv4}:465:465"
- "${ipv4}:587:587"
- "${ipv4}:110:110"
- "${ipv4}:995:995"
- "${ipv4}:143:143"
- "${ipv4}:993:993"
volumes:
- "/srv/apps/mailu/certs:/certs"
- "/srv/apps/mailu/overrides/nginx:/overrides"
resolver:
image: ${DOCKER_ORG:-mailu}/${DOCKER_PREFIX:-}unbound:${MAILU_VERSION:-master}
env_file: mailu.env
restart: always
networks:
default:
ipv4_address: 192.168.203.254
admin:
#image: 3dbe56b1ae7e
image: ${DOCKER_ORG:-mailu}/${DOCKER_PREFIX:-}admin:${MAILU_VERSION:-master}
restart: always
env_file: mailu.env
volumes:
- "/srv/apps/mailu/data:/data"
- "/srv/apps/mailu/dkim:/dkim"
depends_on:
- redis
imap:
image: ${DOCKER_ORG:-mailu}/${DOCKER_PREFIX:-}dovecot:${MAILU_VERSION:-master}
restart: always
env_file: mailu.env
volumes:
- "/srv/apps/mailu/mail:/mail"
- "/srv/apps/mailu/overrides:/overrides"
depends_on:
- front
smtp:
image: ${DOCKER_ORG:-mailu}/${DOCKER_PREFIX:-}postfix:${MAILU_VERSION:-master}
restart: always
env_file: mailu.env
volumes:
- "/srv/apps/mailu/mailqueue:/queue"
- "/srv/apps/mailu/overrides:/overrides"
depends_on:
- front
- resolver
dns:
- 192.168.203.254
antispam:
image: ${DOCKER_ORG:-mailu}/${DOCKER_PREFIX:-}rspamd:${MAILU_VERSION:-master}
restart: always
env_file: mailu.env
volumes:
- "/srv/apps/mailu/filter:/var/lib/rspamd"
- "/srv/apps/mailu/dkim:/dkim"
- "/srv/apps/mailu/overrides/rspamd:/etc/rspamd/override.d"
depends_on:
- front
- resolver
dns:
- 192.168.203.254
# Optional services
antivirus:
image: ${DOCKER_ORG:-mailu}/${DOCKER_PREFIX:-}clamav:${MAILU_VERSION:-master}
restart: always
env_file: mailu.env
volumes:
- "/srv/apps/mailu/filter:/data"
depends_on:
- resolver
dns:
- 192.168.203.254
webdav:
image: ${DOCKER_ORG:-mailu}/${DOCKER_PREFIX:-}radicale:${MAILU_VERSION:-master}
restart: always
env_file: mailu.env
volumes:
- "/srv/apps/mailu/dav:/data"
fetchmail:
image: ${DOCKER_ORG:-mailu}/${DOCKER_PREFIX:-}fetchmail:${MAILU_VERSION:-master}
restart: always
env_file: mailu.env
depends_on:
- resolver
dns:
- 192.168.203.254
# Webmail
webmail:
image: ${DOCKER_ORG:-mailu}/${DOCKER_PREFIX:-}rainloop:${MAILU_VERSION:-master}
restart: always
env_file: mailu.env
volumes:
- "/srv/apps/mailu/webmail:/data"
depends_on:
- imap
networks:
default:
driver: bridge
labels:
- snat4=${ipv4}
ipam:
driver: default
config:
- subnet: 192.168.203.0/24
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment