From e1e1f47e9e21b4f464c915f72ae872952e1f66e0 Mon Sep 17 00:00:00 2001 From: Aaron U'Ren Date: Thu, 31 Oct 2024 15:12:43 -0500 Subject: [PATCH] feat: add docker compose example --- examples/docker/compose.yaml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 examples/docker/compose.yaml diff --git a/examples/docker/compose.yaml b/examples/docker/compose.yaml new file mode 100644 index 0000000..b565e0c --- /dev/null +++ b/examples/docker/compose.yaml @@ -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