-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
87 lines (79 loc) · 2.07 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
services:
app:
image: public.ecr.aws/${DEV_ECR_REGISTRY_ALIAS}/distribute/dev:latest
container_name: distribute-container
restart: always
ports:
- "80:8080"
- "9292:9292"
volumes:
- ./logs/all:/logs/all # ALL_LOG 파일 경로 마운트
- ./logs/warn:/logs/warn # WARN_LOG 파일 경로 마운트
- ./logs/error:/logs/error # ERROR_LOG 파일 경로 마운트
# - ./promtail/promtail-config.yml:/app/promtail-config.yml
networks:
- my_network
environment:
- DEV_ECR_REGISTRY_ALIAS=${DEV_ECR_REGISTRY_ALIAS}
prometheus:
image: prom/prometheus:latest
container_name: prometheus
volumes:
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
ports:
- '9090:9090'
command:
- '--web.enable-lifecycle'
- '--config.file=/etc/prometheus/prometheus.yml'
restart: always
networks:
- my_network
grafana:
image: grafana/grafana:latest
container_name: grafana
restart: always
ports:
- 3000:3000
volumes:
- grafana-data:/var/lib/grafana
- grafana-provisioning:/etc/grafana/provisioning
networks:
- my_network
promtail:
container_name: promtail
image: grafana/promtail:latest
restart: always
ports:
- '9080:9080'
volumes:
- ./promtail/promtail-config.yml:/etc/promtail/promtail-config.yml
- ./logs/all:/var/logs/all
- ./logs/warn:/var/logs/warn
- ./logs/error:/var/logs/error
command:
- -config.file=/etc/promtail/promtail-config.yml
depends_on:
- loki
networks:
- my_network
loki:
image: grafana/loki:latest
container_name: loki
ports:
- "3100:3100"
command:
- '--config.file=/etc/loki/loki-config.yml'
- '--config.expand-env=true'
volumes:
- ./loki/loki-config.yml:/etc/loki/loki-config.yml
restart: always
networks:
- my_network
networks:
my_network: # 네트워크 정의
driver: bridge
volumes:
grafana-data:
external: true
grafana-provisioning:
external: true