34 lines
858 B
YAML
34 lines
858 B
YAML
name: qbittorrent
|
|
|
|
services:
|
|
qbittorrent:
|
|
container_name: qbittorrent
|
|
image: lscr.io/linuxserver/qbittorrent:5.2.2
|
|
stop_grace_period: "10s"
|
|
restart: unless-stopped
|
|
environment:
|
|
- PUID=1000
|
|
- PGID=1000
|
|
- TZ=Asia/Shanghai
|
|
- WEBUI_PORT=9000
|
|
- TORRENTING_PORT=6881
|
|
volumes:
|
|
- ./config:/config
|
|
- ./downloads:/downloads
|
|
ports:
|
|
- "6881:6881"
|
|
- "6881:6881/udp"
|
|
networks:
|
|
- proxy
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.docker.network=proxy"
|
|
- "traefik.http.routers.qbittorrent.Rule=Host(`bt.example.com`)"
|
|
- "traefik.http.routers.qbittorrent.service=qbittorrent"
|
|
- "traefik.http.routers.qbittorrent.entrypoints=websecure"
|
|
- "traefik.http.services.qbittorrent.loadBalancer.server.port=9000"
|
|
|
|
networks:
|
|
proxy:
|
|
external: true
|