2023-11-19 12:49:58 +00:00
|
|
|
[Unit]
|
|
|
|
Description=Grafana Visualization and Analytics
|
|
|
|
Wants=container-build@%N.service container-volume@%N.service prometheus.service lldap.service
|
|
|
|
After=container-build@%N.service container-volume@%N.service prometheus.service lldap.service
|
|
|
|
|
|
|
|
[Container]
|
|
|
|
AutoUpdate=local
|
|
|
|
ContainerName=%N
|
|
|
|
EnvironmentFile=%E/coreos-home-server/%N/%N.env
|
|
|
|
HealthCmd=timeout 5s curl --fail --silent --show-error -o /dev/null localhost:8080/api/health
|
|
|
|
Image=localhost/%N:latest
|
|
|
|
Network=internal
|
|
|
|
PodmanArgs=--sdnotify=healthy
|
|
|
|
Volume=%N:/var/lib/%N:z
|
|
|
|
|
|
|
|
[Service]
|
2023-12-14 12:15:50 +00:00
|
|
|
TimeoutStartSec=180
|
2023-11-19 12:49:58 +00:00
|
|
|
Restart=on-failure
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|