-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
63 lines (59 loc) · 1.29 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
version: "3.7"
services:
# Django backend app
django:
container_name: audmix_django
build: ./backend
command: python manage.py runserver 0.0.0.0:8000
links:
- "redis:redis_cache"
volumes:
- ./backend/:/usr/src/app/
ports:
- 8000:8000
env_file:
- ./.env.dev
depends_on:
- redis
# Distributed Task Queue to achieve asynchronous behaviour
celery:
container_name: audmix_celery
build: ./backend
command: celery -A backend worker --pool threads -l INFO
links:
- "redis:redis_cache"
volumes:
- ./backend/:/usr/src/app/
env_file:
- ./.env.dev
depends_on:
- redis
- django
# Messaging Broker
redis:
container_name: audmix_redis
image: "redis:alpine"
environment:
- ALLOW_EMPTY_PASSWORD=yes
- REDIS_DISABLE_COMMANDS=FLUSHDB,FLUSHALL
volumes:
- ./redis_data:/data
# React frontend
frontend:
container_name: audmix_frontend
build: ./frontend
command: npm start
volumes:
- ./frontend/:/usr/src/app
- /usr/src/app/node_modules
ports:
- 3000:3000
tty: true
environment:
- NODE_ENV=development
- CHOKIDAR_USEPOLLING=True
stdin_open: true
depends_on:
- celery
- redis
- django