mirror of
https://github.com/deuill/coreos-home-server.git
synced 2024-09-21 21:50:46 +00:00
21 lines
492 B
Plaintext
21 lines
492 B
Plaintext
[Unit]
|
|
Description=Navidrome music server
|
|
Wants=container-build@%N.service container-volume@%N.service
|
|
After=container-build@%N.service container-volume@%N.service
|
|
|
|
[Container]
|
|
AutoUpdate=local
|
|
ContainerName=%N
|
|
HealthCmd=timeout 5s curl --fail --silent --show-error -o /dev/null localhost:4533/ping
|
|
Image=localhost/%N:latest
|
|
Network=internal
|
|
PodmanArgs=--sdnotify=healthy
|
|
Volume=%N:/var/lib/%N:z
|
|
Volume=%N-music:/music:z,ro
|
|
|
|
[Service]
|
|
Restart=on-failure
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|