From 060569f82b89a334a872b6ced1492fdbb95325d3 Mon Sep 17 00:00:00 2001 From: Martin Gruner Date: Wed, 27 Sep 2023 11:30:12 +0200 Subject: [PATCH 1/2] Closes: #379 - Add mount point for /opt/zammad/storage --- docker-compose.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index cb7950f..0627fe0 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -34,6 +34,7 @@ x-shared: image: ${IMAGE_REPO}:${VERSION} restart: ${RESTART} volumes: + - zammad-storage:/opt/zammad/storage - zammad-var:/opt/zammad/var depends_on: - zammad-memcached @@ -57,6 +58,7 @@ services: restart: ${RESTART} volumes: - zammad-backup:/var/tmp/zammad + - zammad-storage:/opt/zammad/storage:ro - zammad-var:/opt/zammad/var:ro - ./scripts/backup.sh:/usr/local/bin/backup.sh:ro @@ -75,6 +77,7 @@ services: user: 0:0 volumes: - zammad-config-nginx:/etc/nginx/sites-enabled + - zammad-storage:/opt/zammad/storage - zammad-var:/opt/zammad/var zammad-memcached: @@ -91,6 +94,7 @@ services: - zammad-railsserver volumes: - zammad-config-nginx:/etc/nginx/sites-enabled:ro + - zammad-storage:/opt/zammad/storage:ro - zammad-var:/opt/zammad/var:ro zammad-postgresql: @@ -132,5 +136,7 @@ volumes: driver: local zammad-config-nginx: driver: local + zammad-storage: + driver: local zammad-var: driver: local From 342930df5303d49b38f0007f9ff91b41cc37326e Mon Sep 17 00:00:00 2001 From: Martin Gruner Date: Wed, 27 Sep 2023 11:52:11 +0200 Subject: [PATCH 2/2] Remove zammad-storage from nginx container again. --- docker-compose.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 0627fe0..2e3cbf6 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -94,8 +94,7 @@ services: - zammad-railsserver volumes: - zammad-config-nginx:/etc/nginx/sites-enabled:ro - - zammad-storage:/opt/zammad/storage:ro - - zammad-var:/opt/zammad/var:ro + - zammad-var:/opt/zammad/var:ro # required for the zammad-ready check file zammad-postgresql: environment: