You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
824 B
41 lines
824 B
[Unit]
|
|
Description=qBittorrent client
|
|
Wants=network.target
|
|
After=network.target
|
|
RequiresMountsFor=/var/lib/virtiofs/ssd
|
|
RequiresMountsFor=/var/lib/virtiofs/hdd
|
|
|
|
[Container]
|
|
ContainerName=qbittorrent
|
|
|
|
# Image
|
|
Image=qbittorrent.image
|
|
AutoUpdate=registry
|
|
|
|
# Security
|
|
User=10017
|
|
Group=10000
|
|
|
|
# Storage
|
|
Volume=/var/lib/virtiofs/ssd/qbittorrent/config:/config:z
|
|
Volume=/var/lib/virtiofs/ssd/qbittorrent/incomplete:/incomplete:z
|
|
Volume=/var/lib/virtiofs/hdd:/data:z
|
|
|
|
# Network
|
|
AddCapability=CAP_NET_BIND_SERVICE
|
|
Network=host
|
|
|
|
# Configuration
|
|
Environment=PUID=10017 PGID=10000 TZ=Etc/UTC WEBUI_PORT=8080
|
|
Entrypoint=/app/qbittorrent-nox
|
|
Exec=--webui-port=8080
|
|
|
|
# Health check
|
|
HealthCmd=curl -f http://127.0.0.1:8080/health
|
|
HealthInterval=30s
|
|
HealthTimeout=10s
|
|
HealthStartPeriod=30s
|
|
HealthRetries=3
|
|
|
|
[Install]
|
|
WantedBy=seedbox.target
|
|
|