forked from openstates/openstates-scrapers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
46 lines (46 loc) · 1.17 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:
scrape:
image: openstates/openstates
environment:
- MYSQL_HOST=mysql
- DATABASE_URL=postgres://postgres:secret@postgres:5432/openstates
- NEW_YORK_API_KEY
- INDIANA_API_KEY
- PUPA_ARGS
volumes:
- .:/opt/openstates/openstates/
entrypoint: /opt/openstates/openstates/pupa-scrape.sh
postgres:
image: mdillon/postgis:10-alpine
ports:
- "5432:5432"
environment:
- POSTGRES_PASSWORD=secret
- POSTGRES_DB=openstates
dbinit:
image: openstates/openstates
environment:
- DATABASE_URL=postgres://postgres:secret@postgres:5432/openstates
entrypoint: /opt/openstates/openstates/scripts/dbinit.sh
volumes:
- .:/opt/openstates/openstates/
depends_on:
- postgres
mysql:
image: mysql:5.7
command: mysqld --max_allowed_packet=512M
ports:
- "3306:3306"
environment:
- MYSQL_DATABASE=capublic
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
ca-download:
image: openstates/openstates
entrypoint: /opt/openstates/openstates/openstates/ca/download.sh
environment:
- MYSQL_HOST=mysql
volumes:
- .:/opt/openstates/openstates/
depends_on:
- mysql