From 693fb3dbc71ad2da5bfbdd74d9b76cf1ea0e5dbc Mon Sep 17 00:00:00 2001 From: ofthesun9 Date: Mon, 11 May 2020 09:53:09 +0200 Subject: [PATCH] Harmonization of the various docker-compose.yml Harmonization (following pr1444) between: - docs/compose/docker-compose.yml - setup/flavors/stack/docker-compose.yml - setup/flavors/compose/docker-compose.yml Also refresh of the mkdir command found in setup/flavors/stack/setup.html --- docs/compose/docker-compose.yml | 11 ++++++----- setup/flavors/stack/docker-compose.yml | 10 +++++----- setup/flavors/stack/setup.html | 2 +- 3 files changed, 12 insertions(+), 11 deletions(-) diff --git a/docs/compose/docker-compose.yml b/docs/compose/docker-compose.yml index 2686ee27..42be1cb0 100644 --- a/docs/compose/docker-compose.yml +++ b/docs/compose/docker-compose.yml @@ -31,7 +31,7 @@ services: - "$BIND_ADDRESS6:587:587" volumes: - "$ROOT/certs:/certs" - - "$ROOT/overrides/nginx:/overrides" + - "$ROOT/overrides/nginx:/overrides:ro" redis: image: redis:alpine @@ -45,7 +45,7 @@ services: env_file: .env volumes: - "$ROOT/mail:/mail" - - "$ROOT/overrides:/overrides" + - "$ROOT/overrides/dovecot:/overrides:ro" depends_on: - front @@ -54,7 +54,8 @@ services: restart: always env_file: .env volumes: - - "$ROOT/overrides:/overrides" + - "$ROOT/mailqueue:/queue" + - "$ROOT/overrides/postfix:/overrides:ro" depends_on: - front @@ -64,8 +65,8 @@ services: env_file: .env volumes: - "$ROOT/filter:/var/lib/rspamd" - - "$ROOT/dkim:/dkim" - - "$ROOT/overrides/rspamd:/etc/rspamd/override.d" + - "$ROOT/dkim:/dkim:ro" + - "$ROOT/overrides/rspamd:/etc/rspamd/override.d:ro" depends_on: - front diff --git a/setup/flavors/stack/docker-compose.yml b/setup/flavors/stack/docker-compose.yml index 6ae0f103..15bfc9cb 100644 --- a/setup/flavors/stack/docker-compose.yml +++ b/setup/flavors/stack/docker-compose.yml @@ -27,7 +27,7 @@ services: {% endfor %} volumes: - "{{ root }}/certs:/certs" - - "{{ root }}/overrides/nginx:/overrides" + - "{{ root }}/overrides/nginx:/overrides:ro" deploy: replicas: {{ front_replicas }} @@ -49,7 +49,7 @@ services: env_file: {{ env }} volumes: - "{{ root }}/mail:/mail" - - "{{ root }}/overrides:/overrides" + - "{{ root }}/overrides/dovecot:/overrides:ro" deploy: replicas: {{ imap_replicas }} @@ -58,7 +58,7 @@ services: env_file: {{ env }} volumes: - "{{ root }}/mailqueue:/queue" - - "{{ root }}/overrides:/overrides" + - "{{ root }}/overrides/postfix:/overrides:ro" deploy: replicas: {{ smtp_replicas }} @@ -67,8 +67,8 @@ services: env_file: {{ env }} volumes: - "{{ root }}/filter:/var/lib/rspamd" - - "{{ root }}/dkim:/dkim" - - "{{ root }}/overrides/rspamd:/etc/rspamd/override.d" + - "{{ root }}/dkim:/dkim:ro" + - "{{ root }}/overrides/rspamd:/etc/rspamd/override.d:ro" deploy: replicas: 1 diff --git a/setup/flavors/stack/setup.html b/setup/flavors/stack/setup.html index 5ae65cf7..9c775b20 100644 --- a/setup/flavors/stack/setup.html +++ b/setup/flavors/stack/setup.html @@ -4,7 +4,7 @@

Docker Stack expects a project file, named docker-compose.yml in a project directory. First create your project directory.

-
mkdir -p /{{ root }}/{redis,certs,data,dkim,mail,overrides/rspamd,overrides/nginx,filter,dav,webmail}
+
mkdir -p {{ root }}/{redis,certs,data,dkim,mail,mailqueue,overrides/rspamd,overrides/postfix,overrides/dovecot,overrides/nginx,filter,dav,webmail}
 

Then download the project file. A side configuration file makes it easier