-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
124 lines (115 loc) · 3.3 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
version: "2.1"
volumes:
prometheus_data: {}
grafana_data: {}
networks:
monitoring:
services:
prometheus:
image: prom/prometheus:latest
container_name: prometheus
hostname: prometheus
restart: always
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
- '--web.console.libraries=/usr/share/prometheus/console_libraries'
- '--web.console.templates=/usr/share/prometheus/consoles'
volumes:
- ./prometheus/:/etc/prometheus/
- prometheus_data:/prometheus
ports:
- 9090:9090
networks:
- monitoring
grafana:
image: grafana/grafana:latest
container_name: grafana
hostname: grafana
restart: always
environment:
- GF_USERS_ALLOW_SIGN_UP=false
volumes:
- ./grafana/datasource.yml:/etc/grafana/provisioning/datasources/datasource.yaml
- grafana_data:/var/lib/grafana
ports:
- 3000:3000
depends_on:
- prometheus
networks:
- monitoring
blackbox-exporter:
image: prom/blackbox-exporter:latest
container_name: blackbox-exporter
hostname: blackbox-exporter
volumes:
- ./blackbox/config.yml:/etc/blackbox_exporter/config.yml
restart: unless-stopped
ports:
- 9115:9115
extra_hosts:
- "ecatrom9909:172.22.0.1"
depends_on:
- prometheus
networks:
- monitoring
alertmanager:
image: prom/alertmanager:v0.12.0
container_name: alertmanager
hostname: alertmanager
ports:
- 9093:9093
volumes:
- ./alertmanager/:/etc/alertmanager/
restart: always
depends_on:
- prometheus
networks:
- monitoring
kafka-lag-exporter:
container_name: kafka-lag-exporter
hostname: kafka-lag-exporter
ports:
- 8000:8000
build:
context: kafka-lag-exporter
dockerfile: Dockerfile
volumes:
- ./kafka-lag-exporter/conf/application.conf:/opt/docker/conf/application.conf
- ./kafka-lag-exporter/conf/logback.xml:/opt/docker/conf/logback.xml
environment:
KAFKA_PASS: 'xxx'
KAFKA_USER: 'xxx'
depends_on:
- prometheus
networks:
- monitoring
pushgateway:
image: prom/pushgateway:latest
container_name: pushgateway
hostname: pushgateway
ports:
- 9091:9091
restart: always
depends_on:
- prometheus
networks:
- monitoring
loki:
image: grafana/loki:2.5.0
container_name: loki
hostname: loki
ports:
- "3100:3100"
command: -config.file=/etc/loki/local-config.yaml
networks:
- monitoring
# promtail:
# image: grafana/promtail:2.5.0
# container_name: promtail
# hostname: promtail
# volumes:
# - /var/log:/var/log
# command: -config.file=/etc/promtail/config.yml
# networks:
# - monitoring