-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
46 lines (45 loc) · 1.24 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
version: "3"
services:
db:
image: postgres:9.6
ports:
- "54321:5432"
environment:
- POSTGRES_USER=gmmp
- POSTGRES_PASSWORD=gmmp
- POSTGRES_DB=gmmp
- PGUSER=gmmp
- PGPASSWORD=gmmp
web:
build: .
ports:
- "8000:8000"
volumes:
- .:/app
- logvolume01:/var/log
depends_on:
- db
environment:
- DATABASE_URL=postgresql://gmmp:gmmp@db:5432/gmmp
- DJANGO_SECRET_KEY=somethingsecret
- SITE_URL=http://localhost:8000
- PGHOST=db
- PGDATABASE=gmmp
- PGUSER=gmmp
- PGPASSWORD=gmmp
- PYTHONDONTWRITEBYTECODE=True
- DJANGO_DEBUG=${DJANGO_DEBUG:-True} # For testing deploys
- GSHEETS_WEIGHTS_SPREADSHEET_ID=${GSHEETS_WEIGHTS_SPREADSHEET_ID:-}
- GMMP_EMAIL_HOST_PASSWORD=${GMMP_EMAIL_HOST_PASSWORD:-}
- GMMP_GUNICORN_TIMEOUT=${GMMP_GUNICORN_TIMEOUT:-120}
- GMMP_GUNICORN_WORKERS=${GMMP_GUNICORN_WORKERS:-3}
- GMMP_REPORTS_HISTORICAL_YEAR=${GMMP_REPORTS_HISTORICAL_YEAR:-2010}
- OAUTHLIB_RELAX_TOKEN_SCOPE=1 # https://stackoverflow.com/a/51643134
command: [
"/cmd.sh",
"--log-level=debug",
"--reload",
"gmmp.wsgi:application",
]
volumes:
logvolume01: {}