forked from mysociety/pombola
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
50 lines (46 loc) · 1.08 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
version: '3'
services:
app:
build:
context: .
dockerfile: Dockerfile
image: pombola
depends_on:
- db
- elasticsearch
volumes:
- ./data:/app-data
- .:/app
environment:
- DATABASE_URL=postgresql://pombola:pombola@db/pombola
- DATABASE_NAME=pombola
- POMBOLA_DATADIR=/app-data
- DJANGO_DEBUG=TRUE
- DJANGO_SECRET_KEY=not-secret-in-dev
- ELASTICSEARCH_URL=elasticsearch:9200
- GOOGLE_MAPS_GEOCODING_API_KEY=${GOOGLE_MAPS_GEOCODING_API_KEY}
ports:
- "8000:8000"
command: bin/wait-for-deps.sh python manage.py runserver 0.0.0.0:8000
db:
build:
context: docker/db
image: postgres-9.6-postgis-2.3
environment:
- POSTGRES_USER=pombola
- POSTGRES_PASSWORD=pombola
- POSTGRES_DB=pombola
volumes:
- db-data:/var/lib/postgresql/data
elasticsearch:
image: openup/elasticsearch-0.90
volumes:
- es-data:/elasticsearch/data
environment:
- ES_MIN_MEM=2g
- ES_MAX_MEM=4g
ports:
- 9200
volumes:
db-data:
es-data: