forked from openstates/openstates.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
60 lines (54 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.5"
networks:
openstates-network:
name: openstates-network
volumes:
openstates-postgres:
name: openstates-postgres
services:
db:
image: "mdillon/postgis:11-alpine"
hostname: "db"
ports:
- "5405:5432"
environment:
POSTGRES_PASSWORD: openstates
POSTGRES_USER: openstates
POSTGRES_DB: openstatesorg
volumes:
- openstates-postgres:/var/lib/postgresql/data
networks:
- openstates-network
django:
build:
context: .
dockerfile: docker/uwsgi/Dockerfile
volumes:
- .:/code
environment:
# dev settings to reload python files when edited
- UWSGI_PYTHON_AUTORELOAD=3
- UWSGI_ENABLE_THREADS=1
- DEBUG
- SECRET_KEY
- DATABASE_URL
- CACHE_URL
- RECAPTCHA_PUBLIC_KEY
- RECAPTCHA_PRIVATE_KEY
depends_on:
- db
networks:
- openstates-network
nginx:
build: docker/nginx
ports:
- "8000:80"
depends_on:
- django
networks:
- openstates-network
# webpack:
# build: .
# command: ./docker/webpack-start.sh
# volumes:
# - .:/code