Files
infrastructure/hosts/ps10rp/node-exporter/compose.yaml
Alex Lebens 03db01be8b
Some checks failed
lint-test-docker / docker-lint (push) Failing after 6s
process-issues / process-issues (push) Failing after 8s
process-pull-requests / process-pull-requests (push) Failing after 12s
renovate / renovate (push) Successful in 2m39s
specify interface
2025-06-10 17:01:37 -05:00

34 lines
923 B
YAML

---
services:
tailscale-node-exporter:
image: ghcr.io/tailscale/tailscale:v1.84.0
container_name: tailscale-node-exporter
cap_add:
- net_admin
- sys_module
environment:
- TS_STATE_DIR=/var/lib/tailscale
- TS_ENABLE_METRICS=true
- TS_HOSTNAME=node-exporter-ps10rp
- TS_SERVE_CONFIG=/config/serve.json
network_mode: service:node-exporter
restart: always
volumes:
- tailscale:/var/lib/tailscale
- ${PWD}/serve.json:/config/serve.json
devices:
- /dev/net/tun:/dev/net/tun
node-exporter:
image: quay.io/prometheus/node-exporter:v1.9.1
container_name: node-exporter
command:
- '--path.rootfs=/rootfs'
pid: host
restart: always
volumes:
- /:/rootfs:ro
volumes:
tailscale: