-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
53 lines (47 loc) · 1.12 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
version: '3.8'
x-service-basic: &service-basic
volumes:
- ./loadlimiter:/loadlimiter
environment:
BROKER_URL: 'redis://redis:6379'
services:
loadlimiter:
command: sh -c 'uvicorn app.main:app --reload --host 0.0.0.0'
build:
context: ./loadlimiter
dockerfile: Dockerfile
ports:
- 8001:8000
<<: *service-basic
celery:
command: sh -c 'celery -A app.config.celery_app worker --loglevel=INFO -c 10'
build:
context: ./loadlimiter
dockerfile: Dockerfile
depends_on:
- redis
<<: *service-basic
redis:
image: redis:6.2.1-alpine
glot:
image: glot/docker-run:latest
volumes:
- /var/run/docker.sock:/var/run/docker.sock
ports:
- 8088:8088
environment:
API_ACCESS_TOKEN: token
DOCKER_CONTAINER_ULIMIT_NPROC_SOFT: 2000
DOCKER_CONTAINER_ULIMIT_NPROC_HARD: 5000
SERVER_WORKER_THREADS: 10
flower:
image: mher/flower
volumes:
- ./loadlimiter:/loadlimiter
environment:
CELERY_BROKER_URL: 'redis://redis:6379'
FLOWER_PORT: 5555
ports:
- 5555:5555
depends_on:
- redis