annotate docker/docker-compose.yml @ 9790:75dc4ea60938 3.2.x

Drop using explicit container names Compose will generate names for the containers and containers can connect each other on the network via the service names. This avoids the unnecessary extra "name space" and prepares the application for usage with different project names.
author Tom Gottfried <tom@intevation.de>
date Thu, 20 Jul 2023 10:25:59 +0200
parents a1399209b0d6
children a00bb9d39c16
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 depends_on:
cd07130ded8d Route GWT client through wiki container
Tom Gottfried <tom@intevation.de>
parents: 9751
diff changeset
52 - client
cd07130ded8d Route GWT client through wiki container
Tom Gottfried <tom@intevation.de>
parents: 9751
diff changeset
53 volumes:
cd07130ded8d Route GWT client through wiki container
Tom Gottfried <tom@intevation.de>
parents: 9751
diff changeset
54 - 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
55 - ./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
56 ports:
9754
cd07130ded8d Route GWT client through wiki container
Tom Gottfried <tom@intevation.de>
parents: 9751
diff changeset
57 - 8080:80
9734
95496d21b4da Add MapServer to Docker setup
Tom Gottfried <tom@intevation.de>
parents: 9720
diff changeset
58 volumes:
9751
308a0d822d18 Keep configuration and data in distinct directories
Tom Gottfried <tom@intevation.de>
parents: 9749
diff changeset
59 artifacts-data:
9764
b5d4cb088737 Add named volume for DEM data
Tom Gottfried <tom@intevation.de>
parents: 9760
diff changeset
60 dgm-data:
9740
8abcb3cdaff1 Persist wiki data in volume
Tom Gottfried <tom@intevation.de>
parents: 9739
diff changeset
61 wiki-data:

http://dive4elements.wald.intevation.org