Added unbound for stack flavor
This commit is contained in:
@@ -29,6 +29,15 @@ services:
|
|||||||
deploy:
|
deploy:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
|
|
||||||
|
{% if resolver_enabled %}
|
||||||
|
resolver:
|
||||||
|
image: mailu/unbound:{{ version }}
|
||||||
|
env_file: {{ env }}
|
||||||
|
networks:
|
||||||
|
default:
|
||||||
|
ipv4_address: {{ dns }}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
admin:
|
admin:
|
||||||
image: mailu/admin:{{ version }}
|
image: mailu/admin:{{ version }}
|
||||||
env_file: {{ env }}
|
env_file: {{ env }}
|
||||||
@@ -63,6 +72,10 @@ services:
|
|||||||
- "{{ root }}/overrides:/overrides"
|
- "{{ root }}/overrides:/overrides"
|
||||||
deploy:
|
deploy:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
|
{% if resolver_enabled %}
|
||||||
|
dns:
|
||||||
|
- {{ dns }}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
# Optional services
|
# Optional services
|
||||||
{% if antispam_enabled %}
|
{% if antispam_enabled %}
|
||||||
@@ -77,6 +90,10 @@ services:
|
|||||||
- "{{ root }}/overrides/rspamd:/etc/rspamd/override.d"
|
- "{{ root }}/overrides/rspamd:/etc/rspamd/override.d"
|
||||||
deploy:
|
deploy:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
|
{% if resolver_enabled %}
|
||||||
|
dns:
|
||||||
|
- {{ dns }}
|
||||||
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if antivirus_enabled %}
|
{% if antivirus_enabled %}
|
||||||
@@ -87,6 +104,10 @@ services:
|
|||||||
- "{{ root }}/filter:/data"
|
- "{{ root }}/filter:/data"
|
||||||
deploy:
|
deploy:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
|
{% if resolver_enabled %}
|
||||||
|
dns:
|
||||||
|
- {{ dns }}
|
||||||
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if webdav_enabled %}
|
{% if webdav_enabled %}
|
||||||
@@ -107,6 +128,10 @@ services:
|
|||||||
- "{{ root }}/data:/data"
|
- "{{ root }}/data:/data"
|
||||||
deploy:
|
deploy:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
|
{% if resolver_enabled %}
|
||||||
|
dns:
|
||||||
|
- {{ dns }}
|
||||||
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if webmail_type != 'none' %}
|
{% if webmail_type != 'none' %}
|
||||||
|
|||||||
@@ -3,6 +3,13 @@
|
|||||||
and let users access their mailboxes. Mailu has some flexibility in the way
|
and let users access their mailboxes. Mailu has some flexibility in the way
|
||||||
you expose it to the world.</p>
|
you expose it to the world.</p>
|
||||||
|
|
||||||
|
<div class="form-check form-check-inline">
|
||||||
|
<label class="form-check-label">
|
||||||
|
<input class="form-check-input" type="checkbox" name="resolver_enabled" value="true">
|
||||||
|
Enable unbound resolver
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label>Subnet</label>
|
<label>Subnet</label>
|
||||||
<input class="form-control" type="text" name="subnet" required pattern="^([0-9]{1,3}\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))$"
|
<input class="form-control" type="text" name="subnet" required pattern="^([0-9]{1,3}\.){3}[0-9]{1,3}(\/([0-9]|[1-2][0-9]|3[0-2]))$"
|
||||||
|
|||||||
Reference in New Issue
Block a user