From a534092234544a704810d4661ee31d41c5be3b5e Mon Sep 17 00:00:00 2001 From: Alexey Skobkin Date: Fri, 20 Sep 2024 23:34:39 +0300 Subject: [PATCH] transmission. Draft added. --- README.md | 1 + transmission/.env.dist | 24 +++++++++++++++++++++++ transmission/config/.gitignore | 2 ++ transmission/docker-compose.yml | 33 ++++++++++++++++++++++++++++++++ transmission/download/.gitignore | 2 ++ transmission/watch/.gitignore | 2 ++ 6 files changed, 64 insertions(+) create mode 100644 transmission/.env.dist create mode 100644 transmission/config/.gitignore create mode 100644 transmission/docker-compose.yml create mode 100644 transmission/download/.gitignore create mode 100644 transmission/watch/.gitignore diff --git a/README.md b/README.md index ea8c9b1..13a7878 100644 --- a/README.md +++ b/README.md @@ -78,5 +78,6 @@ Not every stack is tested to fully work. | Telegram RSS Bot | ✅ | `miroslavsckaya/tg-rss-bot` | Telegram RSS Bot by @Miroslavsckaya. | [Gitea](https://git.skobk.in/Miroslavsckaya/tg_rss_bot/), [Github Mirror](https://github.com/Miroslavsckaya/tg_rss_bot) | | Tor OBFS4 Bridge | ✅ | `thetorproject/obfs4-bridge` | Tor OBFS4 Bridge for Tor blocking bypass. | [Website](https://community.torproject.org/relay/setup/bridge/), [Gitlab](https://gitlab.torproject.org/tpo/anti-censorship/docker-obfs4-bridge), [Manual](https://community.torproject.org/relay/setup/bridge/docker/) | | Tor Privoxy | ✅ | `registry.gitlab.com/skobkin/torproxy-obfs4` | Tor image with integrated privoxy and OBFS4 bridge support. | [Original image Github](https://github.com/dperson/torproxy), [OBFS4 support image Gitlab](https://gitlab.com/skobkin/torproxy-obfs4) | +| Transmission | ✅ | `lscr.io/linuxserver/transmission` | Torrent client suitable for NAS. | [Github](https://github.com/linuxserver/docker-transmission), [LinuxServer Fleet](https://hub.docker.com/r/linuxserver/transmission) | | Watchtower | ✅ | `containrrr/watchtower` | Docker container auto-update daemon. | [Website](https://containrrr.dev/watchtower/), [Github](https://github.com/containrrr/watchtower) | | Webhook.site | | `webhooksite/webhook.site` | HTTP callback testing tool | [Website](https://webhook.site), [Github](https://github.com/webhooksite/webhook.site) | diff --git a/transmission/.env.dist b/transmission/.env.dist new file mode 100644 index 0000000..6c6b0d2 --- /dev/null +++ b/transmission/.env.dist @@ -0,0 +1,24 @@ +# https://hub.docker.com/r/linuxserver/transmission + +IMAGE_TAG=latest + +AUTH_USER=username +AUTH_PASSWORD=*ChangeThis* + +USER_ID=1000 +GROUP_ID=1000 +#UMASK=022 + +P2P_PORT=6882 +WEB_PORT=9091 + +#NETWORK_MODE=host + +DIR_CONFIG=./config +DIR_DOWNLOAD=./download +DIR_WATCH=./watch + +TIMEZONE=Europe/Moscow + +LOG_MAX_SIZE=5m +LOG_MAX_FILE=5 diff --git a/transmission/config/.gitignore b/transmission/config/.gitignore new file mode 100644 index 0000000..a68d087 --- /dev/null +++ b/transmission/config/.gitignore @@ -0,0 +1,2 @@ +/* +!/.gitignore diff --git a/transmission/docker-compose.yml b/transmission/docker-compose.yml new file mode 100644 index 0000000..9f5a158 --- /dev/null +++ b/transmission/docker-compose.yml @@ -0,0 +1,33 @@ +services: + transmission: + image: 'lscr.io/linuxserver/transmission:${IMAGE_TAG:-latest}' + container_name: 'transmission' + environment: + - 'PUID=${USER_ID:-1000}' + - 'PGID=${GROUP_ID:-1000}' + - 'TZ=${TIMEZONE:-Europe/Moscow}' + #- TRANSMISSION_WEB_HOME= #optional + - 'USER=${AUTH_USER}' + - 'PASS=${AUTH_PASSWORD}' + #- WHITELIST= #optional + - 'PEERPORT=${P2P_PORT:-6882}' + #- HOST_WHITELIST= #optional + env_file: '.env' + volumes: + - '${DIR_CONFIG:-./config}:/config' + - '${DIR_DOWNLOAD:-./download}:/downloads' + # Separate download cache directory in case you store unfinished torrents on SSD + # Use with `"incomplete-dir-enabled": true` in the settings.json. This is `incomplete-dir` parameter. + - '${DIR_TMP_DOWNLOAD:-/dev/null}:${DIR_TMP_DOWNLOAD:-/dev/null}' + - '${DIR_WATCH:-./watch}:/watch' + network_mode: '${NETWORK_MODE:-bridge}' + ports: + - '${WEB_PORT:-9091}:${WEB_PORT:-9091}' + - '${P2P_PORT:-51413}:${P2P_PORT:-51413}' + - '${P2P_PORT:-51413}:${P2P_PORT:-51413}/udp' + restart: unless-stopped + logging: + driver: 'json-file' + options: + max-size: '${LOG_MAX_SIZE:-5m}' + max-file: '${LOG_MAX_FILE:-5}' diff --git a/transmission/download/.gitignore b/transmission/download/.gitignore new file mode 100644 index 0000000..a68d087 --- /dev/null +++ b/transmission/download/.gitignore @@ -0,0 +1,2 @@ +/* +!/.gitignore diff --git a/transmission/watch/.gitignore b/transmission/watch/.gitignore new file mode 100644 index 0000000..a68d087 --- /dev/null +++ b/transmission/watch/.gitignore @@ -0,0 +1,2 @@ +/* +!/.gitignore