自用刷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
66
67
68
69
70
71
72
73
74
75
76
77
78
version: '3.9'
services:

  qb:
    image: linuxserver/qbittorrent
    container_name: qb
    restart: unless-stopped
    environment:
      - PUID=1000
      - PGID=1002
      - UMASK=002
      - TZ=Asia/Shanghai
      - DOCKER_MODS=arafatamim/linuxserver-io-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}}"

  alist:
    image: xhofe/alist
    container_name: alist
    restart: always
    environment:
      - PUID=1001
      - PGID=1002
      - UMASK=002
      - TZ=Asia/Shanghai
    volumes:
      - /home/alist:/opt/alist/data
      - /PT/Downloads:/downloads
    networks:
      - caddy
    labels:
      caddy: alist.kiyoi.xyz
      caddy.reverse_proxy: "{{upstreams 5244}}"

  caddy:
    image: lucaslorentz/caddy-docker-proxy:ci-alpine
    container_name: caddy
    restart: unless-stopped
    ports:
      - 80:80
      - 443:443
    environment:
      - CADDY_INGRESS_NETWORKS=caddy
    networks:
      - caddy
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - caddy_data:/data

  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

volumes:
  caddy_data:
    external: true
comments powered by Disqus
Built with Hugo
主题 StackJimmy 设计