-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
69 lines (63 loc) · 1.33 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
version: '3'
services:
api:
build: backend
depends_on:
- postgis
environment:
DEBUG: 'True'
DJANGO_DB_HOST: postgis
DASHBOARD_DB_HOST: postgis
ports:
- '8000:8000'
volumes:
- './backend:/usr/src/app'
dashboard:
build: frontend
command: 'sh -c "npm install && npm start"'
ports:
- '3000:3000'
volumes:
- './frontend:/usr/src/app'
postgis:
build: data
environment:
POSTGRES_PASSWORD: postgres
POSTGRES_DB: dashboard
DJANGO_DB: django
DJANGO_USER: djangouser
DJANGO_PASSWORD: djangopassword
ports:
- '5432:5432'
restart: always
volumes:
- postgis:/var/lib/postgresql/data
- ./data/datasets:/datasets:ro
postprocessor:
build: data/postprocessor
depends_on:
- postgis
environment:
PGHOST: postgis
PGUSER: postgres
PGPASSWORD: postgres
PGDATABASE: dashboard
volumes:
- ./data/datasets:/datasets:ro
- ./data/postprocessor/scripts:/scripts:ro
psql:
build: data
depends_on:
- postgis
entrypoint: ["psql"]
environment:
PGHOST: postgis
PGUSER: postgres
PGPASSWORD: postgres
PGDATABASE: dashboard
profiles:
- psql
volumes:
- ./data/datasets:/data/datasets:ro
volumes:
postgis: {}