forked from barrycarey/RedditRepostSleuth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
227 lines (207 loc) · 7.64 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
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
version: "3.7"
services:
ingest:
restart: always
build:
context: .
dockerfile: redditrepostsleuth/ingestsvc/Dockerfile
environment:
- LOG_LEVEL=WARN
- CELERY_IMPORTS=redditrepostsleuth.core.celery.ingesttasks
admin_svc:
restart: always
build:
context: .
dockerfile: redditrepostsleuth/adminsvc/Dockerfile
deploy:
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
window: 120s
environment:
- LOG_LEVEL=WARN
deleted_post_cleanup:
restart: always
build:
context: .
dockerfile: redditrepostsleuth/adminsvc/Dockerfile
entrypoint: python -u /src/redditrepostsleuth/adminsvc/deleted_post_cleanup.py
environment:
- LOG_LEVEL=WARN
- CELERY_IMPORTS=redditrepostsleuth.core.celery.maintenance_tasks
hot_post:
restart: always
build:
context: .
dockerfile: redditrepostsleuth/hotpostsvc/Dockerfile
environment:
- LOG_LEVEL=WARN
entrypoint: python -u /src/redditrepostsleuth/hotpostsvc/hotpostsvc.py
volumes:
- /opt/imageindex:/opt/imageindex
summons_svc:
restart: always
build:
context: .
dockerfile: redditrepostsleuth/summonssvc/Dockerfile
environment:
- LOG_LEVEL=WARN
entrypoint: python -u /src/redditrepostsleuth/summonssvc/summonssvc.py
stat_monitor_svc:
restart: always
build:
context: .
dockerfile: redditrepostsleuth/monitorsvc/Dockerfile
environment:
- LOG_LEVEL=WARN
entrypoint: python -u /src/redditrepostsleuth/monitorsvc/monitorsvc.py
summons_handler:
restart: always
build:
context: .
dockerfile: redditrepostsleuth/summonssvc/Dockerfile
environment:
- LOG_LEVEL=WARN
entrypoint: python -u /src/redditrepostsleuth/summonssvc/summons_handler_svc_celery.py
volumes:
- /opt/imageindex:/opt/imageindex
summons_worker:
restart: always
build:
context: .
dockerfile: redditrepostsleuth/workers/SummonsWorkerDockerFile
environment:
- LOG_LEVEL=WARN
- SLEUTHCONFIG=testconfig.ini
- C_FORCE_ROOT=True
- CELERY_IMPORTS=redditrepostsleuth.core.celery.response_tasks
entrypoint: celery -A redditrepostsleuth.core.celery worker -Q summons -c 3
volumes:
- /opt/imageindex:/opt/imageindex
subreddit_monitor:
restart: always
build:
context: .
dockerfile: redditrepostsleuth/submonitorsvc/Dockerfile
environment:
- LOG_LEVEL=WARN
- SLEUTHCONFIG=testconfig.ini
entrypoint: python -u /src/redditrepostsleuth/submonitorsvc/sub_monitor_svc_celery.py
volumes:
- /opt/imageindex:/opt/imageindex
submonitor_worker:
restart: always
build:
context: .
dockerfile: redditrepostsleuth/workers/SubMonitorWorkerDockerFile
environment:
- LOG_LEVEL=WARN
- SLEUTHCONFIG=testconfig.ini
- C_FORCE_ROOT=True
- CELERY_IMPORTS=redditrepostsleuth.core.celery.response_tasks
entrypoint: celery -A redditrepostsleuth.core.celery worker -Q submonitor -c 6
volumes:
- /opt/imageindex:/opt/imageindex
ingest_worker:
restart: always
build:
context: .
dockerfile: redditrepostsleuth/workers/ingest/Dockerfile
environment:
- LOG_LEVEL=WARN
- C_FORCE_ROOT=True
- CELERY_IMPORTS=redditrepostsleuth.core.celery.ingesttasks
#- HASH_API=http://157.230.64.152:8000/hash
entrypoint: celery -A redditrepostsleuth.core.celery worker -Q postingest -c 14
generic_repost_worker:
restart: always
build:
context: .
dockerfile: redditrepostsleuth/workers/repost/Dockerfile
environment:
- LOG_LEVEL=WARN
- SLEUTHCONFIG=testconfig.ini
- C_FORCE_ROOT=True
- CELERY_IMPORTS=redditrepostsleuth.core.celery.reposttasks,redditrepostsleuth.core.celery.ingesttasks
entrypoint: celery -A redditrepostsleuth.core.celery worker -Q repost,repost_link,watch_notify -c 2
image_repost_worker:
restart: always
build:
context: .
dockerfile: redditrepostsleuth/workers/repost/Dockerfile
environment:
- LOG_LEVEL=WARN
- C_FORCE_ROOT=True
- CELERY_IMPORTS=redditrepostsleuth.core.celery.reposttasks,redditrepostsleuth.core.celery.ingesttasks
entrypoint: celery -A redditrepostsleuth.core.celery worker -Q repost_image -c 14
volumes:
- /opt/imageindex:/opt/imageindex
networks:
- sleuthnet
deleted_post_cleanup_worker:
restart: always
build:
context: .
dockerfile: redditrepostsleuth/workers/repost/Dockerfile
environment:
- LOG_LEVEL=WARN
- C_FORCE_ROOT=True
- CELERY_IMPORTS=redditrepostsleuth.core.celery.reposttasks,redditrepostsleuth.core.celery.maintenance_tasks
entrypoint: celery -A redditrepostsleuth.core.celery worker -Q deleted_post_cleanup -c 5
misc_task_worker:
restart: always
build:
context: .
dockerfile: redditrepostsleuth/workers/repost/Dockerfile
environment:
- LOG_LEVEL=WARN
- C_FORCE_ROOT=True
- CELERY_IMPORTS=redditrepostsleuth.core.celery.reposttasks,redditrepostsleuth.core.celery.maintenance_tasks,redditrepostsleuth.core.celery.admin_tasks
entrypoint: celery -A redditrepostsleuth.core.celery worker -Q monitored_sub_update,config_update_check,monitored_sub_config_update,watch_remove_deleted -c 5
ingest_pushshift_worker:
restart: always
build:
context: .
dockerfile: redditrepostsleuth/workers/ingest/Dockerfile
environment:
- LOG_LEVEL=WARN
- SLEUTHCONFIG=testconfig.ini
- C_FORCE_ROOT=True
- CELERY_IMPORTS=redditrepostsleuth.core.celery.ingesttasks
entrypoint: celery -A redditrepostsleuth.core.celery worker -Q pushshift -c 4
pushshift_archive_intake_worker:
restart: always
build:
context: .
dockerfile: redditrepostsleuth/workers/Dockerfile
environment:
- LOG_LEVEL=WARN
- SLEUTHCONFIG=testconfig.ini
- C_FORCE_ROOT=True
entrypoint: celery -A redditrepostsleuth.common worker -Q pushshift_intake -c 1
pushshift_archive_ingest:
restart: always
build:
context: .
dockerfile: redditrepostsleuth/workers/Dockerfile
environment:
- LOG_LEVEL=WARN
- SLEUTHCONFIG=testconfig.ini
- C_FORCE_ROOT=True
entrypoint: celery -A redditrepostsleuth.common worker -Q pushshift_ingest -c 1
frontend_api:
build:
context: .
dockerfile: redditrepostsleuth/repostsleuthsiteapi/Dockerfile
environment:
LOG_LEVEL: INFO
restart: always
networks:
- sleuthnet
entrypoint: gunicorn redditrepostsleuth.repostsleuthsiteapi.app --bind 0.0.0.0:7777 --workers 10
ports:
- 7777:7777
networks:
sleuthnet:
external: true