forked from OpenTreeMap/otm-core
-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
60 lines (55 loc) · 1.13 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
version: "3"
services:
core:
build: .
command: python opentreemap/manage.py runserver 0.0.0.0:8000
volumes:
- ./:/app/:z
ports:
- 8000:8000
depends_on:
- postgres
- redis
- tiler
tiler:
build: https://github.com/kodujdlapolski/otm-tiler.git#develop
ports:
- 4000:4000
depends_on:
- postgres
- redis
environment:
- OTM_DB_USER=otm_kdp
- OTM_DB_PASSWORD=postgres
- OTM_DB_NAME=otm_kdp
- OTM_DB_HOST=postgres
- OTM_DB_PORT=5432
- OTM_CACHE_HOST=redis
- OTM_CACHE_PORT=6379
- OTM_STACK_TYPE=development
ecobenefits:
build: services/ecobenefits
command: make run
volumes:
- ./services/ecobenefits/:/app/:z
ports:
- 8888:8888
depends_on:
- redis
- postgres
redis:
image: redis
ports:
- 6379:6379
postgres:
image: mdillon/postgis
ports:
- 5432
environment:
- POSTGRES_PASSWORD=postgres
- POSTGRES_USER=postgres
volumes:
- pgdata:/var/lib/postgresql/data
- ./scripts/sql/:/docker-entrypoint-initdb.d/
volumes:
pgdata: