Skip to content

Commit e18c475

Browse files
committed
feat: add docker compose example
Signed-off-by: Aaron U'Ren <aauren@gmail.com>
1 parent 65c6259 commit e18c475

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

examples/docker/compose.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
services:
2+
systemd-exporter:
3+
container_name: systemd-exporter
4+
image: prometheuscommunity/systemd-exporter:main
5+
pull_policy: always
6+
privileged: false
7+
command:
8+
- "--systemd.collector.private"
9+
ports:
10+
- "9558:9558"
11+
user: root
12+
restart: unless-stopped
13+
volumes:
14+
- type: "bind"
15+
source: "/proc"
16+
target: "/host/proc"
17+
read_only: true
18+
- type: "bind"
19+
source: "/run/systemd"
20+
target: "/run/systemd"
21+
read_only: true
22+
- type: "bind"
23+
source: "/var/run"
24+
target: "/var/run"
25+
read_only: true
26+
- type: "bind"
27+
source: "/sys/fs/cgroup"
28+
target: "/sys/fs/cgroup"
29+
read_only: true

0 commit comments

Comments
 (0)