diff docker/docker-compose.yml @ 9751:308a0d822d18 3.2.x

Keep configuration and data in distinct directories This allows having distinct volumes for configuration and data (artifact database, generated mapfiles and shapefiles, etc.). While at it, cleanup MapServer configuration a little bit.
author Tom Gottfried <tom@intevation.de>
date Tue, 11 Oct 2022 11:42:09 +0200
parents 68c6fe74a276
children cd07130ded8d
line wrap: on
line diff
--- a/docker/docker-compose.yml	Mon Oct 10 15:29:44 2022 +0200
+++ b/docker/docker-compose.yml	Tue Oct 11 11:42:09 2022 +0200
@@ -20,7 +20,7 @@
       - db
     volumes:
       - ../artifacts/doc/conf:/opt/d4e/bin/conf
-      - mapfiles:/opt/d4e/bin
+      - artifacts-data:/opt/d4e/bin/artifacts-data
   mapserv:
     container_name: "d4eriver-mapserv"
     build:
@@ -34,7 +34,8 @@
       - server
     volumes:
       - ./mapserver/cgi-bin:/var/www/cgi-bin
-      - mapfiles:/opt/d4e/bin
+      - ../artifacts/doc/conf/mapserver:/opt/d4e/bin/conf/mapserver
+      - artifacts-data:/opt/d4e/bin/artifacts-data
     ports:
       - 8081:80
   wiki:
@@ -70,5 +71,5 @@
   d4e_river:
     name: d4e_river
 volumes:
-  mapfiles:
+  artifacts-data:
   wiki-data:

http://dive4elements.wald.intevation.org