Transmission in docker

Transmission + Flexget 实现RSS自动下载

vim docker-compose.yml

version: "2"
services:
  bt:
    restart: unless-stopped
    image: linuxserver/transmission
    container_name: bt
    ports:
      - "51413:51413/udp"
      - "51413:51413/tcp"
      - "9091:9091"
    volumes:
      - ./config:/config
      - /data/public/watch:/watch
      - /data/public/downloads:/downloads
      - /data/public/incomplete:/incomplete
    environment:
      - TZ=Asia/Shanghai
      - PGID=0
      - PUID=0
      - VIRTUAL_HOST=jia.bt
      - VIRTUAL_PORT=9091
    networks:
      nginx-proxy:
        ipv4_address: 172.21.0.20

  flexget:
    restart: unless-stopped
    image: kmb32123/flexget-dockerfile:alpine-python3
    container_name: flexget
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - ./flexget:/flexget
      - /data/public/watch:/watch
    network_mode: "container:bt"


networks:
  nginx-proxy:
   external:
      name: nginx-proxy

vim flexget/config.yml

templates:
  global:
    accept_all: yes
  bt:
    transmission:
      host: 172.21.0.20
      port: 9091

tasks:

  movie:
    rss: https://tp.m-team.cc/torrentrss.php?https=1&rows=10&cat419=1&cat421=1&linktype=dl&passkey=
    template:
      - bt
    set:
      path: /downloads/movie/normal

  adult:
    rss: https://tp.m-team.cc/torrentrss.php?https=1&rows=10&cat430=1&cat426=1&cat432=1&cat412=1&cat436=1&sta1=1&sta6=1&pro1=1&pro3=1&pro4=1&pro5=1&pro6=1&linktype=dl&passkey=
    template:
      - bt
    set:
      path: /downloads/movie/18

  TV:
    rss: https://tp.m-team.cc/torrentrss.php?https=1&rows=10&cat402=1&cat438=1&linktype=dl&passkey=
    template:
      - bt
    set:
      path: /downloads/TV

  music:
    rss: https://tp.m-team.cc/torrentrss.php?https=1&rows=10&cat406=1&cat408=1&cat434=1&linktype=dl&passkey=
    template:
      - bt
    set:
      path: /downloads/music

schedules:
  - tasks: [movie,adult,TV,music]
    interval:
       minutes: 30
Show Comments