servarr-stack – Rev 2

Subversion Repositories:
Rev:
[Unit]
Description=Whisparr
After=docker.service prowlarr.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 localhost:5000/whisparr:latest
ExecStart=/usr/bin/docker run --name=whisparr \
  --rm \
  --hostname whisparr \
  --net=entertainment \
  --interactive \
  --user 0:0 \
  --health-cmd 'curl -f http://localhost:6969/whisparr/api/v3/health?apiKey=API_KEY || exit 1' \
  --health-interval 1m \
  --health-retries 3 \
  --health-timeout 10s \
  --health-start-period 60s \
  -p 6969:6969 \
  -v /mnt/swarm/docker/data/whisparr:/config \
  -v /mnt/archie/Pornography:/data \
  -v /mnt/swarm/downloads:/downloads \
 localhost:5000/whisparr:latest
ExecStop=/usr/bin/docker stop whisparr
ExecStop=/usr/bin/docker rm -f whisparr
TimeoutSec=300
Environment=DOCKER_CONFIG=/etc/docker

[Install]
WantedBy=multi-user.target