This repository has been archived by the owner on Apr 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.yml
59 lines (53 loc) · 1.61 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
version: "2"
services:
redis-master:
image: 'redis:3.0-alpine'
redis-sentinel:
image: 'jvstein/redis-sentinel:latest'
depends_on:
- redis-master
links:
- redis-master
postgres:
image: 'postgres:9.6-alpine'
environment:
- POSTGRES_USER=pybossa
- POSTGRES_PASSWORD=supersecretpassword
# initializes the database
db-init:
image: 'jvstein/pybossa:latest'
depends_on:
- postgres
environment:
- POSTGRES_URL=postgresql://pybossa:supersecretpassword@db/pybossa
links:
- postgres:db
command: sh -c "sleep 5 && python cli.py db_create"
# TODO: create a separate scheduler process??
# command: rqscheduler --host redis-master
# background worker process
pybossa-bgworker:
image: 'jvstein/pybossa:latest'
depends_on:
- db-init
environment:
- POSTGRES_URL=postgresql://pybossa:supersecretpassword@db/pybossa
links:
- redis-master
- redis-sentinel
- postgres:db
command: python app_context_rqworker.py scheduled_jobs super high medium low email maintenance
# web server
pybossa:
image: 'jvstein/pybossa:latest'
container_name: pybossa
depends_on:
- db-init
environment:
- POSTGRES_URL=postgresql://pybossa:supersecretpassword@db/pybossa
links:
- redis-master
- redis-sentinel
- postgres:db
ports:
- "8080:8080"