docker/docker-compose.exporter.yml

18 lines
471 B
YAML
Raw Normal View History

2020-08-27 10:53:30 +02:00
version: '3.2'
services:
node_exporter:
container_name: node_exporter
# Always check if there is a newer stable release:
# https://hub.docker.com/r/prom/node-exporter/tags
image: prom/node-exporter:v0.18.1
command:
- "--path.rootfs=/host"
- "--web.listen-address=127.0.0.1:9100"
network_mode: "host"
pid: "host"
volumes:
- type: "bind"
source: "/"
target: "/host"
read_only: true
restart: unless-stopped