-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
70 lines (62 loc) · 1.31 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
64
65
66
67
68
69
70
version: '3' # 파일 규격 버전
services: # 이 항목 밑에 실행하려는 컨테이너 들을 정의
rabbitmq:
image: "rabbitmq:3-management"
ports:
- "15672:15672"
- "5672:5672"
restart: always
db:
image: mysql:8.0
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: test
ports:
- "3306:3306"
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
interval: 10s
retries: 5
timeout: 5s
web:
build: .
depends_on:
- db
- rabbitmq
ports:
- "8000:8000"
volumes:
- .:/app
restart: always
environment:
WAIT_HOSTS: db:3306, rabbitmq:5672
expose:
- "8000"
celery_worker:
build: .
command: celery -A backend worker --loglevel=info
volumes:
- .:/app
depends_on:
- web
- rabbitmq
restart: always
celery_beat:
build: .
command: celery -A backend beat --loglevel=info --scheduler django_celery_beat.schedulers:DatabaseScheduler
volumes:
- .:/app
depends_on:
- web
- rabbitmq
restart: always
prometheus:
image: prom/prometheus
volumes:
- ./prometheus:/etc/prometheus
ports:
- "9090:9090"
grafana:
image: grafana/grafana
ports:
- "3001:3000"