-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
66 lines (59 loc) · 1.29 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
version: '3.3'
services:
prometheus:
image: prom/prometheus
networks:
- monitoring-network
volumes:
- ${PWD}/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
ports:
- "9090:9090"
grafana:
image: grafana/grafana
networks:
- monitoring-network
ports:
- "3000:3000"
volumes:
- ${PWD}/grafana/provisioning:/etc/grafana/provisioning
- ${PWD}/grafana/dashboards:/var/lib/grafana/dashboards
depends_on:
- prometheus
node-exporter:
image: "prom/node-exporter"
networks:
- monitoring-network
ports:
- "9100:9100"
depends_on:
- prometheus
mysql:
image: "mysql"
networks:
- monitoring-network
environment:
- MYSQL_ROOT_PASSWORD=secret
- MYSQL_DATABASE=monitoring
mysql-exporter:
image: "prom/mysqld-exporter"
networks:
- monitoring-network
ports:
- "9104:9104"
environment:
- DATA_SOURCE_NAME=root:secret@(mysql:3306)/
depends_on:
- mysql
micrometer-app:
image: "docker.io/library/micrometer:0.0.1-SNAPSHOT"
networks:
- monitoring-network
ports:
- "8080:8080"
depends_on:
- "mysql"
environment:
- spring.datasource.url=jdbc:mysql://mysql:3306/monitoring?useSSL=false
networks:
monitoring-network:
driver: bridge