自用刷PT 文件服务器 Compose配置

qBittorrent + AList + caddy-docker-proxy + Watchtower

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
services:
  caddy:
    image: lucaslorentz/caddy-docker-proxy
    container_name: caddy
    restart: unless-stopped
    ports:
      - "80:80"
      - "443:443"
    networks:
      - caddy
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock

  qb:
    image: linuxserver/qbittorrent
    container_name: qb
    restart: unless-stopped
    environment:
      - PUID=1000
      - PGID=1000
      - UMASK=002
      - TZ=Asia/Shanghai
      - TORRENTING_PORT=11451
      - DOCKER_MODS=ghcr.io/gabe565/linuxserver-mod-vuetorrent
    volumes:
      - /home/qb:/config
      - /PT/Downloads:/downloads
    ports:
      - 11451:11451
      - 11451:11451/udp
    networks:
      - caddy
    labels:
      caddy: qb.kiyoi.xyz
      caddy.reverse_proxy: "{{upstreams 8080}}"

  dufs:
    image: sigoden/dufs
    container_name: dufs
    restart: always
    volumes:
      - "/PT/Downloads:/data"
    command: "/data --allow-search --allow-archive --compress none"
    networks:
      - caddy
    labels:
      caddy: dufs.kiyoi.xyz
      caddy.reverse_proxy: "{{upstreams 5000}}"

  watchtower:
    image: containrrr/watchtower
    container_name: watchtower
    restart: always
    environment:
      - TZ=Asia/Shanghai
      - WATCHTOWER_CLEANUP=true
      - WATCHTOWER_SCHEDULE=0 30 23 * * *
    networks:
      - caddy
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock

networks:
  caddy:
    external: true
comments powered by Disqus
使用 Hugo 构建
主题 StackJimmy 设计