-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathcompose.yaml
39 lines (38 loc) · 930 Bytes
/
compose.yaml
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
services:
server:
build:
context: .
volumes:
- .:/app
ports:
- 8000:5000
environment:
- DATABASE_URL=postgresql://wazimap:wazimap@db/wazimap
- DJANGO_DEBUG=True
- DJANGO_SETTINGS_MODULE=wazimap_za.settings
- DJANGO_SECRET_KEY=a-dev-secret-key-not-secret
- WAZI_PROFILE=census
- GOOGLE_GEOCODE_API_KEY=get-real-key-from-google
depends_on:
db:
condition: service_healthy
command: ./dev.sh
db:
image: postgres:11.6
environment:
- POSTGRES_USER=wazimap
- POSTGRES_PASSWORD=wazimap
- POSTGRES_DB=wazimap
- PGUSER=wazimap
ports:
- "5433:5432"
volumes:
- db-data:/var/lib/postgresql/data
command: ["postgres", "-c", "log_statement=all"]
healthcheck:
test: ["CMD-SHELL", "pg_isready", "-U postgres"]
interval: 10s
timeout: 5s
retries: 5
volumes:
db-data: