-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.prometheus.yml
48 lines (46 loc) · 1.22 KB
/
compose.prometheus.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
x-default-policy: &default_policy
restart: unless-stopped
logging:
driver: loki
options:
# FIXME: Change Loki URL
loki-url: "https://loki.cloudnativedays.jp/loki/api/v1/push"
services:
prometheus:
<<: *default_policy
image: prom/prometheus:v2.54.0
command: "--config.file=/etc/prometheus/prometheus.yaml --web.config.file=/etc/prometheus/web.yaml --storage.tsdb.retention.size=80GB"
volumes:
- prometheus-data:/etc/prometheus/data/
ports:
- 9090:9090
node-exporter:
<<: *default_policy
image: prom/node-exporter:latest
container_name: node-exporter
volumes:
- /proc:/host/proc:ro
- /sys:/host/sys:ro
- /:/rootfs:ro
command:
- "--path.procfs=/host/proc"
- "--path.rootfs=/rootfs"
- "--path.sysfs=/host/sys"
- "--collector.filesystem.mount-points-exclude=^/(sys|proc|dev|host|etc)($$|/)"
expose:
- 9100
https-portal:
<<: *default_policy
image: steveltn/https-portal:1
container_name: https-portal
ports:
- '80:80'
- '443:443'
volumes:
- https-portal-data:/var/lib/https-portal
depends_on:
- prometheus
volumes:
prometheus-data:
external: true
https-portal-data: