From f48a13336fea092c661bd7825552333af75635d1 Mon Sep 17 00:00:00 2001 From: ofthesun9 Date: Wed, 17 Jun 2020 16:18:33 +0200 Subject: [PATCH] Disable Health checks on swarm mode ref: https://github.com/moby/moby/issues/35451 --- setup/flavors/stack/docker-compose.yml | 18 ++++++++++++++++++ towncrier/newsfragments/1289.bugfix | 1 + 2 files changed, 19 insertions(+) create mode 100644 towncrier/newsfragments/1289.bugfix diff --git a/setup/flavors/stack/docker-compose.yml b/setup/flavors/stack/docker-compose.yml index 6ae0f103..66731805 100644 --- a/setup/flavors/stack/docker-compose.yml +++ b/setup/flavors/stack/docker-compose.yml @@ -43,6 +43,8 @@ services: - "{{ root }}/dkim:/dkim" deploy: replicas: {{ admin_replicas }} + healthcheck: + disable: true imap: image: ${DOCKER_ORG:-mailu}/${DOCKER_PREFIX:-}dovecot:${MAILU_VERSION:-{{ version }}} @@ -52,6 +54,8 @@ services: - "{{ root }}/overrides:/overrides" deploy: replicas: {{ imap_replicas }} + healthcheck: + disable: true smtp: image: ${DOCKER_ORG:-mailu}/${DOCKER_PREFIX:-}postfix:${MAILU_VERSION:-{{ version }}} @@ -61,6 +65,8 @@ services: - "{{ root }}/overrides:/overrides" deploy: replicas: {{ smtp_replicas }} + healthcheck: + disable: true antispam: image: ${DOCKER_ORG:-mailu}/${DOCKER_PREFIX:-}rspamd:${MAILU_VERSION:-{{ version }}} @@ -71,6 +77,8 @@ services: - "{{ root }}/overrides/rspamd:/etc/rspamd/override.d" deploy: replicas: 1 + healthcheck: + disable: true # Optional services {% if antivirus_enabled %} @@ -81,6 +89,8 @@ services: - "{{ root }}/filter:/data" deploy: replicas: 1 + healthcheck: + disable: true {% endif %} {% if webdav_enabled %} @@ -91,6 +101,8 @@ services: - "{{ root }}/dav:/data" deploy: replicas: 1 + healthcheck: + disable: true {% endif %} {% if fetchmail_enabled %} @@ -101,6 +113,8 @@ services: - "{{ root }}/data:/data" deploy: replicas: 1 + healthcheck: + disable: true {% endif %} {% if webmail_type != 'none' %} @@ -111,6 +125,8 @@ services: - "{{ root }}/webmail:/data" deploy: replicas: 1 + healthcheck: + disable: true {% endif %} {% if db_flavor == 'postgresql' and postgresql == 'internal' %} @@ -119,6 +135,8 @@ services: env_file: {{ env }} volumes: - "{{ root }}/data/psql_backup:/backup" + healthcheck: + disable: true {% endif %} networks: diff --git a/towncrier/newsfragments/1289.bugfix b/towncrier/newsfragments/1289.bugfix new file mode 100644 index 00000000..8dc41dea --- /dev/null +++ b/towncrier/newsfragments/1289.bugfix @@ -0,0 +1 @@ +Disable Health checks on swarm mode