-
Notifications
You must be signed in to change notification settings - Fork 53
/
docker-compose.yml
64 lines (58 loc) · 1.21 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
61
62
63
64
version: "3.5"
networks:
openstates-network:
name: openstates-network
external: true
volumes:
openstates-postgres:
name: openstates-postgres
services:
django:
build:
context: .
dockerfile: docker/uwsgi/Dockerfile
args:
UID: 1000
volumes:
- .:/code
environment:
# dev settings to reload python files when edited
- UWSGI_PYTHON_AUTORELOAD=3
- UWSGI_ENABLE_THREADS=1
- DEBUG=True
- SECRET_KEY
- DATABASE_URL
- CACHE_URL
- RECAPTCHA_PUBLIC_KEY
- RECAPTCHA_PRIVATE_KEY
networks:
- openstates-network
nginx:
build: docker/nginx
ports:
- "8000:80"
depends_on:
- django
networks:
- openstates-network
db:
profiles:
- db
image: postgres
environment:
POSTGRES_DATABASE: openstatesorg
POSTGRES_PASSWORD: openstates
POSTGRES_USER: openstates
POSTGRES_HOST_AUTH_METHOD: trust
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
ports:
- 5405:5432
# webpack:
# build: .
# command: ./docker/webpack-start.sh
# volumes:
# - .:/code