services/prometheus/node-exporter/docker-compose.yml

17 lines
330 B
YAML
Raw Normal View History

2021-02-24 12:31:41 +01:00
---
version: '3.8'
services:
node_exporter:
2021-03-09 11:07:46 +01:00
image: ${NODE_EXPORTER_IMAGE:-quay.io/prometheus/node-exporter:v1.1.2}
2021-02-24 12:31:41 +01:00
container_name: node_exporter
command:
- '--path.rootfs=/host'
network_mode: host
pid: host
restart: unless-stopped
expose:
- 9100
volumes:
- '/:/host:ro,rslave'