annotate docker/docker-compose.yml @ 9803:a440ebd5c23b 3.2.x tip

Avoid using outdated mod_wsgi in Docker setup Run Wiki in standalone mode behind reverse proxy, which is provided by a more up-to-date Apache web server. The wiki container is still based on CentOS 7, because the included SSO integration component cannot be build with more recent libraries.
author Tom Gottfried <tom@intevation.de>
date Wed, 21 Aug 2024 16:54:17 +0200
parents a00bb9d39c16
children
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 build:
13e2d38ad314 Improve Docker based setup
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
5 context: ../
13e2d38ad314 Improve Docker based setup
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
6 dockerfile: ./docker/Dockerfile.db
13e2d38ad314 Improve Docker based setup
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
7 image: "d4e/river_db"
9790
75dc4ea60938 Drop using explicit container names
Tom Gottfried <tom@intevation.de>
parents: 9789
diff changeset
8 artifacts:
9720
13e2d38ad314 Improve Docker based setup
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
9 build:
13e2d38ad314 Improve Docker based setup
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
10 context: ../
13e2d38ad314 Improve Docker based setup
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
11 dockerfile: ./docker/Dockerfile.artifacts
13e2d38ad314 Improve Docker based setup
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
12 image: "d4e/river_artifacts"
13e2d38ad314 Improve Docker based setup
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
13 depends_on:
13e2d38ad314 Improve Docker based setup
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
14 - db
9734
95496d21b4da Add MapServer to Docker setup
Tom Gottfried <tom@intevation.de>
parents: 9720
diff changeset
15 volumes:
95496d21b4da Add MapServer to Docker setup
Tom Gottfried <tom@intevation.de>
parents: 9720
diff changeset
16 - ../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
17 - artifacts-data:/opt/d4e/bin/artifacts-data
9764
b5d4cb088737 Add named volume for DEM data
Tom Gottfried <tom@intevation.de>
parents: 9760
diff changeset
18 - dgm-data:/opt/d4e-river/dgm
9760
9bbb29142ddb Give hints for remote debugging artifact server
Tom Gottfried <tom@intevation.de>
parents: 9755
diff changeset
19 # Uncomment to enable remote debugging from anywhere (caution: security risk!)
9bbb29142ddb Give hints for remote debugging artifact server
Tom Gottfried <tom@intevation.de>
parents: 9755
diff changeset
20 # environment:
9bbb29142ddb Give hints for remote debugging artifact server
Tom Gottfried <tom@intevation.de>
parents: 9755
diff changeset
21 # - JAVA_OPTS=-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=0.0.0.0:8787
9bbb29142ddb Give hints for remote debugging artifact server
Tom Gottfried <tom@intevation.de>
parents: 9755
diff changeset
22 # ports:
9bbb29142ddb Give hints for remote debugging artifact server
Tom Gottfried <tom@intevation.de>
parents: 9755
diff changeset
23 # - 8787:8787
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 build:
95496d21b4da Add MapServer to Docker setup
Tom Gottfried <tom@intevation.de>
parents: 9720
diff changeset
26 context: ./
95496d21b4da Add MapServer to Docker setup
Tom Gottfried <tom@intevation.de>
parents: 9720
diff changeset
27 dockerfile: ./Dockerfile.mapserv
95496d21b4da Add MapServer to Docker setup
Tom Gottfried <tom@intevation.de>
parents: 9720
diff changeset
28 image: "d4e/river_mapserv"
95496d21b4da Add MapServer to Docker setup
Tom Gottfried <tom@intevation.de>
parents: 9720
diff changeset
29 depends_on:
95496d21b4da Add MapServer to Docker setup
Tom Gottfried <tom@intevation.de>
parents: 9720
diff changeset
30 - db
9790
75dc4ea60938 Drop using explicit container names
Tom Gottfried <tom@intevation.de>
parents: 9789
diff changeset
31 - artifacts
9734
95496d21b4da Add MapServer to Docker setup
Tom Gottfried <tom@intevation.de>
parents: 9720
diff changeset
32 volumes:
9749
68c6fe74a276 Allow changing CGI scripts without re-building
Tom Gottfried <tom@intevation.de>
parents: 9748
diff changeset
33 - ./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
34 - ../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
35 - artifacts-data:/opt/d4e/bin/artifacts-data
9720
13e2d38ad314 Improve Docker based setup
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
36 client:
13e2d38ad314 Improve Docker based setup
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
37 build:
13e2d38ad314 Improve Docker based setup
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
38 context: ../
13e2d38ad314 Improve Docker based setup
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
39 dockerfile: ./docker/Dockerfile.gwt-client
13e2d38ad314 Improve Docker based setup
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
40 image: "d4e/river_client"
13e2d38ad314 Improve Docker based setup
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
41 depends_on:
9790
75dc4ea60938 Drop using explicit container names
Tom Gottfried <tom@intevation.de>
parents: 9789
diff changeset
42 - artifacts
9734
95496d21b4da Add MapServer to Docker setup
Tom Gottfried <tom@intevation.de>
parents: 9720
diff changeset
43 - mapserv
9720
13e2d38ad314 Improve Docker based setup
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
44 volumes:
9747
cfc0aab9947f Enable bind-mounting client configuration in docker container
Tom Gottfried <tom@intevation.de>
parents: 9740
diff changeset
45 - ../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
46 wiki:
cd07130ded8d Route GWT client through wiki container
Tom Gottfried <tom@intevation.de>
parents: 9751
diff changeset
47 build:
cd07130ded8d Route GWT client through wiki container
Tom Gottfried <tom@intevation.de>
parents: 9751
diff changeset
48 context: ./
cd07130ded8d Route GWT client through wiki container
Tom Gottfried <tom@intevation.de>
parents: 9751
diff changeset
49 dockerfile: ./Dockerfile.wiki
cd07130ded8d Route GWT client through wiki container
Tom Gottfried <tom@intevation.de>
parents: 9751
diff changeset
50 image: "d4e/river_wiki"
cd07130ded8d Route GWT client through wiki container
Tom Gottfried <tom@intevation.de>
parents: 9751
diff changeset
51 volumes:
cd07130ded8d Route GWT client through wiki container
Tom Gottfried <tom@intevation.de>
parents: 9751
diff changeset
52 - 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
53 - ./wikiconfig_local.py:/opt/wiki/moin-1.9.9/wikiconfig_local.py
9803
a440ebd5c23b Avoid using outdated mod_wsgi in Docker setup
Tom Gottfried <tom@intevation.de>
parents: 9791
diff changeset
54 proxy:
a440ebd5c23b Avoid using outdated mod_wsgi in Docker setup
Tom Gottfried <tom@intevation.de>
parents: 9791
diff changeset
55 build:
a440ebd5c23b Avoid using outdated mod_wsgi in Docker setup
Tom Gottfried <tom@intevation.de>
parents: 9791
diff changeset
56 context: ./
a440ebd5c23b Avoid using outdated mod_wsgi in Docker setup
Tom Gottfried <tom@intevation.de>
parents: 9791
diff changeset
57 dockerfile: ./Dockerfile.proxy
a440ebd5c23b Avoid using outdated mod_wsgi in Docker setup
Tom Gottfried <tom@intevation.de>
parents: 9791
diff changeset
58 image: "d4e/river_proxy"
a440ebd5c23b Avoid using outdated mod_wsgi in Docker setup
Tom Gottfried <tom@intevation.de>
parents: 9791
diff changeset
59 depends_on:
a440ebd5c23b Avoid using outdated mod_wsgi in Docker setup
Tom Gottfried <tom@intevation.de>
parents: 9791
diff changeset
60 - client
a440ebd5c23b Avoid using outdated mod_wsgi in Docker setup
Tom Gottfried <tom@intevation.de>
parents: 9791
diff changeset
61 - mapserv
a440ebd5c23b Avoid using outdated mod_wsgi in Docker setup
Tom Gottfried <tom@intevation.de>
parents: 9791
diff changeset
62 - wiki
9720
13e2d38ad314 Improve Docker based setup
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
63 ports:
9791
a00bb9d39c16 Drop explicit host ports
Tom Gottfried <tom@intevation.de>
parents: 9790
diff changeset
64 - 80
9734
95496d21b4da Add MapServer to Docker setup
Tom Gottfried <tom@intevation.de>
parents: 9720
diff changeset
65 volumes:
9751
308a0d822d18 Keep configuration and data in distinct directories
Tom Gottfried <tom@intevation.de>
parents: 9749
diff changeset
66 artifacts-data:
9764
b5d4cb088737 Add named volume for DEM data
Tom Gottfried <tom@intevation.de>
parents: 9760
diff changeset
67 dgm-data:
9740
8abcb3cdaff1 Persist wiki data in volume
Tom Gottfried <tom@intevation.de>
parents: 9739
diff changeset
68 wiki-data:

http://dive4elements.wald.intevation.org