From 70ea2a5be09c4b72d461f70782e1aeacd733cefa Mon Sep 17 00:00:00 2001 From: Florent Daigniere Date: Thu, 6 Jan 2022 12:48:35 +0100 Subject: [PATCH] all containers --- setup/flavors/compose/docker-compose.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/setup/flavors/compose/docker-compose.yml b/setup/flavors/compose/docker-compose.yml index c114ec87..6dac166b 100644 --- a/setup/flavors/compose/docker-compose.yml +++ b/setup/flavors/compose/docker-compose.yml @@ -13,6 +13,12 @@ services: restart: always volumes: - "{{ root }}/redis:/data" + {% if resolver_enabled %} + depends_on: + - resolver + dns: + - {{ dns }} + {% endif %} # Core services front: @@ -34,6 +40,7 @@ services: - "{{ root }}/certs:/certs" - "{{ root }}/overrides/nginx:/overrides:ro" {% if resolver_enabled %} + depends_on: - resolver dns: - {{ dns }} @@ -75,6 +82,11 @@ services: - "{{ root }}/overrides/dovecot:/overrides:ro" depends_on: - front + {% if resolver_enabled %} + - resolver + dns: + - {{ dns }} + {% endif %} smtp: image: ${DOCKER_ORG:-mailu}/${DOCKER_PREFIX:-}postfix:${MAILU_VERSION:-{{ version }}} @@ -130,6 +142,12 @@ services: env_file: {{ env }} volumes: - "{{ root }}/dav:/data" + {% if resolver_enabled %} + depends_on: + - resolver + dns: + - {{ dns }} + {% endif %} {% endif %} {% if fetchmail_enabled %} @@ -158,6 +176,11 @@ services: - "{{ root }}/overrides/{{ webmail_type }}:/overrides:ro" depends_on: - imap + {% if resolver_enabled %} + - resolver + dns: + - {{ dns }} + {% endif %} {% endif %} networks: