services: qbittorrent: image: ghcr.io/hotio/qbittorrent:release-5.1.4 container_name: qbittorrent privileged: true environment: - PUID=${PUID} - PGID=${PGID} - TZ=${TZ} - UMASK=${UMASK} volumes: - /path/to/qbittorrent:/config - /path/to/media/torrents:/data/torrents ports: - ${HTTP_PORT}:8080 - ${HTTP_PORT1}:8999 - ${HTTP_PORT1}:8999/udp restart: always healthcheck: test: ["CMD-SHELL", "curl -f http://localhost:8080 || exit 1"] interval: 15s timeout: 5s retries: 5 start_period: 30s networks: - media-net networks: media-net: external: true