Mercurial > dive4elements > river
comparison 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 |
comparison
equal
deleted
inserted
replaced
9789:a1399209b0d6 | 9790:75dc4ea60938 |
---|---|
1 version: "3.5" | 1 version: "3.5" |
2 services: | 2 services: |
3 db: | 3 db: |
4 container_name: "d4eriver-db" | |
5 build: | 4 build: |
6 context: ../ | 5 context: ../ |
7 dockerfile: ./docker/Dockerfile.db | 6 dockerfile: ./docker/Dockerfile.db |
8 image: "d4e/river_db" | 7 image: "d4e/river_db" |
9 server: | 8 artifacts: |
10 container_name: "d4eriver-artifacts" | |
11 build: | 9 build: |
12 context: ../ | 10 context: ../ |
13 dockerfile: ./docker/Dockerfile.artifacts | 11 dockerfile: ./docker/Dockerfile.artifacts |
14 image: "d4e/river_artifacts" | 12 image: "d4e/river_artifacts" |
15 depends_on: | 13 depends_on: |
22 # environment: | 20 # environment: |
23 # - JAVA_OPTS=-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=0.0.0.0:8787 | 21 # - JAVA_OPTS=-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=0.0.0.0:8787 |
24 # ports: | 22 # ports: |
25 # - 8787:8787 | 23 # - 8787:8787 |
26 mapserv: | 24 mapserv: |
27 container_name: "d4eriver-mapserv" | |
28 build: | 25 build: |
29 context: ./ | 26 context: ./ |
30 dockerfile: ./Dockerfile.mapserv | 27 dockerfile: ./Dockerfile.mapserv |
31 image: "d4e/river_mapserv" | 28 image: "d4e/river_mapserv" |
32 depends_on: | 29 depends_on: |
33 - db | 30 - db |
34 - server | 31 - artifacts |
35 volumes: | 32 volumes: |
36 - ./mapserver/cgi-bin:/var/www/cgi-bin | 33 - ./mapserver/cgi-bin:/var/www/cgi-bin |
37 - ../artifacts/doc/conf/mapserver:/opt/d4e/bin/conf/mapserver | 34 - ../artifacts/doc/conf/mapserver:/opt/d4e/bin/conf/mapserver |
38 - artifacts-data:/opt/d4e/bin/artifacts-data | 35 - artifacts-data:/opt/d4e/bin/artifacts-data |
39 client: | 36 client: |
40 container_name: "d4eriver-client" | |
41 build: | 37 build: |
42 context: ../ | 38 context: ../ |
43 dockerfile: ./docker/Dockerfile.gwt-client | 39 dockerfile: ./docker/Dockerfile.gwt-client |
44 image: "d4e/river_client" | 40 image: "d4e/river_client" |
45 depends_on: | 41 depends_on: |
46 - server | 42 - artifacts |
47 - mapserv | 43 - mapserv |
48 volumes: | 44 volumes: |
49 - ../gwt-client/config:/opt/d4e/river/gwt-client/config | 45 - ../gwt-client/config:/opt/d4e/river/gwt-client/config |
50 wiki: | 46 wiki: |
51 container_name: "d4eriver-wiki" | |
52 build: | 47 build: |
53 context: ./ | 48 context: ./ |
54 dockerfile: ./Dockerfile.wiki | 49 dockerfile: ./Dockerfile.wiki |
55 image: "d4e/river_wiki" | 50 image: "d4e/river_wiki" |
56 depends_on: | 51 depends_on: |