-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
58 lines (58 loc) · 1.47 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
version: "3"
services:
server:
image: quay.io/prometheus/prometheus:v2.47.0
volumes:
- ./config/prometheus.yml:/config/prometheus.yml
- ./config/rules/:/config/rules/
command: "--config.file=/config/prometheus.yml --storage.tsdb.retention=30d"
ports:
- 127.0.0.1:9090:9090
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "10"
restart: always
alertmanager:
image: quay.io/prometheus/alertmanager:v0.26.0
volumes:
- ./config/alertmanager.yml:/config/alertmanager.yml
command: "--config.file=/config/alertmanager.yml --log.level=debug"
ports:
- 127.0.0.1:9093:9093
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "10"
restart: always
blackbox:
image: quay.io/prometheus/blackbox-exporter:v0.24.0
volumes:
- ./config/blackbox.yml:/config/blackbox.yml
command: "--config.file=/config/blackbox.yml"
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "10"
restart: always
grafana:
image: grafana/grafana:11.1.0
depends_on:
- server
volumes:
- './data/grafana:/var/lib/grafana'
- './grafana/provisioning:/etc/grafana/provisioning'
restart: always
ports:
- 127.0.0.1:3000:3000
metrics:
image: quay.io/prometheus/node-exporter
pid: "host"
volumes:
- /sys:/sys:ro
expose:
- 9100
restart: always