comparison 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
comparison
equal deleted inserted replaced
9750:432934cda171 9751:308a0d822d18
18 - d4e_river 18 - d4e_river
19 depends_on: 19 depends_on:
20 - db 20 - db
21 volumes: 21 volumes:
22 - ../artifacts/doc/conf:/opt/d4e/bin/conf 22 - ../artifacts/doc/conf:/opt/d4e/bin/conf
23 - mapfiles:/opt/d4e/bin 23 - artifacts-data:/opt/d4e/bin/artifacts-data
24 mapserv: 24 mapserv:
25 container_name: "d4eriver-mapserv" 25 container_name: "d4eriver-mapserv"
26 build: 26 build:
27 context: ./ 27 context: ./
28 dockerfile: ./Dockerfile.mapserv 28 dockerfile: ./Dockerfile.mapserv
32 depends_on: 32 depends_on:
33 - db 33 - db
34 - server 34 - server
35 volumes: 35 volumes:
36 - ./mapserver/cgi-bin:/var/www/cgi-bin 36 - ./mapserver/cgi-bin:/var/www/cgi-bin
37 - mapfiles:/opt/d4e/bin 37 - ../artifacts/doc/conf/mapserver:/opt/d4e/bin/conf/mapserver
38 - artifacts-data:/opt/d4e/bin/artifacts-data
38 ports: 39 ports:
39 - 8081:80 40 - 8081:80
40 wiki: 41 wiki:
41 container_name: "d4eriver-wiki" 42 container_name: "d4eriver-wiki"
42 build: 43 build:
68 - 8080:8080 69 - 8080:8080
69 networks: 70 networks:
70 d4e_river: 71 d4e_river:
71 name: d4e_river 72 name: d4e_river
72 volumes: 73 volumes:
73 mapfiles: 74 artifacts-data:
74 wiki-data: 75 wiki-data:

http://dive4elements.wald.intevation.org