-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
245 lines (223 loc) · 6 KB
/
docker-compose.yaml
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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
version: '3'
services:
rabbitmq:
build:
context: ./rabbitmq
dockerfile: Dockerfile
ports:
- 15672:15672
- 5672:5672
client:
container_name: client
image: client:latest
entrypoint: python3 /main.py
restart: on-failure
depends_on:
- rabbitmq
links:
- rabbitmq
volumes:
- ./data:/data
environment:
- CHUNKSIZE=400
- FILE_COMMETS=/data/comments.csv
- FILE_POSTS=/data/posts.csv
- COMMETS_QUEUE=comments_queue
- POSTS_QUEUE=posts_queue
- SEND_WORKERS_COMMENTS=2
- SEND_WORKERS_POSTS=3
- STUDENTS_QUEUE=student_url_queue
- AVG_QUEUE=posts_avg_score_queue
- IMAGE_QUEUE=post_avg_sentiments_queue
comments_filter_columns_1:
container_name: comments_filter_columns_1
image: comments_filter_columns:latest
entrypoint: python3 /main.py
restart: on-failure
depends_on:
- rabbitmq
links:
- rabbitmq
environment:
- QUEUE_RECV=comments_queue
- QUEUE_SEND=comments_filter_queue
- WORKER_KEY=1
comments_filter_columns_2:
container_name: comments_filter_columns_2
image: comments_filter_columns:latest
entrypoint: python3 /main.py
restart: on-failure
depends_on:
- rabbitmq
links:
- rabbitmq
environment:
- QUEUE_RECV=comments_queue
- QUEUE_SEND=comments_filter_queue
- WORKER_KEY=2
comments_filter_student_1:
container_name: comments_filter_student_1
image: comments_filter_student:latest
entrypoint: python3 /main.py
restart: on-failure
depends_on:
- rabbitmq
links:
- rabbitmq
environment:
- QUEUE_RECV=cmt_pst_join_st_queue
- QUEUE_SEND=posts_student_queue
- RECV_WORKERS=2
comments_filter_student_2:
container_name: comments_filter_student_2
image: comments_filter_student:latest
entrypoint: python3 /main.py
restart: on-failure
depends_on:
- rabbitmq
links:
- rabbitmq
environment:
- QUEUE_RECV=cmt_pst_join_st_queue
- QUEUE_SEND=posts_student_queue
- RECV_WORKERS=2
posts_filter_score_gte_avg_1:
container_name: posts_filter_score_gte_avg_1
image: posts_filter_score_gte_avg:latest
entrypoint: python3 /main.py
restart: on-failure
depends_on:
- rabbitmq
links:
- rabbitmq
environment:
- QUEUE_RECV_AVG=posts_avg_score_queue
- QUEUE_RECV_STUDENTS=posts_student_queue
- QUEUE_SEND=student_url_queue
- CHUNKSIZE=400
posts_filter_score_gte_avg_2:
container_name: posts_filter_score_gte_avg_2
image: posts_filter_score_gte_avg:latest
entrypoint: python3 /main.py
restart: on-failure
depends_on:
- rabbitmq
links:
- rabbitmq
environment:
- QUEUE_RECV_AVG=posts_avg_score_queue
- QUEUE_RECV_STUDENTS=posts_student_queue
- QUEUE_SEND=student_url_queue
- CHUNKSIZE=400
posts_reduce_avg_sentiment_1:
container_name: posts_reduce_avg_sentiment_1
image: posts_reduce_avg_sentiment:latest
entrypoint: python3 /main.py
restart: on-failure
depends_on:
- rabbitmq
links:
- rabbitmq
environment:
- QUEUE_RECV=cmt_pst_join_se_queue
- QUEUE_SEND=post_sentiments_queue
posts_reduce_avg_sentiment_2:
container_name: posts_reduce_avg_sentiment_2
image: posts_reduce_avg_sentiment:latest
entrypoint: python3 /main.py
restart: on-failure
depends_on:
- rabbitmq
links:
- rabbitmq
environment:
- QUEUE_RECV=cmt_pst_join_se_queue
- QUEUE_SEND=post_sentiments_queue
posts_max_avg_sentiment:
container_name: posts_max_avg_sentiment
image: posts_max_avg_sentiment:latest
entrypoint: python3 /main.py
restart: on-failure
depends_on:
- rabbitmq
links:
- rabbitmq
volumes:
- ./posts_max_avg_sentiment/data:/data
environment:
- QUEUE_RECV=post_sentiments_queue
- QUEUE_SEND=post_avg_sentiments_queue
- RECV_WORKERS=2
posts_filter_columns_1:
container_name: posts_filter_columns_1
image: posts_filter_columns:latest
entrypoint: python3 /main.py
restart: on-failure
depends_on:
- rabbitmq
links:
- rabbitmq
environment:
- QUEUE_RECV=posts_queue
- QUEUE_SEND_JOIN=posts_for_join_queue
- QUEUE_SEND_AVG=posts_for_avg_queue
- WORKER_KEY=1
posts_filter_columns_2:
container_name: posts_filter_columns_2
image: posts_filter_columns:latest
entrypoint: python3 /main.py
restart: on-failure
depends_on:
- rabbitmq
links:
- rabbitmq
environment:
- QUEUE_RECV=posts_queue
- QUEUE_SEND_JOIN=posts_for_join_queue
- QUEUE_SEND_AVG=posts_for_avg_queue
- WORKER_KEY=2
posts_filter_columns_3:
container_name: posts_filter_columns_3
image: posts_filter_columns:latest
entrypoint: python3 /main.py
restart: on-failure
depends_on:
- rabbitmq
links:
- rabbitmq
environment:
- QUEUE_RECV=posts_queue
- QUEUE_SEND_JOIN=posts_for_join_queue
- QUEUE_SEND_AVG=posts_for_avg_queue
- WORKER_KEY=3
posts_avg_score:
container_name: posts_avg_score
image: posts_avg_score:latest
entrypoint: python3 /main.py
restart: on-failure
depends_on:
- rabbitmq
links:
- rabbitmq
environment:
- QUEUE_RECV=posts_for_avg_queue
- QUEUE_SEND=posts_avg_score_queue
- RECV_WORKERS=3
join_comments_with_posts:
container_name: join_comments_with_posts
image: join_comments_with_posts:latest
entrypoint: python3 /main.py
restart: on-failure
depends_on:
- rabbitmq
links:
- rabbitmq
environment:
- QUEUE_RECV_COMMENTS=comments_filter_queue
- QUEUE_RECV_POSTS=posts_for_join_queue
- QUEUE_SEND_STUDENTS=cmt_pst_join_st_queue
- QUEUE_SEND_SENTIMENTS=cmt_pst_join_se_queue
- CHUNKSIZE=400
- RECV_WORKERS_COMMENTS=2
- RECV_WORKERS_POSTS=3
- SEND_WORKERS=2