-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
46 lines (40 loc) 路 991 Bytes
/
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
# @format
version: "3.9"
volumes:
prometheus_data:
grafana_data:
linux-health:
container-health:
services:
prometheus:
container_name: prometheus
hostname: prometheus
image: prom/prometheus
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
- prometheus_data:/prometheus
command:
- "--config.file=/etc/prometheus/prometheus.yml"
ports:
- 9090:9090
links:
- container:container
- linux:linux
grafana:
container_name: grafana
hostname: grafana
image: grafana/grafana
volumes:
- grafana_data:/var/lib/grafana
- ./grafana_datasources.yml:/etc/grafana/provisioning/datasources/all.yaml
- ./grafana_config.ini:/etc/grafana/config.ini
ports:
- 3000:3000
linux:
extends:
file: ./modules/linux-heartbit/linux.yml
service: linux-health
container:
extends:
file: ./modules/container-heartbit/container.yml
service: container-health