Skip to content

niiv0832/TorrentMonitor_Dockerfile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

All-In-One Docker container with TorrentMonitor, Rclone, Http-knocking

TorrentMonitor

version 1.8.8, nginx, php7.3, sqlite at Debian base Docker container

TorrentMonitor - monitoring torrent site, downloads torrent files based on a user-defined filter, and much more.

For more informations about TorrentMonitor read TorrentMonitor official site and github project page or join to Project Telegram chat.

TorrentMonitor support next trackers: anidub.com, animelayer.ru, baibako.tv, booktracker.org, casstudio.tv, hamsterstudio.org, kinozal.me, lostfilm.tv, newstudio.tv, nnmclub.to, pornolab.net, riperam.org, rustorka.com, rutor.info, rutracker.org, tfile.cc, tracker.0day.kiev.ua, tv.mekc.info.

Rclone

version 1.57.0

Rclone - is a command line program to sync files and directories to and from cloud storage (for example Google Drive).

For more informations about read Rclone official site and github project page.

Http-knocking

version 0.8.4

HTTP-Knocking hides a Web server and open it by knocking sequence: Hide Web server until your knocks.

For more informations about read github project page.

This combo Docker container buid for use at publick server (like VPS). For use at private network you may use lite version with standalone TorrentMonitor (docker pull niiv0832/tormon:lite).

Links:

Link on docker hub: niiv0832/tormon

Link on github: niiv0832/TorrentMonitor_Dockerfile

Usage

docker run -d --name torrentmonitor --restart=always -p 55443:2000 -v $YOUR_PATH_TO_CONFIG_DIR$:/scripts -v $YOUR_PATH_TO_TORRENTS_DIR$:/data/htdocs/torrents -v $YOUR_PATH_TO_SQLITE.DB_DIR$:/data/htdocs/db -t niiv0832/tormon:latest

$YOUR_PATH_TO_CONFIG_DIR$:/scripts - thsi directory must contain config and script files (all files name must be as writedown) for:

rclone:

  • rclone.conf - files with rclone configurations (you may read at Rclone official site HOWTO create config for different cloud service.

Example of rclone.conf:

[remote]
type = drive
scope = drive
token = {"access_token":"$.......past..here....$","token_type":"Bearer","refresh_token":"$.......past..here....$","expiry":"2100-12-59T22:42:54.679710289+03:00"}
root_folder_id = $.......past..here....$
  • rclonesync.sh - script to run rclone (this script added to crontab)

Example of rclonesync.sh:

#!/bin/sh
findfileL=$(ls -l /data/htdocs/torrents | grep -v ^l | wc -l | sed 's/[^0-9]*//g')
if [ "$findfileL" -ne "0" ]
then
rclone move /data/htdocs/torrents/ remote:/vpssync/torrents/
else
echo "Nothing to upload"
fi
  • http-knocking

    • httpknocking.sh - script with config to run http-knocking

    Example of httpknocking.sh:

http-knocking -d --port=2000 \
                              --target-host=localhost \
                              --target-port=80 \
                              --open-knocking="/alpha,/foxtrot,/lima" \
                              --close-knocking="/close,/out" \
                              --auto-close-millis=600000 & \ 
exit 0

http-knocking port must be 2000 and target-porr must be 80

  • $YOUR_PATH_TO_TORRENTS_DIR$:/data/htdocs/torrents - to this folder TorrentMonitor will downloade .torrent files.

  • $YOUR_PATH_TO_SQLITE.DB_DIR$:/data/htdocs/db - at this folder TorrentMonitor will store sqlite database, so DB will be save even you updating Docker container.

At you local comuters with torrent clients you may run script (put at crontab) like that:

Example of local script to receive remote files and put it in autoload folder:

#!/bin/bash
findfile=$(rclone size remote:/torrents | grep objects | sed 's/[^0-9]*//g')
if [ "$findfile" -ne "0" ]
then
rclone move remote:/vpssync/btautoload /usr/torrentclient/.btautoload
else
echo "Nothing for download"
fi

For Lite version

docker run -d --name tormonlite --restart=always -p 55443:80 -v $YOUR_PATH_TO_TORRENTS_DIR$:/data/htdocs/torrents -v $YOUR_PATH_TO_SQLITE.DB_DIR$:/data/htdocs/db -t niiv0832/tormon:lite

For lite version only 2 directory need to map with container:

  • $YOUR_PATH_TO_TORRENTS_DIR$:/data/htdocs/torrents - to this folder TorrentMonitor will downloade .torrent files.

  • $YOUR_PATH_TO_SQLITE.DB_DIR$:/data/htdocs/db - at this folder TorrentMonitor will store sqlite database, so DB will be save even you updating Docker container.