-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yml
124 lines (115 loc) · 2.61 KB
/
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
services:
redis-master:
container_name: redis-master
image: redis:latest
restart: always
ports:
- "6379:6379"
networks:
- redis
redis-replica:
container_name: redis-replica
restart: always
image: redis:replica
build:
context: ./
dockerfile: ./docker/redis/Dockerfile
target: redis-replica
depends_on:
- redis-master
networks:
- redis
redis-sentinel:
container_name: redis-sentinel
image: redis:sentinel
restart: always
build:
context: ./
dockerfile: ./docker/redis/Dockerfile
target: redis-sentinel
ports:
- "26379:26379"
depends_on:
- redis-master
- redis-replica
networks:
- redis
pybossa-server:
container_name: pybossa-server
restart: unless-stopped
image: pybossa-prod:server
volumes:
- ./uploads:/app/uploads
- static-files:/app/pybossa/pybossa/themes/default/static
- uwsgi-socket:/tmp/
build:
context: ./
dockerfile: ./docker/pybossa/Dockerfile
target: pybossa-server
networks:
- redis
- backend
depends_on:
- redis-master
- redis-replica
- redis-sentinel
- pybossa-scheduler
env_file:
- ./config/env/.env.secrets
- ./config/env/.env.mail
pybossa-worker:
container_name: pybossa-worker
restart: unless-stopped
image: pybossa-prod:worker
build:
context: ./
dockerfile: ./docker/pybossa/Dockerfile
target: pybossa-worker
networks:
- redis
- backend
depends_on:
- redis-master
- redis-replica
- redis-sentinel
- pybossa-scheduler
env_file:
- ./config/env/.env.secrets
- ./config/env/.env.mail
pybossa-scheduler:
container_name: pybossa-scheduler
restart: unless-stopped
image: pybossa-prod:scheduler
build:
context: ./
dockerfile: ./docker/pybossa/Dockerfile
target: pybossa-scheduler
networks:
- redis
- backend
depends_on:
- redis-master
- redis-replica
- redis-sentinel
env_file:
- ./config/env/.env.secrets
- ./config/env/.env.mail
webserver:
container_name: webserver
image: nginx:latest
restart: always
volumes:
- ./config/nginx/templates:/etc/nginx/templates
- ./config/nginx/nginx.conf:/etc/nginx/nginx.conf
- uwsgi-socket:/app/uwsgi/:ro
- static-files:/app/static:ro
depends_on:
- pybossa-server
- pybossa-worker
- pybossa-scheduler
networks:
redis:
backend:
volumes:
static-files:
uwsgi-socket: