-
Notifications
You must be signed in to change notification settings - Fork 10
/
docker-compose-dev.yml
34 lines (29 loc) · 1.22 KB
/
docker-compose-dev.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
# Definitions of services using local data_directory bind mounts for development use only.
# Merges with the primary `docker-compose.yml`
# Use with `docker compose -f docker-compose.yml docker-compose-dev.yml`
volumes:
# Separate the database volume from the base services because this one will contain local file paths
postgres_db_vol_dev:
services:
db_postgres:
volumes:
- postgres_db_vol_dev:/var/lib/postgresql/data
backend:
volumes:
- ${DATA_DIR_MODEL_OUTPUT}:/stored_data/model_output
celery_worker:
volumes:
# Bind host data directories to container, allowing different instances to share data sources.
- ${DATA_DIR}:/stored_data
- ${DATA_DIR_MODEL_OUTPUT}:/stored_data/model_output
- ${DATA_DIR_GEOSERVER}:/stored_data/geoserver
- ${ROOF_SURFACE_DATASET_PATH}:/stored_data/roof_surfaces_data/roof_surfaces.gdb
- ${ROAD_DATASET_PATH}:/stored_data/roads.gpkg
terria_map:
volumes:
# Allows development config to be updated on refresh, instead of rebuild
- ./terriajs/client_config.json:/app/wwwroot/config.json
- ./terriajs/catalog.json:/app/wwwroot/init/catalog.json
geoserver:
volumes:
- ${DATA_DIR_GEOSERVER}:/opt/geoserver_data