Skip to content

Commit

Permalink
feat: add docker compose example
Browse files Browse the repository at this point in the history
Signed-off-by: Aaron U'Ren <[email protected]>
  • Loading branch information
aauren committed Oct 31, 2024
1 parent 65c6259 commit e18c475
Showing 1 changed file with 29 additions and 0 deletions.
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

0 comments on commit e18c475

Please sign in to comment.