-
Notifications
You must be signed in to change notification settings - Fork 10
/
docker-compose.yml
235 lines (219 loc) · 7.72 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
228
229
230
231
232
233
version: "3.7"
services:
ingest:
container_name: ingest-svc
restart: unless-stopped
user: "1001"
build:
context: .
dockerfile: docker/IngestSvcDockerfile
environment:
- db_user=ingest
- LOG_LEVEL=INFO
- RUN_ENV=production
env_file:
- .env
entrypoint: python -u /src/ingestsvc.py
scheduled_task_worker:
container_name: scheduled_task_worker
restart: unless-stopped
user: "1001"
build:
context: .
dockerfile: docker/WorkerDockerFile
env_file:
- .env
environment:
- RUN_ENV=production
- db_user=scheduled_task
- LOG_LEVEL=INFO
- CELERY_IMPORTS=redditrepostsleuth.core.celery.admin_tasks,redditrepostsleuth.core.celery.tasks.scheduled_tasks
entrypoint: celery -A redditrepostsleuth.core.celery worker -Q scheduled_tasks -n scheduled_task_worker --autoscale=15,2
subreddit_update_worker:
container_name: subreddit_update_worker
restart: unless-stopped
user: "1001"
build:
context: .
dockerfile: docker/WorkerDockerFile
env_file:
- .env
environment:
- RUN_ENV=production
- db_user=maintenance_task
- LOG_LEVEL=DEBUG
- CELERY_IMPORTS=redditrepostsleuth.core.celery.tasks.maintenance_tasks
entrypoint: celery -A redditrepostsleuth.core.celery worker -Q update_subreddit_data -n subreddit_update_worker --autoscale=1,4
scheduler:
container_name: beat_scheduler
restart: unless-stopped
build:
context: .
dockerfile: docker/WorkerDockerFile
volumes:
- /opt/repostsleuth-celery:/opt/repostsleuth-celery
env_file:
- .env
environment:
- RUN_ENV=production
- LOG_LEVEL=INFO
- C_FORCE_ROOT=True
- CELERY_IMPORTS=redditrepostsleuth.core.celery.admin_tasks
entrypoint: celery -A redditrepostsleuth.core.celery beat
delete_post_svc:
restart: unless-stopped
build:
context: .
dockerfile: redditrepostsleuth/workers/delete_post/Dockerfile
env_file:
- .env
environment:
- RUN_ENV=production
- LOG_LEVEL=INFO
- QUERY_LIMIT=1000000
- CELERY_IMPORTS=redditrepostsleuth.core.celery.admin_tasks
delete_post_worker:
container_name: delete-post-worker
restart: unless-stopped
user: '1001'
build:
context: .
dockerfile: docker/WorkerDockerFile
env_file:
- .env
environment:
- RUN_ENV=production
- LOG_LEVEL=INFO
- CELERY_IMPORTS=redditrepostsleuth.core.celery.admin_tasks
entrypoint: celery -A redditrepostsleuth.core.celery worker -Q post_delete -n deleted_post_worker -c 16
volumes:
- /opt/imageindex:/opt/imageindex
queue_monitor_svc:
container_name: queue-monitor-svc
restart: unless-stopped
user: '1001'
build:
context: .
dockerfile: docker/QueueMonitorDockerfile
env_file:
- .env
environment:
- RUN_ENV=production
- LOG_LEVEL=WARN
entrypoint: python -u /src/queue_monitor.py
summons_handler:
container_name: summons-monitor
restart: unless-stopped
user: '1001'
build:
context: .
dockerfile: docker/SummonsHandlerDockerfile
env_file:
- .env
environment:
- RUN_ENV=production
- LOG_LEVEL=WARN
entrypoint: python -u /src/summons_monitor.py
submonitor_worker:
container_name: submonitor-worker
restart: unless-stopped
user: '1001'
build:
context: .
dockerfile: docker/WorkerDockerFile
env_file:
- .env
environment:
- RUN_ENV=production
- db_user=sub_monitor
- LOG_LEVEL=INFO
- CELERY_IMPORTS=redditrepostsleuth.core.celery.tasks.monitored_sub_tasks
entrypoint: celery -A redditrepostsleuth.core.celery worker -Q submonitor -n submonitor_worker --autoscale=10,2
reddit_actions_worker:
container_name: reddit-actions-worker
restart: unless-stopped
user: '1001'
build:
context: .
dockerfile: docker/WorkerDockerFile
env_file:
- .env
environment:
- RUN_ENV=production
- db_user=sub_monitor
- LOG_LEVEL=INFO
- CELERY_IMPORTS=redditrepostsleuth.core.celery.tasks.reddit_action_tasks
entrypoint: celery -A redditrepostsleuth.core.celery worker -Q reddit_actions -n reddit_actions --autoscale=3,2
ingest_worker:
restart: unless-stopped
container_name: ingest-worker
user: '1001'
build:
context: .
dockerfile: docker/WorkerDockerFile
env_file:
- .env
environment:
- RUN_ENV=production
- db_user=ingest
- LOG_LEVEL=INFO
- CELERY_IMPORTS=redditrepostsleuth.core.celery.tasks.ingest_tasks
entrypoint: celery -A redditrepostsleuth.core.celery worker -Q post_ingest -n ingest_worker --autoscale=16,1
link_repost_worker:
container_name: link-repost-worker
restart: unless-stopped
user: '1001'
build:
context: .
dockerfile: docker/WorkerDockerFile
env_file:
- .env
environment:
- db_user=repost_link
- LOG_LEVEL=WARN
- RUN_ENV=production
- CELERY_IMPORTS=redditrepostsleuth.core.celery.tasks.repost_tasks
entrypoint: celery -A redditrepostsleuth.core.celery worker -Q repost_link -n repost_link_worker --autoscale=6,1
image_repost_worker:
container_name: image-repost-worker
restart: unless-stopped
user: '1001'
build:
context: .
dockerfile: docker/WorkerDockerFile
env_file:
- .env
environment:
- RUN_ENV=production
- db_user=repost_image
- LOG_LEVEL=INFO
- CELERY_IMPORTS=redditrepostsleuth.core.celery.tasks.repost_tasks
entrypoint: celery -A redditrepostsleuth.core.celery worker -Q repost_image -n repost_image_worker --autoscale=14,5
only_fans_worker:
container_name: only-fans-worker
restart: unless-stopped
user: '1001'
build:
context: .
dockerfile: docker/WorkerDockerFile
env_file:
- .env
environment:
- RUN_ENV=production
- LOG_LEVEL=WARNING
- CELERY_IMPORTS=redditrepostsleuth.core.celery.admin_tasks
entrypoint: celery -A redditrepostsleuth.core.celery worker -Q onlyfans_check -n onlyfans_worker --autoscale=10,5
subreddit_config_update_worker:
container_name: subreddit-config-update-worker
restart: unless-stopped
user: '1001'
build:
context: .
dockerfile: docker/WorkerDockerFile
env_file:
- .env
environment:
- RUN_ENV=production
- LOG_LEVEL=INFO
- CELERY_IMPORTS=redditrepostsleuth.core.celery.tasks.scheduled_tasks,redditrepostsleuth.core.celery.admin_tasks
entrypoint: celery -A redditrepostsleuth.core.celery worker -Q batch_delete_searches,subreddit_config_updates,update_wiki_from_database -n subreddit_config_update_worker --autoscale=8,1