services: qbittorrent: image: docker.io/linuxserver/qbittorrent:latest container_name: qbittorrent deploy: resources: limits: cpus: ${CPU_LIMIT} memory: ${MEMORY_LIMIT} environment: - PUID=${PUID} - PGID=${PGID} - TZ=${TZ} - WEBUI_PORT=${WEBUI_PORT} - TORRENTING_PORT=${TORRENTING_PORT} volumes: - ${APPDATA_PATH}/qbittorrent/config:/config - ${DOWNLOADS_PATH}:/downloads - ${SSD_DOWNLOADS_PATH}:/ssd-downloads ports: - "${WEBUI_PORT}:${WEBUI_PORT}" - "${TORRENTING_PORT}:${TORRENTING_PORT}" - "${TORRENTING_PORT}:${TORRENTING_PORT}/udp" restart: unless-stopped