-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
48 lines (43 loc) · 952 Bytes
/
docker-compose.yaml
File metadata and controls
48 lines (43 loc) · 952 Bytes
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
version: '3.8'
services:
django:
container_name: django
build:
context: ./core
command: uvicorn core.asgi:application --host 0.0.0.0 --port 8000 --workers 4 --log-level debug --reload
volumes:
- ./core:/usr/src/app/
ports:
- 8001:8000
env_file:
- ./env_vars_django.txt
depends_on:
- redis
celery:
container_name: celery
restart: always
build:
context: ./core
command: celery --app=core worker -l INFO -B
volumes:
- ./core:/usr/src/app/
env_file:
- ./env_vars_django.txt
rabbitmq:
image: rabbitmq:management
restart: always
container_name: rabbitmq
ports:
- 5672:5672
- 15672:15672
redis:
image: redis:7.0.11-alpine
ports:
- "6379:6379"
flower:
image: mher/flower
restart: always
ports:
- 5555:5555
environment:
- CELERY_BROKER_URL=amqp://guest:guest@rabbitmq:5672/