Transmission & AList的一键部署步骤

首先获取transmission-web-control作为页面:

wget https://github.com/ronggang/transmission-web-control/archive/refs/tags/v1.6.1-update1.zip -O transmission-web-control.zip
unzip transmission-web-control.zip
rm -rf web
mkdir web
cp -r transmission-web-control-1.6.1-update1/src web
rm -rf transmission-web-control-1.6.1-update1
rm -rf transmission-web-control.zip

然后使用docker-compose进行部署, 注意自定义对应的密码:

services:
  transmission:
    image: linuxserver/transmission:4.0.0
    container_name: transmission
    environment:
      - PUID=0
      - PGID=0
      - TZ=Asia/Shanghai
      - TRANSMISSION_WEB_HOME=/src
      - USER=transmission
      - PASS=transmission
    volumes:
      - ./web/src:/src
      - ./config:/config
      - ./downloads:/downloads
      - ./watch:/watch
    ports:
      - 9091:9091
      - 51413:51413 
      - 51413:51413/udp
    # not work on mac
    # network_mode: "host" 
    restart: unless-stopped
  alist:
      image: 'xhofe/alist:latest'
      container_name: alist
      volumes:
          - /etc/alist:/opt/alist/data
          - ./downloads:/transmission_download
      ports:
          - '5244:5244'
      environment:
          - PUID=0
          - PGID=0
          - UMASK=022
      restart: unless-stopped