Skip to content

Configuration ​

Torsher keeps its settings in the database and changes them in the control panel. The container needs only a few values to start, listed here.

Environment variables ​

VariableDefaultPurpose
PUID, PGID1000Owner of the files Torsher writes to /data
TZEtc/UTCTime zone
TORSHER_SECRETkey file in /data/dbKey that encrypts saved secrets in the database: indexer API keys, proxy passwords, the TMDB key and notification tokens
SECRET_KEYkey file in /data/dbKey that signs sign-in sessions. If you set it, use a random string of at least 32 characters (openssl rand -hex 32): the server refuses to start with a shorter one
TMDB_ACCESS_TOKENapp key built into the imageYour own TMDB API Read Access Token for the catalog instead of the app key. A key set in Settings → Metadata takes precedence over both
HTTPS_PROXY, HTTP_PROXY, NO_PROXY—Your proxy for outgoing requests until the default route is changed in Settings → Network
API_PORT8080Port inside the container
TRUST_PROXY—Set it when Torsher runs behind a reverse proxy: the proxy's address or subnet (172.18.0.0/16, several separated by commas, or loopback, uniquelocal), or true to trust any. Without it, sign-in attempt limits and the log see every client as the proxy's address. Don't set it without a proxy: a client could then fake its own address
ENGINE_PEER_PORTa random port chosen oncePort the torrent engine accepts peer connections on. Publish it to be reachable from outside. A port changed in Settings → Torrent takes precedence: publish that one instead
DOWNLOADS_PATH, LIBRARY_PATH/data/torrents, /data/libraryDefault downloads and library folders. A folder chosen in Settings → Storage takes precedence
TORSHER_SKIP_PRE_UPDATE_BACKUP—Set to 1 to let an update change the database even when the backup before the update fails. Without that backup a failed update can't be undone
LOG_LEVELinfo, or the level chosen in the panelerror, warn, info or debug. When set, the Verbose logs switch in the panel is unavailable

Keep the key files

Without TORSHER_SECRET, Torsher creates /data/db/secret.key. Losing it makes the saved indexer API keys and notification channel tokens unreadable, and you will have to enter them again. The server's own backups include this key unless you protect them with a password.

Volumes ​

Path in the containerWhat's inside
/dataEverything Torsher writes by default. See Docker Compose for several disks
/data/dbDatabase, key files, the log (up to 25 MB in five rotating files) and backups in /data/db/backups
/data/torrentsDownloads and the watch cache
/data/libraryWhat you keep, laid out by title
/storageOptional. A big disk for downloads and the library, with the folders chosen in Settings → Storage
/backupsOptional. A second disk or a NAS share for backups, chosen in Settings → Backups
/media/…Your existing folders, mounted read-only (:ro) and added in Library

Ports ​

PortWhat for
8080The showcase at /, the control panel at /panel/ and the API at /api
ENGINE_PEER_PORTOptional. Incoming connections from torrent peers

Health check ​

The server answers GET /api/health, and the image uses it for the Docker health check.

Released under the AGPL-3.0 license. This product uses the TMDB API but is not endorsed or certified by TMDB.
Torsher includes no content: you choose your sources and are responsible for them. Privacy Policy