-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
60 lines (56 loc) · 1.48 KB
/
Copy pathcompose.yml
File metadata and controls
60 lines (56 loc) · 1.48 KB
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
services:
mysql:
image: mysql:8.4
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: grafana
MYSQL_USER: grafana
MYSQL_PASSWORD: password
volumes:
- mysql_data:/var/lib/mysql
healthcheck:
test: mysqladmin ping -h localhost -uroot -proot
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
prometheus:
image: prom/prometheus:v3
command:
- --config.file=/etc/prometheus/prometheus.yml
- --storage.tsdb.path=/prometheus
ports:
- 9090:9090
volumes:
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml:ro
- prometheus_data:/prometheus
blackbox:
image: prom/blackbox-exporter:v0.28.0
command:
- --config.file=/etc/blackbox_exporter/config.yml
ports:
- 9115:9115
volumes:
- ./blackbox/config.yml:/etc/blackbox_exporter/config.yml:ro
grafana:
image: grafana/grafana:13.0-slim
environment:
GF_SECURITY_ADMIN_USER: admin
GF_SECURITY_ADMIN_PASSWORD: admin
GF_DATABASE_TYPE: mysql
GF_DATABASE_HOST: mysql:3306
GF_DATABASE_NAME: grafana
GF_DATABASE_USER: grafana
GF_DATABASE_PASSWORD: password
GF_DATABASE_SSL_MODE: disable
ports:
- 3000:3000
volumes:
- ./grafana/provisioning:/etc/grafana/provisioning:ro
- ./grafana/dashboards:/var/lib/grafana/dashboards:ro
depends_on:
mysql:
condition: service_healthy
volumes:
mysql_data:
prometheus_data: