25 lines
499 B
Plaintext
25 lines
499 B
Plaintext
# vim: set ft=systemd :
|
|
[Unit]
|
|
Description=Grafana Loki
|
|
After=network-online.target
|
|
Wants=network-online.target
|
|
StartLimitIntervalSec=1m
|
|
StartLimitBurst=60
|
|
|
|
[Service]
|
|
StateDirectory=%P
|
|
ExecReload=/usr/bin/podman kill --cidfile=%t/%N.cid --signal HUP
|
|
TimeoutStartSec=5m
|
|
Restart=always
|
|
RstartSec=1s
|
|
|
|
[Container]
|
|
Image=docker.io/grafana/loki:2.9.4
|
|
Exec=-config.file=/etc/loki/config.yml
|
|
Volume=%S/%P:/var/lib/loki:rw,Z,U
|
|
Volume=/etc/loki:/etc/loki:ro
|
|
Network=host
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|