cfg/templates/unifi/unifi_exporter.container

33 lines
650 B
Plaintext

[Unit]
Description=Prometheus metrics exporter for Unifi Controller
Wants=unifi.service
After=unifi.service
[Container]
Image=docker.io/jessestuart/unifi_exporter:v0.4.0
Volume=/etc/unifi_exporter.yml:/etc/unifi_exporter.yml:ro
NoNewPrivileges=yes
Exec=-config.file /etc/unifi_exporter.yml
User=200
Group=200
VolatileTmp=yes
Pod=unifi.pod
PublishPort=9130:9130
[Service]
Restart=always
RestartSec=2
PrivateTmp=yes
ProtectClock=yes
ProtectHome=yes
ProtectKernelModules=yes
ProtectProc=invisible
ProtectSystem=strict
ReadWritePaths=/run
ReadWritePaths=/var/lib/containers/storage
RestrictRealtime=yes
UMask=0077
[Install]
WantedBy=multi-user.target