-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
51 lines (45 loc) · 856 Bytes
/
docker-compose.yml
File metadata and controls
51 lines (45 loc) · 856 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
49
50
version: '3.9'
services:
api:
build:
context: .
dockerfile: Dockerfile
container_name: debate_api
ports:
- "8000:8000"
depends_on:
- mysql
- redis
env_file:
- .env
restart: always
celery_worker:
build:
context: .
dockerfile: Dockerfile
container_name: debate_celery_worker
command: celery -A app.tasks.celery_app worker --loglevel=info
depends_on:
- api
- redis
env_file:
- .env
restart: always
redis:
image: redis:7
container_name: debate_redis
ports:
- "6379:6379"
restart: always
mysql:
image: mysql:8
container_name: debate_mysql
env_file:
- .env
ports:
- "3306:3306"
volumes:
- mysql_data:/var/lib/mysql
restart: always
volumes:
mysql_data: