-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.local.yml
More file actions
56 lines (55 loc) · 1.41 KB
/
docker-compose.local.yml
File metadata and controls
56 lines (55 loc) · 1.41 KB
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
version: "3"
services:
mapogram:
restart: always
ports:
- ${PORT}:${PORT}
build:
context: ./
dockerfile: Dockerfile
volumes: # To prevent overriding node_modules folder, which OS dependent, and there is no "exclude" option, we have to bind folder one by one
- type: bind
source: ./src
target: /usr/src/app/src
- type: bind
source: ./.env
target: /usr/src/app/.env
command: ["yarn", "dev"]
depends_on:
- db
environment:
- API_URL=${API_URL}
- PORT=${PORT}
- HOST=${HOST}
db:
image: postgres
restart: always
environment:
- "POSTGRES_USER=${POSTGRES_USER}"
- "POSTGRES_DB=${POSTGRES_DB}"
- "POSTGRES_PASSWORD=${POSTGRES_PASSWORD}"
- "POSTGRES_HOST_AUTH_METHOD=trust"
ports:
- "${POSTGRES_PORT}:5432"
volumes:
- db-data:/var/lib/postgresql/data
qgis-mapogram-fire-server:
image: mapogram/qgis-server
volumes:
- type: bind
source: ${QGIS_MAPOGRAM_FIRE_DIR}
target: /data
environment:
- QGIS_PROJECT_FILE=/data/${QGIS_MAPOGRAM_FIRE_FILE}
- QGIS_SERVER_IGNORE_BAD_LAYERS=1
web-server:
image: nginx:1.13
restart: always
ports:
- "${QGIS_MAPOGRAM_FIRE_SERVER_PORT}:80"
volumes:
- type: bind
source: ./docker/qgis/nginx.conf
target: /etc/nginx/conf.d/default.conf
volumes:
db-data: