From 5067b5c59a1ab3c868b3414ab5b125a9d273ed5c Mon Sep 17 00:00:00 2001 From: ofthesun9 Date: Wed, 31 Oct 2018 14:27:37 +0000 Subject: [PATCH] POD_ADDRESS need to be defined for admin service (dovecot authentification) fixes #694 - updated the docs - corrected a typo --- docs/swarm/master/README.md | 8 ++++---- docs/swarm/master/README_nfs_example.md | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/swarm/master/README.md b/docs/swarm/master/README.md index 44c19dc7..61319cfd 100644 --- a/docs/swarm/master/README.md +++ b/docs/swarm/master/README.md @@ -30,7 +30,7 @@ mzrm9nbdggsfz4sgq6dhs5i6n flying-dutchman Ready Active ### Volume definition For data persistance (the Mailu services might be launched/relaunched on any of the swarm nodes), we need to have Mailu data stored in a manner accessible by every manager or worker in the swarm. -Hereafter we will assume that "Mailu Data" is available on every node at "$ROOT/certs:/certs" (GlusterFS and nfs shares have been successfully used). +Hereafter we will assume that "Mailu Data" is available on every node at "$ROOT" (GlusterFS and nfs shares have been successfully used). On this example, we are using: - the mesh routing mode (default mode). With this mode, each service is given a virtual IP adress and docker manages the routing between this virtual IP and the container(s) providing this service. @@ -77,7 +77,7 @@ Instead, we will use the following work-around: We need also to: - add a deploy section for every service - modify the way the ports are defined for the front service -- add the POD_ADDRESS_RANGE definition for imap, smtp and antispam services +- add the POD_ADDRESS_RANGE definition for admin (for imap), smtp and antispam services ## Docker compose An example of docker-compose-stack.yml file is available here: @@ -128,8 +128,6 @@ services: image: mailu/dovecot:$VERSION restart: always env_file: .env - environment: - - POD_ADDRESS_RANGE=10.0.1.0/24 volumes: - "$ROOT/mail:/mail" - "$ROOT/overrides:/overrides" @@ -188,6 +186,8 @@ services: image: mailu/admin:$VERSION restart: always env_file: .env + environment: + - POD_ADDRESS_RANGE=10.0.1.0/24 volumes: - "$ROOT/data:/data" - "$ROOT/dkim:/dkim" diff --git a/docs/swarm/master/README_nfs_example.md b/docs/swarm/master/README_nfs_example.md index 5cfd0a73..a091f5ba 100644 --- a/docs/swarm/master/README_nfs_example.md +++ b/docs/swarm/master/README_nfs_example.md @@ -157,8 +157,6 @@ services: image: mailu/dovecot:$VERSION restart: always env_file: .env - environment: - - POD_ADDRESS_RANGE=10.0.1.0/24 volumes: # - "$ROOT/mail:/mail" - type: volume @@ -241,6 +239,8 @@ services: image: mailu/admin:$VERSION restart: always env_file: .env + environment: + - POD_ADDRESS_RANGE=10.0.1.0/24 volumes: # - "$ROOT/data:/data" - type: volume