home-pods/container-qbittorrent.servi...

37 lines
1.0 KiB
Plaintext
Raw Normal View History

2022-07-02 15:04:51 +02:00
[Unit]
Description=Podman container-qbittorrent.service
Wants=network-online.target
After=network-online.target
RequiresMountsFor=%t/containers
#BindsTo=pod-torrent.service
#After=pod-torrent.service
[Service]
Environment=PODMAN_SYSTEMD_UNIT=%n
Restart=on-failure
TimeoutStopSec=70
ExecStartPre=/bin/rm -f %t/%n.ctr-id
ExecStart=/usr/bin/podman run --cidfile=%t/%n.ctr-id --cgroups=no-conmon --rm \
# --pod-id-file %t/pod-torrent.pod-id \
--sdnotify=conmon --replace -d \
--name=qbittorrent \
-e PUID=1000 \
-e PGID=1000 \
-e TZ=Europe/Brussels \
-e WEBUI_PORT=8080 \
-p 10.65.118.183:54822:8080 \
-p 10.65.118.183:57490:6881 \
-p 10.65.118.183:57490:6881/udp \
# --network=vpn-net \
-v qbittorrent-appdata:/config:Z \
-v qbittorrent-downloads:/downloads:z \
--label "io.containers.autoupdate=registry" \
docker.io/linuxserver/qbittorrent
ExecStop=/usr/bin/podman stop --ignore --cidfile=%t/%n.ctr-id
ExecStopPost=/usr/bin/podman rm -f --ignore --cidfile=%t/%n.ctr-id
Type=notify
NotifyAccess=all
[Install]
WantedBy=default.target