forked from openstates/openstates-scrapers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
46 lines (46 loc) · 988 Bytes
/
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:
openstates:
image: openstates/openstates
environment:
- BILLY_MONGO_HOST=database
- MYSQL_HOST=mysql
- NEW_YORK_API_KEY
- INDIANA_API_KEY
volumes:
- .:/srv/openstates-web
depends_on:
- database
openstates.org:
image: openstates/openstates.org
command: python manage.py runserver 0.0.0.0:8000
environment:
- MONGO_HOST=database
ports:
- "8000:8000"
depends_on:
- database
scrape:
image: openstates/openstates-pupa
environment:
- BILLY_MONGO_HOST=database
- MYSQL_HOST=mysql
- NEW_YORK_API_KEY
- INDIANA_API_KEY
- PUPA_ARGS
volumes:
- .:/opt/openstates/openstates/
depends_on:
- database
entrypoint: /opt/openstates/openstates/pupa-scrape.sh
database:
image: mongo
ports:
- "27017:27017"
mysql:
image: mysql
ports:
- "3306:3306"
environment:
- MYSQL_DATABASE=capublic
- MYSQL_ALLOW_EMPTY_PASSWORD=yes