RARBG selfhosted
A Torznab API that can be used with the Servarr stack.
Archival notice
I'm now working on a new project, bitmagnet - A self-hosted BitTorrent indexer, DHT crawler, content classifier and torrent search engine with web UI, GraphQL API and Servarr stack integration.
bitmagnet does everything that rarbg-selfhosted can do, and a lot more. I hope you'll check it out! That said, the setup is more complicated, and if you're only interested in having a Torznab-compatible RARBG API, then rarbg-selfhosted might be a better option for you - it's basic, but it works for the intended purpose, so I'll no longer be developing it.
Thanks for the support!
Quick start
- Obtain a copy of the RARBG SQLite database, I can't help you with that but it's floating around!
- Adapt the following
docker-compose.yml
file to your needs. At a minimum you'll need to point the/rarbg_db.sqlite
volume to the path of your SQLite file, and ensure this container is running in the same Docker network as your Servarr stack containers:
---
version: "3.7"
services:
rarbg-selfhosted:
container_name: rarbg-selfhosted
image: "ghcr.io/mgdigital/rarbg-selfhosted:latest"
# environment:
# - "PATH_SQLITE_DB=/rarbg_db.sqlite" (optional, this is the default value)
# - "PATH_TRACKERS=/trackers.txt" (optional, this is the default value)
# - "DEBUG=1" (optional, useful for troubleshooting)
volumes:
- "/path/to/rarbg_db.sqlite:/rarbg_db.sqlite"
ports:
- "3333:3333"
restart: unless-stopped
- Run
docker-compose up -d
. - The torznab endpoint is now exposed on port
3333
under the path/torznab
. - In Prowlarr, Radarr or Sonarr, you can now add RARBG as a Generic Torznab indexer.
Alternatively, start the container using docker run
:
docker run -v /path/to/rarbg_db.sqlite:/rarbg_db.sqlite -p 3333:3333 ghcr.io/mgdigital/rarbg-selfhosted:latest
Or, install GoLang, clone this repo and run directly:
PATH_SQLITE_DB=/path/to/rarbg_db.sqlite go run .