Skip to content

Installation

Leandro Battochio edited this page Nov 8, 2026 · 4 revisions

Docker Compose

trackarr runs as a single container. It keeps its data in a SQLite file in the data volume, so it needs no database server. A minimal docker-compose.yml can look like this:

services:
  trackarr:
    image: ghcr.io/leandrobattochio/trackarr:v0.5.3
    container_name: trackarr
    restart: unless-stopped
    ports:
      - "3012:3000"
    environment:
      ASPNETCORE_ENVIRONMENT: Production
      Hangfire__Directory: /data
      Data__Directory: /data
      APP_TIMEZONE: America/Sao_Paulo
      TZ: America/Sao_Paulo
    volumes:
      - /mnt/user/appdata/trackarr:/data

Adjust the host volume path, published port, timezone, and image tag to fit your environment. Every setting is listed under Configuration. To keep the data in PostgreSQL instead, read Using PostgreSQL.

Build the image from the repository

The Docker setup builds the frontend, publishes the backend and starts the API container, with its data in SQLite in the data volume.

cd docker
docker compose up --build

docker/docker-compose.postgres.yml is the same setup with a PostgreSQL container for the application data (see Using PostgreSQL):

cd docker
docker compose -f docker-compose.postgres.yml up --build

Until v0.4, docker-compose.yml ran PostgreSQL. If you started that stack from this folder, start it with docker-compose.postgres.yml from now on: it uses the same service, container and volume names, so it finds your PostgreSQL data. The plain docker-compose.yml would start trackarr empty on SQLite (your PostgreSQL volume is left as it is).

The build downloads the latest trackarr-plugins main into the image and checks every file against its index.json, so it needs access to GitHub. The PLUGIN_SOURCE_URL build argument (ending with /) points it at a fork or mirror.

Defaults

  • App URL: http://localhost:3000
  • Persistent data volume: trackarr_data
  • Internal data directory: /data
  • Timezone: America/Sao_Paulo

Data storage

trackarr stores:

  • application data in a SQLite file, <Data__Directory>/trackarr.db, or in PostgreSQL when ConnectionStrings__PostgresConnection is set
  • Hangfire job state in its own SQLite file under Hangfire__Directory, whichever database holds the application data
  • plugin YAML files in <Data__Directory>/plugins (official/, overrides/, custom/ and state.json)

In Docker, trackarr.db, the Hangfire files and the plugin definitions (/data/plugins) all live under /data, so they persist with the mounted volume. Settings > About shows the database in use and, for SQLite, the file path.

SQLite runs in WAL mode, so trackarr.db comes with trackarr.db-wal and trackarr.db-shm files while the app runs. To back it up, stop the container and copy the data folder. trackarr has no backup feature.

If trackarr.db is damaged, startup stops with:

Database file /data/trackarr.db is corrupt. Restore it from a backup, or delete it to start over.

Clone this wiki locally