Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions examples/docker/compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
services:
systemd-exporter:
container_name: systemd-exporter
image: prometheuscommunity/systemd-exporter:main
pull_policy: always
privileged: false
command:
- "--systemd.collector.private"
ports:
- "9558:9558"
user: root
restart: unless-stopped
volumes:
- type: "bind"
source: "/proc"
target: "/host/proc"
read_only: true
- type: "bind"
source: "/run/systemd"
target: "/run/systemd"
read_only: true
- type: "bind"
source: "/var/run"
target: "/var/run"
read_only: true
- type: "bind"
source: "/sys/fs/cgroup"
target: "/sys/fs/cgroup"
read_only: true