Mercurial > gemma
annotate docker/docker-compose.yml @ 5637:7f9600ab5461
merge
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Wed, 14 Jun 2023 08:45:11 +0200 |
parents | 7ebd4154894e |
children |
rev | line source |
---|---|
2163
b6b699385302
Added docker compose support.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
1 # If you fiddle around with the following error message: |
b6b699385302
Added docker compose support.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
2 # Version in "./docker-compose.yml" is unsupported |
b6b699385302
Added docker compose support.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
3 # |
b6b699385302
Added docker compose support.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
4 # Option 1) |
b6b699385302
Added docker compose support.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
5 # Update docker and docker compose to at least docker version 17.12.0+. |
b6b699385302
Added docker compose support.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
6 # |
b6b699385302
Added docker compose support.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
7 # Option 2) |
b6b699385302
Added docker compose support.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
8 # Change version: "3.5" to version: "3" |
b6b699385302
Added docker compose support.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
9 # And delete the name configuration form `networks:` below. |
b6b699385302
Added docker compose support.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
10 # |
b6b699385302
Added docker compose support.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
11 version: "3.5" |
b6b699385302
Added docker compose support.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
12 services: |
b6b699385302
Added docker compose support.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
13 gemma_db: |
2778
7ebd4154894e
Adopt container names to fix GeoServer startup
Tom Gottfried <tom@intevation.de>
parents:
2163
diff
changeset
|
14 container_name: gemma-db |
2163
b6b699385302
Added docker compose support.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
15 build: |
b6b699385302
Added docker compose support.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
16 context: ../ |
b6b699385302
Added docker compose support.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
17 dockerfile: docker/Dockerfile.db |
b6b699385302
Added docker compose support.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
18 image: "gemma_db" |
b6b699385302
Added docker compose support.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
19 volumes: |
b6b699385302
Added docker compose support.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
20 - ../schema:/opt/gemma |
b6b699385302
Added docker compose support.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
21 networks: |
b6b699385302
Added docker compose support.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
22 - gemma |
b6b699385302
Added docker compose support.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
23 ports: |
b6b699385302
Added docker compose support.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
24 - "54321:5432" |
b6b699385302
Added docker compose support.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
25 gemma_geoserver: |
2778
7ebd4154894e
Adopt container names to fix GeoServer startup
Tom Gottfried <tom@intevation.de>
parents:
2163
diff
changeset
|
26 container_name: gemma-geoserver |
2163
b6b699385302
Added docker compose support.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
27 build: |
b6b699385302
Added docker compose support.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
28 context: ../ |
b6b699385302
Added docker compose support.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
29 dockerfile: docker/Dockerfile.geoserv |
b6b699385302
Added docker compose support.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
30 depends_on: |
b6b699385302
Added docker compose support.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
31 - gemma_db |
b6b699385302
Added docker compose support.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
32 image: "gemma_geoserver" |
b6b699385302
Added docker compose support.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
33 networks: |
b6b699385302
Added docker compose support.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
34 - gemma |
b6b699385302
Added docker compose support.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
35 ports: |
b6b699385302
Added docker compose support.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
36 - "8280:8080" |
b6b699385302
Added docker compose support.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
37 gemma_backend: |
2778
7ebd4154894e
Adopt container names to fix GeoServer startup
Tom Gottfried <tom@intevation.de>
parents:
2163
diff
changeset
|
38 container_name: gemma-backend |
2163
b6b699385302
Added docker compose support.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
39 build: |
b6b699385302
Added docker compose support.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
40 context: ../ |
b6b699385302
Added docker compose support.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
41 dockerfile: docker/Dockerfile.backend |
b6b699385302
Added docker compose support.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
42 depends_on: |
b6b699385302
Added docker compose support.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
43 - gemma_db |
b6b699385302
Added docker compose support.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
44 - gemma_geoserver |
b6b699385302
Added docker compose support.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
45 image: "gemma_backend" |
b6b699385302
Added docker compose support.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
46 volumes: |
b6b699385302
Added docker compose support.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
47 - ../:/opt/gemma |
b6b699385302
Added docker compose support.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
48 networks: |
b6b699385302
Added docker compose support.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
49 - gemma |
b6b699385302
Added docker compose support.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
50 ports: |
b6b699385302
Added docker compose support.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
51 - "8200:8000" |
b6b699385302
Added docker compose support.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
52 gemma_spa: |
2778
7ebd4154894e
Adopt container names to fix GeoServer startup
Tom Gottfried <tom@intevation.de>
parents:
2163
diff
changeset
|
53 container_name: gemma-spa |
2163
b6b699385302
Added docker compose support.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
54 build: |
b6b699385302
Added docker compose support.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
55 context: ../ |
b6b699385302
Added docker compose support.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
56 dockerfile: docker/Dockerfile.spa |
b6b699385302
Added docker compose support.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
57 depends_on: |
b6b699385302
Added docker compose support.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
58 - gemma_backend |
b6b699385302
Added docker compose support.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
59 - gemma_geoserver |
b6b699385302
Added docker compose support.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
60 image: "gemma_spa" |
b6b699385302
Added docker compose support.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
61 volumes: |
b6b699385302
Added docker compose support.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
62 - ../client:/opt/gemma/client |
b6b699385302
Added docker compose support.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
63 networks: |
b6b699385302
Added docker compose support.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
64 - gemma |
b6b699385302
Added docker compose support.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
65 ports: |
b6b699385302
Added docker compose support.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
66 - "8290:8080" |
b6b699385302
Added docker compose support.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
67 |
b6b699385302
Added docker compose support.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
68 networks: |
b6b699385302
Added docker compose support.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
69 gemma: |
b6b699385302
Added docker compose support.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
70 # name: gemma needs at least docker version 17.12.0+ |
b6b699385302
Added docker compose support.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
71 # API version: "3.5" |
b6b699385302
Added docker compose support.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
72 # https://docs.docker.com/compose/compose-file/#name-1 |
b6b699385302
Added docker compose support.
Bjoern Schilberg <bjoern@intevation.de>
parents:
diff
changeset
|
73 name: gemma |