|
|
|
@ -14,16 +14,6 @@ services:
|
|
|
|
|
volumes:
|
|
|
|
|
- "{{ root }}/redis:/data"
|
|
|
|
|
|
|
|
|
|
{% if db_flavor == 'postgresql' and postgresql == 'internal' %}
|
|
|
|
|
database:
|
|
|
|
|
image: ${DOCKER_ORG:-mailu}/postgresql:${MAILU_VERSION:-{{ version }}}
|
|
|
|
|
restart: always
|
|
|
|
|
env_file: {{ env }}
|
|
|
|
|
volumes:
|
|
|
|
|
- "{{ root }}/data/psql_db:/data"
|
|
|
|
|
- "{{ root }}/data/psql_backup:/backup"
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
# Core services
|
|
|
|
|
front:
|
|
|
|
|
image: ${DOCKER_ORG:-mailu}/nginx:${MAILU_VERSION:-{{ version }}}
|
|
|
|
@ -157,6 +147,16 @@ services:
|
|
|
|
|
- imap
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
{% if db_flavor == 'postgresql' and postgresql == 'internal' %}
|
|
|
|
|
database:
|
|
|
|
|
image: ${DOCKER_ORG:-mailu}/postgresql:${MAILU_VERSION:-{{ version }}}
|
|
|
|
|
restart: always
|
|
|
|
|
env_file: {{ env }}
|
|
|
|
|
volumes:
|
|
|
|
|
- "{{ root }}/data/psql_db:/data"
|
|
|
|
|
- "{{ root }}/data/psql_backup:/backup"
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
{% if resolver_enabled or db_flavor == 'postgresql' %}
|
|
|
|
|
networks:
|
|
|
|
|
default:
|
|
|
|
|