-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
84 lines (84 loc) · 2.57 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
services:
nginx:
container_name: ump-nginx
image: nginx:stable
ports:
- 80:80
volumes:
- ./nginx/default-local.conf:/etc/nginx/conf.d/default.conf
depends_on:
- api
- geoserver
- modelserver
- masterportal
masterportal:
container_name: ump-masterportal
build:
dockerfile: Dockerfile.dev
image: cut-masterportal:latest
volumes:
- ${CUT_ADDONS_DIRECTORY}/:/masterportal/addons/
- ${CUT_PORTAL_DIRECTORY}/:/masterportal/portal/simulation/
ports:
- 9001:9001
postgis:
container_name: ump-postgis
image: postgis/postgis:14-3.3
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
volumes:
- ${UMP_DIRECTORY}/src/ump/initializers/db/:/docker-entrypoint-initdb.d/
- ${UMP_DIRECTORY}/postgresql_data:/var/lib/postgresql/data/
ports:
- 5555:5432
api:
container_name: ump-api
env_file: .env
build:
context: ${UMP_DIRECTORY}
dockerfile: Dockerfile.dev
ports:
- 5678:5678
volumes:
- ${UMP_DIRECTORY}/:/app/
geoserver:
container_name: ump-geoserver
image: kartoza/geoserver:2.22.0
environment:
- GEOSERVER_ADMIN_USER=admin
- GEOSERVER_ADMIN_PASSWORD=geoserver
depends_on:
- postgis
volumes:
- ${UMP_DIRECTORY}/geoserver_data:/opt/geoserver/data_dir
modelserver:
container_name: ump-modelserver
image: lgvudh.azurecr.io/analytics/example_ogcapi_processes:main
env_file: .env
volumes:
- ${UMP_DIRECTORY}/modelserver_example/pygeoapi-config.yml:/home/pythonuser/pygeoapi-config.yaml
- ${UMP_DIRECTORY}/modelserver_example/example-openapi.yml:/home/pythonuser/pygeoapi-openapi.yaml
command: [
'/bin/bash', '-c',
'pygeoapi openapi generate /home/pythonuser/pygeoapi-config.yaml --output-file /home/pythonuser/pygeoapi-openapi.yaml && pygeoapi serve --flask'
]
keycloak:
container_name: ump-keycloak
image: quay.io/keycloak/keycloak:25.0
environment:
KEYCLOAK_ADMIN: ${KEYCLOAK_USER}
KEYCLOAK_ADMIN_PASSWORD: ${KEYCLOAK_PASSWORD}
KC_DB: postgres
KC_DB_URL_HOST: postgis
KC_DB_URL_PORT: 5432
KC_DB_URL_DATABASE: keycloak
KC_DB_USERNAME: ${POSTGRES_USER}
KC_DB_PASSWORD: ${POSTGRES_PASSWORD}
KC_HOSTNAME: ${KEYCLOAK_HOST}
KC_HOSTNAME_PATH: /auth
KC_HTTP_RELATIVE_PATH: /auth
depends_on:
- postgis
command: ['start', '--proxy-headers', 'xforwarded', '--http-enabled', 'true']
volumes:
- ./masterportal-keycloak/themes/masterportal:/opt/keycloak/themes/masterportal