-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
52 lines (52 loc) · 1.18 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
version: "3.4"
services:
mongo:
image: mongo:6.0
command: --wiredTigerCacheSizeGB=0.25
redis:
image: redis:7-alpine
cron:
image: "amir20/clashleaders:${TAG:-latest}"
command: "cron.sh"
worker:
image: "amir20/clashleaders:${TAG:-latest}"
command: "worker"
depends_on:
- mongo
- redis
web:
build: .
image: "amir20/clashleaders:${TAG:-latest}"
depends_on:
- redis
- mongo
- imgproxy-cache
- rq_calculation_worker
imgproxy:
image: darthsim/imgproxy:v3.18
environment:
- IMGPROXY_ENFORCE_WEBP=true
- IMGPROXY_USE_ETAG=true
- IMGPROXY_MAX_CLIENTS=100
- IMGPROXY_DOWNLOAD_TIMEOUT=10
- IMGPROXY_TTL=31622400
imgproxy-cache:
image: decentralize/caching-proxy
environment:
- UPSTREAM=http://imgproxy:8080
depends_on:
- imgproxy
rq_calculation_worker:
image: "amir20/clashleaders:${TAG:-latest}"
command: "rq_worker calculation"
depends_on:
- redis
- mongo
rq_war_worker:
image: "amir20/clashleaders:${TAG:-latest}"
command: "rq_worker war"
environment:
- USE_SCHEDULER=true
depends_on:
- redis
- mongo