-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
45 lines (44 loc) · 967 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
version: "3.1"
services:
rabbitmq:
image: "rabbitmq:3.7"
hostname: "rabbitmq"
ports:
- "5672:5672"
db:
image: "postgres:10"
hostname: "db"
ports:
- "5432:5432"
environment:
POSTGRES_PASSWORD: testpassword
POSTGRES_USER: openprecincts
POSTGRES_DB: openprecincts
webpack:
build: .
command: ./docker/webpack-start.sh
volumes:
- .:/code
django:
build: .
command: /venv/bin/poetry run ./manage.py runserver 0.0.0.0:8000
volumes:
- .:/code
ports:
- "8000:8000"
environment:
- DATABASE_URL
- RAW_FILE_S3_BUCKET
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
celery:
build: .
command: /venv/bin/poetry run celery -A openprecincts_web worker -l info
volumes:
- .:/code
environment:
- DATABASE_URL
- RAW_FILE_S3_BUCKET
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
- MAPBOX_ACCESS_TOKEN