Disable Health checks on swarm mode

ref: https://github.com/moby/moby/issues/35451
master
ofthesun9 5 years ago
parent 4c9a4b2824
commit f48a13336f

@ -43,6 +43,8 @@ services:
- "{{ root }}/dkim:/dkim" - "{{ root }}/dkim:/dkim"
deploy: deploy:
replicas: {{ admin_replicas }} replicas: {{ admin_replicas }}
healthcheck:
disable: true
imap: imap:
image: ${DOCKER_ORG:-mailu}/${DOCKER_PREFIX:-}dovecot:${MAILU_VERSION:-{{ version }}} image: ${DOCKER_ORG:-mailu}/${DOCKER_PREFIX:-}dovecot:${MAILU_VERSION:-{{ version }}}
@ -52,6 +54,8 @@ services:
- "{{ root }}/overrides:/overrides" - "{{ root }}/overrides:/overrides"
deploy: deploy:
replicas: {{ imap_replicas }} replicas: {{ imap_replicas }}
healthcheck:
disable: true
smtp: smtp:
image: ${DOCKER_ORG:-mailu}/${DOCKER_PREFIX:-}postfix:${MAILU_VERSION:-{{ version }}} image: ${DOCKER_ORG:-mailu}/${DOCKER_PREFIX:-}postfix:${MAILU_VERSION:-{{ version }}}
@ -61,6 +65,8 @@ services:
- "{{ root }}/overrides:/overrides" - "{{ root }}/overrides:/overrides"
deploy: deploy:
replicas: {{ smtp_replicas }} replicas: {{ smtp_replicas }}
healthcheck:
disable: true
antispam: antispam:
image: ${DOCKER_ORG:-mailu}/${DOCKER_PREFIX:-}rspamd:${MAILU_VERSION:-{{ version }}} image: ${DOCKER_ORG:-mailu}/${DOCKER_PREFIX:-}rspamd:${MAILU_VERSION:-{{ version }}}
@ -71,6 +77,8 @@ services:
- "{{ root }}/overrides/rspamd:/etc/rspamd/override.d" - "{{ root }}/overrides/rspamd:/etc/rspamd/override.d"
deploy: deploy:
replicas: 1 replicas: 1
healthcheck:
disable: true
# Optional services # Optional services
{% if antivirus_enabled %} {% if antivirus_enabled %}
@ -81,6 +89,8 @@ services:
- "{{ root }}/filter:/data" - "{{ root }}/filter:/data"
deploy: deploy:
replicas: 1 replicas: 1
healthcheck:
disable: true
{% endif %} {% endif %}
{% if webdav_enabled %} {% if webdav_enabled %}
@ -91,6 +101,8 @@ services:
- "{{ root }}/dav:/data" - "{{ root }}/dav:/data"
deploy: deploy:
replicas: 1 replicas: 1
healthcheck:
disable: true
{% endif %} {% endif %}
{% if fetchmail_enabled %} {% if fetchmail_enabled %}
@ -101,6 +113,8 @@ services:
- "{{ root }}/data:/data" - "{{ root }}/data:/data"
deploy: deploy:
replicas: 1 replicas: 1
healthcheck:
disable: true
{% endif %} {% endif %}
{% if webmail_type != 'none' %} {% if webmail_type != 'none' %}
@ -111,6 +125,8 @@ services:
- "{{ root }}/webmail:/data" - "{{ root }}/webmail:/data"
deploy: deploy:
replicas: 1 replicas: 1
healthcheck:
disable: true
{% endif %} {% endif %}
{% if db_flavor == 'postgresql' and postgresql == 'internal' %} {% if db_flavor == 'postgresql' and postgresql == 'internal' %}
@ -119,6 +135,8 @@ services:
env_file: {{ env }} env_file: {{ env }}
volumes: volumes:
- "{{ root }}/data/psql_backup:/backup" - "{{ root }}/data/psql_backup:/backup"
healthcheck:
disable: true
{% endif %} {% endif %}
networks: networks:

@ -0,0 +1 @@
Disable Health checks on swarm mode
Loading…
Cancel
Save