--- services: qbittorrent: image: lscr.io/linuxserver/qbittorrent:latest container_name: qbittorrent network_mode: "host" environment: - PUID=${PUID} - PGID=${PGID} - TZ=${TZ} - WEBUI_PORT=${WEBUI_PORT} - TORRENTING_PORT=${TORRENTING_PORT} volumes: - /home/rcadmin/docker/qbittorrent/data/config:/config - cifs_mount:/downloads #optional ports: - ${WEBUI_PORT}:8080 - ${TORRENTING_PORT}:6881 - ${TORRENTING_PORT}:6881/udp restart: unless-stopped deploy: placement: constraints: - node.role == manager volumes: cifs_mount: driver: local driver_opts: type: cifs device: //192.168.50.203/Datadisk o: "username=${USERNAME},password=${PASSWORD},vers=3.0,uid=${PUID},gid=${PGID}"