prometheus-textfile-collectors/docker-compose.yml

26 lines
541 B
YAML

version: '3.7'
services:
app:
restart: always
image: prom/node-exporter:latest
command:
- --path.rootfs=/host
- --collector.textfile.directory=/host/run/node-exporter
network_mode: host
pid: host
restart: always
volumes:
- '/:/host:ro,rslave'
collectors:
image: kspaceee/prometheus-textfile-collectors:latest
restart: always
network_mode: none
privileged: true
volumes:
- '/dev:/dev'
- '/sys:/sys:ro,rslave'
- '/run/node-exporter:/run/node-exporter'