# 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.12-alpine3.18 restart: always volumes: - redis_data:/data depends_on: - resolver dns: - 192.168.203.254 # Core services front: image: ${DOCKER_ORG:-ghcr.io/mailu}/${DOCKER_PREFIX:-}nginx:${MAILU_VERSION:-2.0} restart: always env_file: mailu.env environment: ADMIN: "false" logging: driver: journald options: tag: mailu-front ports: - 172.16.36.26:8004:80 - 172.16.36.26:8104:443 - 172.16.36.26:25:25 - 172.16.36.26:465:465 - 172.16.36.26:587:587 - 172.16.36.26:110:110 - 172.16.36.26:995:995 - 172.16.36.26:143:143 - 172.16.36.26:993:993 networks: - default - radicale volumes: - nginx_certs:/certs - nginx_overrides:/overrides:ro depends_on: - resolver dns: - 192.168.203.254 resolver: image: ${DOCKER_ORG:-ghcr.io/mailu}/${DOCKER_PREFIX:-}unbound:${MAILU_VERSION:-2.0} env_file: mailu.env restart: always networks: default: ipv4_address: 192.168.203.254 admin: image: ${DOCKER_ORG:-ghcr.io/mailu}/${DOCKER_PREFIX:-}admin:${MAILU_VERSION:-2.0} restart: always env_file: mailu.env logging: driver: journald options: tag: mailu-admin ports: - 127.0.0.1:8005:8080 volumes: - admin_data:/data - admin_dkim:/dkim depends_on: - redis - resolver dns: - 192.168.203.254 imap: image: ${DOCKER_ORG:-ghcr.io/mailu}/${DOCKER_PREFIX:-}dovecot:${MAILU_VERSION:-2.0} restart: always env_file: mailu.env logging: driver: journald options: tag: mailu-imap volumes: - dovecot_mail:/mail - dovecot_overrides:/overrides:ro depends_on: - front - resolver dns: - 192.168.203.254 smtp: image: ${DOCKER_ORG:-ghcr.io/mailu}/${DOCKER_PREFIX:-}postfix:${MAILU_VERSION:-2.0} restart: always env_file: mailu.env logging: driver: journald options: tag: mailu-smtp volumes: - postfix_mailqueue:/queue - postfix_overrides:/overrides:ro depends_on: - front - resolver dns: - 192.168.203.254 oletools: image: ${DOCKER_ORG:-ghcr.io/mailu}/${DOCKER_PREFIX:-}oletools:${MAILU_VERSION:-2.0} hostname: oletools restart: always networks: - noinet depends_on: - resolver dns: - 192.168.203.254 antispam: image: ${DOCKER_ORG:-ghcr.io/mailu}/${DOCKER_PREFIX:-}rspamd:${MAILU_VERSION:-2.0} hostname: antispam restart: always env_file: mailu.env logging: driver: journald options: tag: mailu-antispam networks: - default - noinet volumes: - rspamd_filter:/var/lib/rspamd - rspamd_overrides:/etc/rspamd/override.d:ro depends_on: - front - redis - oletools - resolver dns: - 192.168.203.254 # Optional services webdav: image: ${DOCKER_ORG:-ghcr.io/mailu}/${DOCKER_PREFIX:-}radicale:${MAILU_VERSION:-2.0} restart: always env_file: mailu.env volumes: - dav_data:/data networks: - radicale 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 radicale: driver: bridge noinet: driver: bridge internal: true