servarr-stack – Rev 1
?pathlinks?
[Unit]
Description=Lidarr
After=docker.service prolwarr.service rtorrent.service gotify.service
Requires=docker.service
StartLimitIntervalSec=0
Wants=prowlarr.service rtorrent.service gotify.service
[Service]
Slice=servarr.slice
Restart=always
RestartSec=5s
ExecStartPre=/bin/sh -c '/usr/bin/docker network create entertainment || true'
ExecStartPre=/usr/bin/docker pull lscr.io/linuxserver/lidarr:latest
ExecStart=/usr/bin/docker run --name=lidarr \
--rm \
--hostname lidarr \
--net=entertainment \
--interactive \
--user 0:0 \
--health-cmd 'curl -f http://localhost:8686/lidarr/api/v1/health?apikey=API_KEY || exit 1' \
--health-interval 1m \
--health-retries 3 \
--health-timeout 10s \
--health-start-period 60s \
-e PUID=1000 \
-e PGID=1000 \
-e TZ=Etc/UTC \
-p 8686:8686 \
-v /mnt/swarm/docker/data/lidarr:/config \
-v /mnt/archie/Music:/music \
-v /mnt/swarm/downloads/:/downloads \
lscr.io/linuxserver/lidarr:latest
ExecStop=/usr/bin/docker stop lidarr
ExecStop=/usr/bin/docker rm -f lidarr
TimeoutSec=300
Environment=DOCKER_CONFIG=/etc/docker
[Install]
WantedBy=multi-user.target