-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose-dev.yaml
61 lines (57 loc) · 1.59 KB
/
docker-compose-dev.yaml
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
networks:
dev:
external: true
name: ${DOCKER_NETWORK}
services:
app:
image: ${CONTAINER_REGISTRY}/${CONTAINER_NAMESPACE}/${IMAGE_NAME}:${IMAGE_TAG}
restart: "unless-stopped"
env_file:
- path: .env
required: true # default
ports:
- ${WEBAPP_PORT_EXTERNAL}:5001
command: ['src/app.py']
networks:
- dev
postgis:
image: postgis/postgis:14-3.3
volumes:
- ./src/ump/initializers/db:/docker-entrypoint-initdb.d:delegated
# - ./geoserver/data/pg_data:/var/lib/postgresql/data
env_file:
- path: .env
required: true # default
ports:
- ${POSTGRES_PORT}:5432
networks:
- dev
geoserver:
image: kartoza/geoserver:2.22.0
depends_on:
- postgis
# volumes:
# - ./geoserver/data/geoserver:/opt/geoserver/data_dir
ports:
- ${GEOSERVER_PORT}:8080
env_file:
- path: .env
required: true # default
networks:
- dev
modelserver:
image: ${CONTAINER_REGISTRY}/${CONTAINER_NAMESPACE}/ogcapi_processes_example:0.0.4
env_file:
- path: .env
required: true # default
volumes:
- ./modelserver_example/pygeoapi-config.yml:/home/pythonuser/pygeoapi-config.yaml
- ./modelserver_example/example-openapi.yml:/home/pythonuser/pygeoapi-openapi.yaml
ports:
- ${PYGEOAPI_SERVER_PORT_CONTAINER}:${PYGEOAPI_SERVER_PORT}
command: [
'/bin/bash', '-c',
'pygeoapi openapi generate /home/pythonuser/pygeoapi-config.yaml --output-file /home/pythonuser/pygeoapi-openapi.yaml && pygeoapi serve --flask'
]
networks:
- dev