|
|
@ -2,7 +2,7 @@
|
|
|
|
# This file is auto-generated by the Mailu configuration wizard.
|
|
|
|
# This file is auto-generated by the Mailu configuration wizard.
|
|
|
|
# Please read the documentation before attempting any change.
|
|
|
|
# Please read the documentation before attempting any change.
|
|
|
|
|
|
|
|
|
|
|
|
version: '2'
|
|
|
|
version: '3.7'
|
|
|
|
|
|
|
|
|
|
|
|
services:
|
|
|
|
services:
|
|
|
|
|
|
|
|
|
|
|
@ -11,7 +11,7 @@ services:
|
|
|
|
image: redis:alpine
|
|
|
|
image: redis:alpine
|
|
|
|
restart: always
|
|
|
|
restart: always
|
|
|
|
volumes:
|
|
|
|
volumes:
|
|
|
|
- "$ROOT/redis:/data"
|
|
|
|
- "{{ root }}/redis:/data"
|
|
|
|
|
|
|
|
|
|
|
|
# Core services
|
|
|
|
# Core services
|
|
|
|
front:
|
|
|
|
front:
|
|
|
@ -24,15 +24,15 @@ services:
|
|
|
|
ports:
|
|
|
|
ports:
|
|
|
|
{% for port in (80, 443, 25, 465, 587, 110, 995, 143, 993) %}
|
|
|
|
{% for port in (80, 443, 25, 465, 587, 110, 995, 143, 993) %}
|
|
|
|
{% if bind4 %}
|
|
|
|
{% if bind4 %}
|
|
|
|
- "$PUBLIC_IPV4:{{ port }}:{{ port }}"
|
|
|
|
- "{{ bind4}}:{{ port }}:{{ port }}"
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
{% if bind6 %}
|
|
|
|
{% if bind6 %}
|
|
|
|
- "$PUBLIC_IPV6:{{ port }}:{{ port }}"
|
|
|
|
- "{{ bind6 }}:{{ port }}:{{ port }}"
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
{% endfor %}
|
|
|
|
{% if flavor in ('cert', 'mail') %}
|
|
|
|
{% if flavor in ('cert', 'mail') %}
|
|
|
|
volumes:
|
|
|
|
volumes:
|
|
|
|
- "$ROOT/certs:/certs"
|
|
|
|
- "{{ root }}/certs:/certs"
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
|
|
admin:
|
|
|
|
admin:
|
|
|
@ -44,8 +44,8 @@ services:
|
|
|
|
- 127.0.0.1:8080:80
|
|
|
|
- 127.0.0.1:8080:80
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
volumes:
|
|
|
|
volumes:
|
|
|
|
- "$ROOT/data:/data"
|
|
|
|
- "{{ root }}/data:/data"
|
|
|
|
- "$ROOT/dkim:/dkim"
|
|
|
|
- "{{ root }}/dkim:/dkim"
|
|
|
|
depends_on:
|
|
|
|
depends_on:
|
|
|
|
- redis
|
|
|
|
- redis
|
|
|
|
|
|
|
|
|
|
|
@ -54,9 +54,9 @@ services:
|
|
|
|
restart: always
|
|
|
|
restart: always
|
|
|
|
env_file: {{ env }}
|
|
|
|
env_file: {{ env }}
|
|
|
|
volumes:
|
|
|
|
volumes:
|
|
|
|
- "$ROOT/data:/data"
|
|
|
|
- "{{ root }}/data:/data"
|
|
|
|
- "$ROOT/mail:/mail"
|
|
|
|
- "{{ root }}/mail:/mail"
|
|
|
|
- "$ROOT/overrides:/overrides"
|
|
|
|
- "{{ root }}/overrides:/overrides"
|
|
|
|
depends_on:
|
|
|
|
depends_on:
|
|
|
|
- front
|
|
|
|
- front
|
|
|
|
|
|
|
|
|
|
|
@ -65,8 +65,8 @@ services:
|
|
|
|
restart: always
|
|
|
|
restart: always
|
|
|
|
env_file: {{ env }}
|
|
|
|
env_file: {{ env }}
|
|
|
|
volumes:
|
|
|
|
volumes:
|
|
|
|
- "$ROOT/data:/data"
|
|
|
|
- "{{ root }}/data:/data"
|
|
|
|
- "$ROOT/overrides:/overrides"
|
|
|
|
- "{{ root }}/overrides:/overrides"
|
|
|
|
depends_on:
|
|
|
|
depends_on:
|
|
|
|
- front
|
|
|
|
- front
|
|
|
|
|
|
|
|
|
|
|
@ -77,9 +77,9 @@ services:
|
|
|
|
restart: always
|
|
|
|
restart: always
|
|
|
|
env_file: {{ env }}
|
|
|
|
env_file: {{ env }}
|
|
|
|
volumes:
|
|
|
|
volumes:
|
|
|
|
- "$ROOT/filter:/var/lib/rspamd"
|
|
|
|
- "{{ root }}/filter:/var/lib/rspamd"
|
|
|
|
- "$ROOT/dkim:/dkim"
|
|
|
|
- "{{ root }}/dkim:/dkim"
|
|
|
|
- "$ROOT/overrides/rspamd:/etc/rspamd/override.d"
|
|
|
|
- "{{ root }}/overrides/rspamd:/etc/rspamd/override.d"
|
|
|
|
depends_on:
|
|
|
|
depends_on:
|
|
|
|
- front
|
|
|
|
- front
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
@ -90,7 +90,7 @@ services:
|
|
|
|
restart: always
|
|
|
|
restart: always
|
|
|
|
env_file: {{ env }}
|
|
|
|
env_file: {{ env }}
|
|
|
|
volumes:
|
|
|
|
volumes:
|
|
|
|
- "$ROOT/filter:/data"
|
|
|
|
- "{{ root }}/filter:/data"
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
|
|
{% if enable_webdav %}
|
|
|
|
{% if enable_webdav %}
|
|
|
@ -99,7 +99,7 @@ services:
|
|
|
|
restart: always
|
|
|
|
restart: always
|
|
|
|
env_file: {{ env }}
|
|
|
|
env_file: {{ env }}
|
|
|
|
volumes:
|
|
|
|
volumes:
|
|
|
|
- "$ROOT/dav:/data"
|
|
|
|
- "{{ root }}/dav:/data"
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
|
|
{% if enable_fetchmail %}
|
|
|
|
{% if enable_fetchmail %}
|
|
|
@ -108,7 +108,7 @@ services:
|
|
|
|
restart: always
|
|
|
|
restart: always
|
|
|
|
env_file: {{ env }}
|
|
|
|
env_file: {{ env }}
|
|
|
|
volumes:
|
|
|
|
volumes:
|
|
|
|
- "$ROOT/data:/data"
|
|
|
|
- "{{ root }}/data:/data"
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
|
|
# Webmail
|
|
|
|
# Webmail
|
|
|
@ -118,7 +118,7 @@ services:
|
|
|
|
restart: always
|
|
|
|
restart: always
|
|
|
|
env_file: {{ env }}
|
|
|
|
env_file: {{ env }}
|
|
|
|
volumes:
|
|
|
|
volumes:
|
|
|
|
- "$ROOT/webmail:/data"
|
|
|
|
- "{{ root }}/webmail:/data"
|
|
|
|
depends_on:
|
|
|
|
depends_on:
|
|
|
|
- imap
|
|
|
|
- imap
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|