annotate docker/docker-compose.yml @ 9755:0834c2591e14 3.2.x

Route MapServer through wiki container This reduces the need for local configuration changes to get a working Docker-based setup.
author Tom Gottfried <tom@intevation.de>
date Wed, 12 Oct 2022 12:53:36 +0200
parents cd07130ded8d
children 9bbb29142ddb
rev   line source
9720
13e2d38ad314 Improve Docker based setup
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
1 version: "3.5"
13e2d38ad314 Improve Docker based setup
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
2 services:
13e2d38ad314 Improve Docker based setup
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
3 db:
13e2d38ad314 Improve Docker based setup
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
4 container_name: "d4eriver-db"
13e2d38ad314 Improve Docker based setup
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
5 build:
13e2d38ad314 Improve Docker based setup
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
6 context: ../
13e2d38ad314 Improve Docker based setup
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
7 dockerfile: ./docker/Dockerfile.db
13e2d38ad314 Improve Docker based setup
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
8 image: "d4e/river_db"
13e2d38ad314 Improve Docker based setup
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
9 networks:
13e2d38ad314 Improve Docker based setup
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
10 - d4e_river
13e2d38ad314 Improve Docker based setup
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
11 server:
13e2d38ad314 Improve Docker based setup
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
12 container_name: "d4eriver-artifacts"
13e2d38ad314 Improve Docker based setup
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
13 build:
13e2d38ad314 Improve Docker based setup
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
14 context: ../
13e2d38ad314 Improve Docker based setup
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
15 dockerfile: ./docker/Dockerfile.artifacts
13e2d38ad314 Improve Docker based setup
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
16 image: "d4e/river_artifacts"
13e2d38ad314 Improve Docker based setup
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
17 networks:
13e2d38ad314 Improve Docker based setup
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
18 - d4e_river
13e2d38ad314 Improve Docker based setup
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
19 depends_on:
13e2d38ad314 Improve Docker based setup
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
20 - db
9734
95496d21b4da Add MapServer to Docker setup
Tom Gottfried <tom@intevation.de>
parents: 9720
diff changeset
21 volumes:
95496d21b4da Add MapServer to Docker setup
Tom Gottfried <tom@intevation.de>
parents: 9720
diff changeset
22 - ../artifacts/doc/conf:/opt/d4e/bin/conf
9751
308a0d822d18 Keep configuration and data in distinct directories
Tom Gottfried <tom@intevation.de>
parents: 9749
diff changeset
23 - artifacts-data:/opt/d4e/bin/artifacts-data
9734
95496d21b4da Add MapServer to Docker setup
Tom Gottfried <tom@intevation.de>
parents: 9720
diff changeset
24 mapserv:
95496d21b4da Add MapServer to Docker setup
Tom Gottfried <tom@intevation.de>
parents: 9720
diff changeset
25 container_name: "d4eriver-mapserv"
95496d21b4da Add MapServer to Docker setup
Tom Gottfried <tom@intevation.de>
parents: 9720
diff changeset
26 build:
95496d21b4da Add MapServer to Docker setup
Tom Gottfried <tom@intevation.de>
parents: 9720
diff changeset
27 context: ./
95496d21b4da Add MapServer to Docker setup
Tom Gottfried <tom@intevation.de>
parents: 9720
diff changeset
28 dockerfile: ./Dockerfile.mapserv
95496d21b4da Add MapServer to Docker setup
Tom Gottfried <tom@intevation.de>
parents: 9720
diff changeset
29 image: "d4e/river_mapserv"
95496d21b4da Add MapServer to Docker setup
Tom Gottfried <tom@intevation.de>
parents: 9720
diff changeset
30 networks:
95496d21b4da Add MapServer to Docker setup
Tom Gottfried <tom@intevation.de>
parents: 9720
diff changeset
31 - d4e_river
95496d21b4da Add MapServer to Docker setup
Tom Gottfried <tom@intevation.de>
parents: 9720
diff changeset
32 depends_on:
95496d21b4da Add MapServer to Docker setup
Tom Gottfried <tom@intevation.de>
parents: 9720
diff changeset
33 - db
95496d21b4da Add MapServer to Docker setup
Tom Gottfried <tom@intevation.de>
parents: 9720
diff changeset
34 - server
95496d21b4da Add MapServer to Docker setup
Tom Gottfried <tom@intevation.de>
parents: 9720
diff changeset
35 volumes:
9749
68c6fe74a276 Allow changing CGI scripts without re-building
Tom Gottfried <tom@intevation.de>
parents: 9748
diff changeset
36 - ./mapserver/cgi-bin:/var/www/cgi-bin
9751
308a0d822d18 Keep configuration and data in distinct directories
Tom Gottfried <tom@intevation.de>
parents: 9749
diff changeset
37 - ../artifacts/doc/conf/mapserver:/opt/d4e/bin/conf/mapserver
308a0d822d18 Keep configuration and data in distinct directories
Tom Gottfried <tom@intevation.de>
parents: 9749
diff changeset
38 - artifacts-data:/opt/d4e/bin/artifacts-data
9720
13e2d38ad314 Improve Docker based setup
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
39 client:
13e2d38ad314 Improve Docker based setup
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
40 container_name: "d4eriver-client"
13e2d38ad314 Improve Docker based setup
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
41 build:
13e2d38ad314 Improve Docker based setup
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
42 context: ../
13e2d38ad314 Improve Docker based setup
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
43 dockerfile: ./docker/Dockerfile.gwt-client
13e2d38ad314 Improve Docker based setup
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
44 image: "d4e/river_client"
13e2d38ad314 Improve Docker based setup
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
45 networks:
13e2d38ad314 Improve Docker based setup
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
46 - d4e_river
13e2d38ad314 Improve Docker based setup
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
47 depends_on:
13e2d38ad314 Improve Docker based setup
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
48 - server
9734
95496d21b4da Add MapServer to Docker setup
Tom Gottfried <tom@intevation.de>
parents: 9720
diff changeset
49 - mapserv
9720
13e2d38ad314 Improve Docker based setup
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
50 volumes:
9747
cfc0aab9947f Enable bind-mounting client configuration in docker container
Tom Gottfried <tom@intevation.de>
parents: 9740
diff changeset
51 - ../gwt-client/config:/opt/d4e/river/gwt-client/config
9754
cd07130ded8d Route GWT client through wiki container
Tom Gottfried <tom@intevation.de>
parents: 9751
diff changeset
52 wiki:
cd07130ded8d Route GWT client through wiki container
Tom Gottfried <tom@intevation.de>
parents: 9751
diff changeset
53 container_name: "d4eriver-wiki"
cd07130ded8d Route GWT client through wiki container
Tom Gottfried <tom@intevation.de>
parents: 9751
diff changeset
54 build:
cd07130ded8d Route GWT client through wiki container
Tom Gottfried <tom@intevation.de>
parents: 9751
diff changeset
55 context: ./
cd07130ded8d Route GWT client through wiki container
Tom Gottfried <tom@intevation.de>
parents: 9751
diff changeset
56 dockerfile: ./Dockerfile.wiki
cd07130ded8d Route GWT client through wiki container
Tom Gottfried <tom@intevation.de>
parents: 9751
diff changeset
57 image: "d4e/river_wiki"
cd07130ded8d Route GWT client through wiki container
Tom Gottfried <tom@intevation.de>
parents: 9751
diff changeset
58 networks:
cd07130ded8d Route GWT client through wiki container
Tom Gottfried <tom@intevation.de>
parents: 9751
diff changeset
59 - d4e_river
cd07130ded8d Route GWT client through wiki container
Tom Gottfried <tom@intevation.de>
parents: 9751
diff changeset
60 depends_on:
cd07130ded8d Route GWT client through wiki container
Tom Gottfried <tom@intevation.de>
parents: 9751
diff changeset
61 - client
cd07130ded8d Route GWT client through wiki container
Tom Gottfried <tom@intevation.de>
parents: 9751
diff changeset
62 volumes:
cd07130ded8d Route GWT client through wiki container
Tom Gottfried <tom@intevation.de>
parents: 9751
diff changeset
63 - wiki-data:/opt/wiki/moin-1.9.9/wiki/data
cd07130ded8d Route GWT client through wiki container
Tom Gottfried <tom@intevation.de>
parents: 9751
diff changeset
64 - ./wikiconfig_local.py:/opt/wiki/moin-1.9.9/wikiconfig_local.py
9720
13e2d38ad314 Improve Docker based setup
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
65 ports:
9754
cd07130ded8d Route GWT client through wiki container
Tom Gottfried <tom@intevation.de>
parents: 9751
diff changeset
66 - 8080:80
9720
13e2d38ad314 Improve Docker based setup
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
67 networks:
13e2d38ad314 Improve Docker based setup
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
68 d4e_river:
13e2d38ad314 Improve Docker based setup
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
69 name: d4e_river
9734
95496d21b4da Add MapServer to Docker setup
Tom Gottfried <tom@intevation.de>
parents: 9720
diff changeset
70 volumes:
9751
308a0d822d18 Keep configuration and data in distinct directories
Tom Gottfried <tom@intevation.de>
parents: 9749
diff changeset
71 artifacts-data:
9740
8abcb3cdaff1 Persist wiki data in volume
Tom Gottfried <tom@intevation.de>
parents: 9739
diff changeset
72 wiki-data:

http://dive4elements.wald.intevation.org