This repository has been archived by the owner on Jan 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
130 lines (130 loc) · 3.67 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
version: '2.4'
services:
web:
build:
context: .
dockerfile: dockerfile_webapp
image: ocelot
restart: always
mem_limit: "200000000"
memswap_limit: "300000000"
mem_reservation: 50m
command: [/bin/bash, start_webapp_http.sh]
env_file:
- env.env
environment:
- USER_HOME_PATH="${USERPROFILE}${HOME}"
ports:
- "5000:5000"
depends_on:
- rabbitmq
- redis
volumes:
- ~/OpacityDrive:/home/opacity/data/user_volume
worker-primary:
build:
context: .
dockerfile: dockerfile_celeryworker
image: ocelot-queue-worker
restart: always
mem_limit: "120000000"
memswap_limit: "150000000"
mem_reservation: 25m
command: ["venv/bin/celery", "worker", "--app=tasks.tasks", "--pool=gevent", "--concurrency=20", "--loglevel=WARNING", "--queues=primary_queue", "--hostname=primary@%h", "--purge"]
env_file:
- ./env.env
depends_on:
- rabbitmq
- redis
volumes:
- ~/OpacityDrive:/home/opacity/data/user_volume
worker-download:
build:
context: .
dockerfile: dockerfile_celeryworker
image: ocelot-queue-worker
restart: always
mem_limit: "300000000"
memswap_limit: "350000000"
mem_reservation: 25m
command: ["venv/bin/celery", "worker", "--app=tasks.tasks", "--pool=gevent", "--concurrency=4", "--loglevel=WARNING", "--queues=download_queue", "--hostname=downloads@%h", "--purge"]
env_file:
- ./env.env
depends_on:
- rabbitmq
- redis
volumes:
- ~/OpacityDrive:/home/opacity/data/user_volume
worker-upload:
build:
context: .
dockerfile: dockerfile_celeryworker
image: ocelot-queue-worker
restart: always
mem_reservation: 25m
command: ["venv/bin/celery", "worker", "--app=tasks.tasks", "--pool=gevent", "--concurrency=6", "--loglevel=WARNING", "--queues=upload_queue", "--hostname=uploads@%h", "--purge"]
env_file:
- ./env.env
depends_on:
- rabbitmq
- redis
volumes:
- ~/OpacityDrive:/home/opacity/data/user_volume
worker-upload-filepart:
build:
context: .
dockerfile: dockerfile_celeryworker
image: ocelot-queue-worker
restart: always
mem_reservation: 25m
command: ["venv/bin/celery", "worker", "--app=tasks.tasks", "--pool=gevent", "--concurrency=10", "--loglevel=WARNING", "--queues=upload_queue_fileparts", "--hostname=uploads-fileparts@%h", "--purge"]
env_file:
- ./env.env
depends_on:
- rabbitmq
- redis
volumes:
- ~/OpacityDrive:/home/opacity/data/user_volume
worker-metadata:
build:
context: .
dockerfile: dockerfile_celeryworker
image: ocelot-queue-worker
restart: always
mem_limit: "120000000"
memswap_limit: "150000000"
mem_reservation: 25m
command: ["venv/bin/celery", "worker", "--app=tasks.tasks", "--pool=gevent", "--concurrency=1", "--loglevel=WARNING", "--queues=metadata_queue", "--hostname=metadata@%h", "--purge"]
env_file:
- ./env.env
depends_on:
- rabbitmq
- redis
volumes:
- ~/OpacityDrive:/home/opacity/data/user_volume
flower:
image: mher/flower:0.9.5
restart: always
mem_limit: "120000000"
memswap_limit: "150000000"
mem_reservation: 25m
env_file:
- ./env.env
ports:
- "5555:5555"
depends_on:
- rabbitmq
rabbitmq:
image: rabbitmq:3.8.5
restart: always
expose:
- "5672"
redis:
image: redis
command: ["/bin/sh", "/opt/redis/redis_startup.sh"]
mem_reservation: 25m
volumes:
- ./redis.conf:/usr/local/etc/redis/redis.conf
- ./redis_startup.sh:/opt/redis/redis_startup.sh
expose:
- "6379"