servarr-stack – Rev 1
?pathlinks?
[Unit]
Description=qbittorrent
After=docker.service
Requires=docker.service
StartLimitIntervalSec=0
[Service]
Restart=always
RestartSec=5s
ExecStartPre=/bin/sh -c '/usr/bin/docker network create entertainment || true'
ExecStartPre=/usr/bin/docker pull lscr.io/linuxserver/qbittorrent:latest
ExecStart=/usr/bin/docker run --name=qbittorrent \
--rm \
--hostname qbittorrent \
--net=entertainment \
--interactive \
--user 0:0 \
-p 8123:8123 \
-p 62296:62296 \
-p 62296:62296/udp \
-e TZ=Etc/UTC \
-e TORRENTING_PORT=62296 \
-e WEBUI_PORT=8123 \
-v /mnt/swarm/docker/data/qbittorrent/:/config \
-v /mnt/swarm/downloads/:/downloads \
-l traefik.http.services.qbittorrent.loadbalancer.server.port=8123 \
lscr.io/linuxserver/qbittorrent:latest
ExecStop=/usr/bin/docker stop qbittorrent
ExecStop=/usr/bin/docker rm -f qbittorrent
TimeoutSec=300
Environment=DOCKER_CONFIG=/etc/docker
[Install]
WantedBy=multi-user.target