-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
46 lines (41 loc) · 1.03 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
version: '3.8'
networks:
loki:
services:
mysql:
image: mysql:latest
hostname: hostname-mysql
ports:
- "3309:3306"
environment:
MYSQL_ROOT_PASSWORD: asdasd123
MYSQL_DATABASE: dev_food
MYSQL_USER: food
MYSQL_PASSWORD: asdasd123
volumes:
- mysql_data:/var/lib/mysql
loki:
image: grafana/loki:latest
ports:
- "3100:3100"
volumes:
- ./loki-config.yaml:/mnt/loki/loki-config.yaml # 현재 경로의 설정 파일을 컨테이너 내로 마운트
command: -config.file=/mnt/loki/loki-config.yaml
networks:
- loki
promtail:
image: grafana/promtail:latest
volumes:
- /Users/mac/project/food-recommendation/logs:/mnt/logs
- ./promtail-config.yaml:/mnt/config/promtail-config.yaml
command: -config.file=/mnt/config/promtail-config.yaml
networks:
- loki
grafana:
image: grafana/grafana:master
ports:
- "3000:3000"
networks:
- loki
volumes:
mysql_data: