forked from okfn-brasil/jarbas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
43 lines (38 loc) · 1.07 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
version: '3'
services:
django:
image: datasciencebr/jarbas-backend
environment:
- DATABASE_URL=postgres://jarbas:mysecretpassword@postgres/jarbas
- ALLOWED_HOSTS=localhost,127.0.0.1
- AMAZON_S3_BUCKET=serenata-de-amor-data
- AMAZON_S3_REGION=s3-sa-east-1
- AMAZON_S3_CEAPTRANSLATION_DATE=2016-08-08
- CELERY_BROKER_URL=amqp://guest:guest@queue/
depends_on:
- elm
- tasks
- postgres
volumes:
- "./contrib/data:/mnt/data"
tasks:
image: datasciencebr/jarbas-backend
environment:
- DATABASE_URL=postgres://jarbas:mysecretpassword@postgres/jarbas
- CELERY_BROKER_URL=amqp://guest:guest@queue/
depends_on:
- postgres
- queue
command: [celery, worker, --app, jarbas]
elm:
image: datasciencebr/jarbas-frontend
postgres:
image: postgres:9.6.5-alpine
environment:
- POSTGRES_PASSWORD=mysecretpassword
- POSTGRES_USER=jarbas
- POSTGRES_DB=jarbas
volumes:
- ./db:/var/lib/postgresql
queue:
image: rabbitmq:3.6.11-alpine