{"id":13573317,"url":"https://github.com/looselyrigorous/docker-rtorrent","last_synced_at":"2025-04-04T12:30:38.461Z","repository":{"id":53470052,"uuid":"106138020","full_name":"looselyrigorous/docker-rtorrent","owner":"looselyrigorous","description":"A bare-bones docker container for headless rTorrent based on Alpine Linux","archived":false,"fork":false,"pushed_at":"2021-03-29T21:25:30.000Z","size":30,"stargazers_count":25,"open_issues_count":1,"forks_count":11,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-01T13:09:41.500Z","etag":null,"topics":["alpine","alpine-linux","docker","flood","rtorrent","rutorrent"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/looselyrigorous.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-10-07T23:47:54.000Z","updated_at":"2025-01-17T07:44:53.000Z","dependencies_parsed_at":"2022-08-18T01:55:09.185Z","dependency_job_id":null,"html_url":"https://github.com/looselyrigorous/docker-rtorrent","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/looselyrigorous%2Fdocker-rtorrent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/looselyrigorous%2Fdocker-rtorrent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/looselyrigorous%2Fdocker-rtorrent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/looselyrigorous%2Fdocker-rtorrent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/looselyrigorous","download_url":"https://codeload.github.com/looselyrigorous/docker-rtorrent/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247179353,"owners_count":20897017,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["alpine","alpine-linux","docker","flood","rtorrent","rutorrent"],"created_at":"2024-08-01T15:00:33.116Z","updated_at":"2025-04-04T12:30:38.455Z","avatar_url":"https://github.com/looselyrigorous.png","language":"Dockerfile","funding_links":[],"categories":["Dockerfile"],"sub_categories":[],"readme":"# rTorrent on Alpine\nThis is a bare-bones docker container for rTorrent.  The GUI output is locked out, instead a unix socket is exposed for you to use with a plain webserver, [ruTorrent](https://github.com/Novik/ruTorrent)/[Flood](https://github.com/jfurrow/flood) or what have you.\n\n## Configuration\n\nThe container creates a \"sane defaults\" configuration that is tailored to the technicalities of docker (and this specific container). You are encouraged (but not required) to use it. You can bootstrap it to a config volume by running the container like so:  `docker run --rm -v \"$(pwd)/config:/config\" looselyrigorous/rtorrent bootstrap`\n\n## Running\n\nYou could use `docker` for this but I prefer compose files. Nevertheless, you can use something like this\n\n```\ndocker run -itd \\\n\t-v ./downloads:/downloads \\\n\t-v ./session:/session \\\n\t-v ./watch:/watch \\\n\t-v ./config:/config \\\n\t-v rtorrent-sock:/socket \\\n\t-p 49161:49161 \\\n\t-p 49161:49161/udp \\\n\t-e PUID=1000 -e PGID=1000 \\\n\tlooselyrigorous/rtorrent:0.3.3\n```\n\nLook like a pain in the ass to paste and edit? Well that's because **it is**. Just use a compose file:\n\n```yaml\nversion: \"3\"\nservices:\n  rtorrent:\n    image: looselyrigorous/rtorrent:0.3.3\n    volumes:\n      - \"./downloads:/downloads\"\n      - \"./session:/session\"\n      - \"./watch:/watch\"\n      - \"./config:/config\"\n      - \"rtorrent-sock:/socket\"\n    ports:\n      - \"49161:49161\"\n      - \"49161:49161/udp\"\n    environment:\n      - PUID=1000\n      - PGID=1000\nvolumes:\n  rtorrent-sock: {}\n```\n\nSave it as `docker-compose.yml` . Now all you have to do is `docker-compose up -d` and you're off to the races. There are docker-compose files in the compose directory for more complete setups.\n\n## Volumes\n\n| Volume     | Explanation                              |\n| ---------- | ---------------------------------------- |\n| /downloads | Your downloads.                          |\n| /session   | rTorrent specific folder. Used for persistence accross restarts |\n| /watch     | Watch folder for .torrent files          |\n| /config    | rTorrent configuration                   |\n| /socket    | The rTorrent Unix socket                 |\n\n## Environment Variables\n\nBefore attempting to launch the container, you should make sure that the volumes you mount are owned by the same UID/GID's you provide as env vars. The container will chown all dirs except /downloads. So just chown your Downloads folder, then set PUID and PGID accordingly, and it just works™.\n\n## Ports\n\nThe container exposes 49160/udp for DHT and 49161/{tcp,udp} for incoming connections. DHT is disabled by default but it's fairly trivial to enable it.  The XMLRPC port is **not** enabled on rTorrent and therefore not exposed. This is a bad idea *anyway* cause it doesn't support any kind of authentication. You can instead forward requests to the socket through an nginx proxy with digest authentication.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flooselyrigorous%2Fdocker-rtorrent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flooselyrigorous%2Fdocker-rtorrent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flooselyrigorous%2Fdocker-rtorrent/lists"}