forked from yverdon/geocity
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-dev.yml
55 lines (51 loc) · 1.76 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
version: "3"
volumes:
gmsdata:
pgdata:
services:
web:
image: gms_web
restart: unless-stopped
depends_on:
- "qgisserver"
- "postgres"
build:
context: ./
args:
dev_dependencies: ${DEV_DEPENDENCIES}
entrypoint: /code/entrypoint_dev.sh
command: "python3 manage.py runserver 0.0.0.0:9000"
volumes:
- .:/code #DEV ONLY!!!
- ./private_documents:/private_documents
ports:
- "${DJANGO_DOCKER_PORT}:9000"
environment:
- DJANGO_SETTINGS_MODULE=geomapshark.settings_dev
qgisserver:
image: openquake/qgis-server:3.16
restart: unless-stopped
depends_on:
- "postgres"
volumes:
- ./qgisserver/geocity.qgs:/io/data/geocity.qgs:ro #default qgis project for mask layer
- ./qgisserver/pg_service.conf:/etc/postgresql-common/pg_service.conf:ro
- ./private_documents:/private_documents #used to access to the private documents via a volume (check env.demo) search(ctrl+f) -> #access_to_private_document_local
ports:
- "${QGISSERVER_DOCKER_PORT}:80"
environment:
- PGSERVICEFILE=/data/qgisserver/pg_service.conf
- QGIS_SERVER_PARALLEL_RENDERING=true
- QGIS_SERVER_IGNORE_BAD_LAYERS=true
- QGIS_SERVER_LOG_LEVEL=0
postgres:
image: camptocamp/postgres:11
restart: unless-stopped
environment:
- POSTGRES_USER=${PGUSER}
- POSTGRES_PASSWORD=${PGPASSWORD}
- POSTGRES_DB=${PGDATABASE}
ports:
- "${POSTGRES_DOCKER_PORT}:5432"
volumes:
- pgdata:/var/lib/postgresql/data