Skip to content

Commit

Permalink
node-exporter: bind service to docker
Browse files Browse the repository at this point in the history
  • Loading branch information
saltydk committed Jan 22, 2024
1 parent c026dcc commit 60486a9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion roles/node_exporter/templates/node_exporter.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@

[Unit]
Description=Node Exporter
After=network-online.target
BindsTo=docker.service
After=docker.service

[Service]
User={{ user.name }}
Expand Down

0 comments on commit 60486a9

Please sign in to comment.