40 lines
988 B
YAML
40 lines
988 B
YAML
---
|
|
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
|
|
resources:
|
|
limits:
|
|
cpus: '2.0'
|
|
memory: 2048M
|
|
#reservations:
|
|
# cpus: '0.0001'
|
|
# memory: 20M
|
|
|
|
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},noserverino"
|