# 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: - "mailu-redis-data:/data" # 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: - "mailu-nginx-certs:/certs" - "mailu-nginx-overrides:/overrides" admin: image: ${DOCKER_ORG:-mailu}/${DOCKER_PREFIX:-}admin:${MAILU_VERSION:-1.7} restart: always env_file: mailu.env volumes: - "mailu-admin-data:/data" - "mailu-admin-dkim:/dkim" depends_on: - redis imap: image: ${DOCKER_ORG:-mailu}/${DOCKER_PREFIX:-}dovecot:${MAILU_VERSION:-1.7} restart: always env_file: mailu.env volumes: - "mailu-dovecot-mail:/mail" - "mailu-dovecot-overrides:/overrides" depends_on: - front smtp: image: ${DOCKER_ORG:-mailu}/${DOCKER_PREFIX:-}postfix:${MAILU_VERSION:-1.7} restart: always env_file: mailu.env volumes: - "mailu-postfix-overrides:/overrides" depends_on: - front antispam: image: ${DOCKER_ORG:-mailu}/${DOCKER_PREFIX:-}rspamd:${MAILU_VERSION:-1.7} restart: always env_file: mailu.env volumes: - "mailu-rspamd-filter:/var/lib/rspamd" - "mailu-rspamd-dkim:/dkim" - "mailu-rspamd-overrides:/etc/rspamd/override.d" depends_on: - front # Optional services antivirus: image: ${DOCKER_ORG:-mailu}/${DOCKER_PREFIX:-}clamav:${MAILU_VERSION:-1.7} restart: always env_file: mailu.env volumes: - "mailu-clamav-data:/data" webdav: image: ${DOCKER_ORG:-mailu}/${DOCKER_PREFIX:-}radicale:${MAILU_VERSION:-1.7} restart: always env_file: mailu.env volumes: - "mailu-radicale-data:/data" 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: - "mailu-roundcube-data:/data" depends_on: - imap networks: default: driver: bridge ipam: driver: default config: - subnet: 192.168.203.0/24