change paths

This commit is contained in:
2025-02-28 19:11:37 -06:00
parent 9b3ee68593
commit 4623aa9299
2 changed files with 2 additions and 8 deletions

View File

@@ -4,14 +4,10 @@ services:
image: quay.io/prometheus/node-exporter:v1.9.0
container_name: node-exporter
command:
- '--path.procfs=/host/proc'
- '--path.rootfs=/rootfs'
- '--path.sysfs=/host/sys'
ports:
- 9100:9100
pid: host
restart: always
volumes:
- /proc:/host/proc:ro
- /sys:/host/sys:ro
- /:/rootfs:ro

View File

@@ -21,12 +21,10 @@ services:
image: quay.io/prometheus/node-exporter:v1.9.0
container_name: node-exporter
command:
- '--path.procfs=/host/proc'
- '--path.rootfs=/rootfs'
- '--path.sysfs=/host/sys'
ports:
- 9100:9100
pid: host
restart: always
volumes:
- /proc:/host/proc:ro
- /sys:/host/sys:ro
- /:/rootfs:ro