prometheus-textfile-collectors/docker-compose.yml

26 lines
541 B
YAML
Raw Normal View History

2021-06-12 20:16:15 +00:00
version: '3.7'
services:
app:
restart: always
2021-06-14 08:27:22 +00:00
image: prom/node-exporter:latest
2021-06-12 20:16:15 +00:00
command:
- --path.rootfs=/host
- --collector.textfile.directory=/host/run/node-exporter
network_mode: host
pid: host
restart: always
volumes:
- '/:/host:ro,rslave'
collectors:
2021-06-14 08:27:22 +00:00
image: kspaceee/prometheus-textfile-collectors:latest
2021-06-12 20:16:15 +00:00
restart: always
network_mode: none
privileged: true
volumes:
- '/dev:/dev'
- '/sys:/sys:ro,rslave'
- '/run/node-exporter:/run/node-exporter'