-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
51 lines (46 loc) · 927 Bytes
/
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
version : '3.8'
volumes:
redis:
services:
backend:
container_name: backend
env_file:
- .env
build:
context: .
dockerfile: ./docker/app/Dockerfile
volumes:
- ./backend/:/app/
- ./docker/bash/:/app/bash/
- ./backend/static/:/app/static/
- /tmp/app/mysqld:/run/mysqld
ports:
- "8000:8000"
depends_on:
redis:
condition: service_started
command: "run_django"
redis:
container_name: redis
hostname: redis
image: redis:5.0
ports:
- "6379:6379"
volumes:
- redis:/data
restart: always
celery:
container_name: celery
env_file:
- .env
build:
context: .
dockerfile: ./docker/app/Dockerfile
volumes:
- ./backend/:/app/
- ./docker/bash/:/app/bash/
restart: always
command: run_celery
depends_on:
redis:
condition: service_started