-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathdocker-compose.yml
39 lines (37 loc) · 1.02 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
version: '3.3'
services:
db:
image: postgres:9.5
ports:
- "54321:5432"
environment:
- POSTGRES_USER=hurumap
- POSTGRES_PASSWORD=hurumap
- POSTGRES_DB=${HURUMAP_APP:-dominion}
- PGUSER=hurumap
- PGPASSWORD=hurumap
web:
build: .
ports:
- "8000:8000"
depends_on:
- db
volumes:
- ./:/src/hurumap-apps
entrypoint:
- /usr/local/bin/python
command: ["manage.py", "runserver", "0.0.0.0:8000"]
environment:
- HURUMAP_APP=${HURUMAP_APP:-dominion}
- DJANGO_SETTINGS_MODULE=${HURUMAP_APP:-dominion}.settings
- DATABASE_URL=postgresql://hurumap:hurumap@db:5432/${HURUMAP_APP:-dominion}
- DJANGO_SECRET_KEY=somethingsecret
- HURUMAP_URL="http://localhost:8000"
- PGHOST=db
- PGDATABASE=${HURUMAP_APP:-dominion}
- PGUSER=hurumap
- PGPASSWORD=hurumap
- USE_MAPIT=True
- PYTHONUNBUFFERED=True
- PYTHONDONTWRITEBYTECODE=True
- DEBUG=${DJANGO_DEBUG:-true} # For testing deploys