Added vars and fixed naming use

This commit is contained in:
Ionut Filip
2018-10-16 16:12:42 +03:00
parent 0d164486b4
commit e8dee22ecf
6 changed files with 105 additions and 22 deletions

View File

@@ -71,7 +71,7 @@ services:
- front
# Optional services
{% if enable_antispam %}
{% if antispam_enabled %}
antispam:
image: mailu/rspamd:{{ version }}
restart: always
@@ -84,7 +84,7 @@ services:
- front
{% endif %}
{% if enable_antivirus %}
{% if antivirus_enabled %}
antivirus:
image: mailu/clamav:{{ version }}
restart: always
@@ -93,9 +93,9 @@ services:
- "{{ root }}/filter:/data"
{% endif %}
{% if enable_webdav %}
{% if webdav_enabled %}
webdav:
image: mailu/radivale:{{ version }}
image: mailu/radicale:{{ version }}
restart: always
env_file: {{ env }}
volumes:
@@ -112,7 +112,7 @@ services:
{% endif %}
# Webmail
{% if enable_webmail %}
{% if webmail_enabled %}
webmail:
image: mailu/{{ webmail }}:{{ version }}
restart: always

View File

@@ -10,7 +10,7 @@
# Set this to the path where Mailu data and configuration is stored
# This variable is now set directly in `docker-compose.yml by the setup utility
# ROOT= {{ root }}
# ROOT={{ root }}
# Set to a randomly generated 16 bytes string
SECRET_KEY={{ secret(16) }}
@@ -20,8 +20,14 @@ SECRET_KEY={{ secret(16) }}
# PUBLIC_IPV4= {{ bind4 }} (default: 127.0.0.1)
# PUBLIC_IPV6= {{ bind6 }} (default: ::1)
# Main mail domain
# DOMAIN={{ domain }}
# Mail address of the postmaster
POSTMASTER={{ postmaster }}
POSTMASTER={{ postmaster or 'admin'}}
#Chose how secure connections will behave:
#TLS_FLAVOR={{ tls_flavor }}
# Hostnames for this server, separated with comas
HOSTNAMES={{ hostnames }}
@@ -30,7 +36,27 @@ HOSTNAMES={{ hostnames }}
AUTH_RATELIMIT={{ auth_ratelimit }}
# Opt-out of statistics, replace with "True" to opt out
DISABLE_STATISTICS={{ disable_statistics }}
DISABLE_STATISTICS={{ disable_statistics or 'False' }}
###################################
# Optional features
###################################
#Expose the admin interface
ADMIN={{ admin_enabled or 'false' }}
#Chose which webmail to run if any
#WEBMAIL_ENABLED={{ webmail_enabled or 'false' }}
WEBMAIL={{ webmail_type or 'none' }}
#Antivirus solution
ANTIVIRUS={{ antivirus_enabled or 'none' }}
#Antispam solution
#ANTISPAM={{ antispam_enabled or 'none'}}
#Dav server implementation
WEBDAV={{ webdav_enabled or 'none' }}
###################################
# Server behavior