servarr-stack – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | [Unit] |
2 | Description=Sonarr |
||
3 | After=docker.service prowlarr.service rtorrent.service gotify.service |
||
4 | Requires=docker.service |
||
5 | StartLimitIntervalSec=0 |
||
6 | Wants=prowlarr.service rtorrent.service gotify.service |
||
7 | |||
8 | [Service] |
||
9 | Slice=servarr.slice |
||
10 | Restart=always |
||
11 | RestartSec=5s |
||
12 | ExecStartPre=/bin/sh -c '/usr/bin/docker network create entertainment || true' |
||
13 | ExecStartPre=/usr/bin/docker pull lscr.io/linuxserver/sonarr:latest |
||
14 | ExecStart=/usr/bin/docker run --name=sonarr \ |
||
15 | --rm \ |
||
16 | --hostname sonarr \ |
||
17 | --net=entertainment \ |
||
18 | --interactive \ |
||
19 | --user 0:0 \ |
||
20 | --health-cmd 'curl -f http://localhost:8989/api/v3/health?apikey=API_KEY || exit 1' \ |
||
21 | --health-interval 1m \ |
||
22 | --health-retries 3 \ |
||
23 | --health-timeout 10s \ |
||
24 | --health-start-period 60s \ |
||
25 | -e PUID=1000 \ |
||
26 | -e PGID=1000 \ |
||
27 | -e TZ=Etc/UTC \ |
||
28 | -p 8989:8989 \ |
||
29 | -v /mnt/swarm/docker/data/sonarr:/config \ |
||
30 | -v /mnt/archie/Shows:/tv \ |
||
31 | -v /mnt/swarm/downloads/:/downloads \ |
||
32 | lscr.io/linuxserver/sonarr:latest |
||
33 | ExecStop=/usr/bin/docker stop sonarr |
||
34 | ExecStop=/usr/bin/docker rm -f sonarr |
||
35 | TimeoutSec=300 |
||
36 | Environment=DOCKER_CONFIG=/etc/docker |
||
37 | |||
38 | [Install] |
||
39 | WantedBy=multi-user.target |