-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathdocker-compose.yml
69 lines (63 loc) · 1.91 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
65
66
67
68
69
version: '2'
services:
thresher_api:
# python:2.7-slim installs postgres 9.4 client
build:
context: .
dockerfile: ./docker/thresher_api/Dockerfile
ports:
- "3000:3000"
- "5000:5000"
depends_on:
- db
- django_rq
environment:
WEBPACK_PORT: "3000"
WEBPACK_LISTEN_IP: "0.0.0.0"
DATABASE_URL: 'postgres://zz:testonly3UkM429Yp@db:5432/thresher'
SECRET_KEY: 'testonlyZTnB25g,jyH7N9:EiAH5shE8K20B93Q9qtOgwgX!FSo1FwGS-zv;MX;C'
import_export_worker:
# Same image as thresher_api
# Runs the queue for importing articles and schemas and exporting projects and tasks
depends_on:
- django_rq
build:
context: .
dockerfile: ./docker/thresher_api/Dockerfile
environment:
DATABASE_URL: 'postgres://zz:testonly3UkM429Yp@db:5432/thresher'
command: ["python", "/home/thresher/data/rqworker.py"]
nlp_hints:
image: goodly/nlp_hints:latest
depends_on:
- django_rq
django_rq:
image: redis:3.2.9
db:
image: postgres:9.6
environment:
- TERM=xterm
- POSTGRES_USER=zz
- POSTGRES_PASSWORD=testonly3UkM429Yp
- POSTGRES_DB=thresher
pybossa:
image: goodly/pybossa:latest
environment:
- PYBOSSA_SECRET=test-only-y8y2i4ISpfwEMhLjUfXH9e5qA8qJkKA31tuLakvy
- PYBOSSA_SESSION_SECRET=test-only-y8y2i4ISpfwEMhLjUfXH9e5qA8qJkKA31tuLakvy
- PYBOSSA_DATABASE_URL=postgresql://dfuser:test-only-RDkWWAG9jXMAFO8pXu6K@pybossa-db/dforce
- PYBOSSA_ITSDANGEROUS_SECRET=test-only-2R1ucOk8KxEeh5SCaXcWPt4oDf2sHQvpiyHAPoyX
- PYBOSSA_BRAND=Deciding Force
- PYBOSSA_TITLE=Deciding Force
- PYBOSSA_LOGO=default_logo.svg
depends_on:
- pybossa-db
ports:
- "3002:80"
pybossa-db:
image: postgres:9.6
environment:
- TERM=xterm
- POSTGRES_USER=dfuser
- POSTGRES_PASSWORD=test-only-RDkWWAG9jXMAFO8pXu6K
- POSTGRES_DB=dforce