home-pods/container-qbittorrent.service

38 lines
1.0 KiB
SYSTEMD
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
[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 \
--sdnotify=conmon --replace -d \
--name=qbittorrent \
--privileged \
-e PUID=1000 \
-e PGID=1000 \
-e TZ=Europe/Brussels \
-e "VPN_ENABLED=yes" \
-e "LAN_NETWORK=192.168.1.0/24" \
-e "NAME_SERVERS=8.8.8.8,8.8.4.4" \
-e "VPN_USERNAME=9368404547387870" \
-e "VPN_PASSWORD=m" \
-p 8080:8080 \
-p 8999:8999 \
-p 8999:8999/udp \
-v qbittorrent-appdata:/config:Z \
-v qbittorrent-downloads:/downloads:z \
--label "io.containers.autoupdate=registry" \
docker.io/markusmcnugen/qbittorrentvpn
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