Media library management for Plex, Jellyfin, and Emby. Browse and filter your libraries, see quality breakdowns and watch history, and build lifecycle rules that act on your media through Sonarr, Radarr, and Lidarr.
Beta software. Bugs, breaking changes, and data loss are possible. Keep backups.
Documentation: librariarr.dev
Source: github.com/ahembree/librariarr
/api/v1 authenticated by scoped API keys, with an OpenAPI document| Tag | Description |
|---|---|
latest | The most recent stable release. Recommended for most users. |
X.Y.Z, X.Y, X | Specific releases. Pin one for reproducible deployments. |
nightly | Rolling build from the latest commit on main. Expect occasional breakage and unreleased database migrations; take a backup first. |
<sha> | The commit a release was built from. |
nightly-<sha> | Immutable per-commit nightly build. |
docker-compose.ymlservices:
librariarr:
image: ahembree/librariarr:latest
container_name: librariarr
ports:
- "${LIBRARIARR_PORT:-3000}:3000"
environment:
- DATABASE_URL=postgresql://librariarr:${DB_PASSWORD}@librariarr-db:5432/librariarr
- SESSION_SECRET=${SESSION_SECRET:-}
- TZ=${TZ:-UTC}
- PUID=${PUID:-1000}
- PGID=${PGID:-1000}
volumes:
- ./config:/config
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000/api/health"]
interval: 30s
timeout: 5s
start_period: 60s
retries: 3
depends_on:
librariarr-db:
condition: service_healthy
restart: unless-stopped
librariarr-db:
image: postgres:18-alpine
container_name: librariarr-db
environment:
POSTGRES_USER: librariarr
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_DB: librariarr
volumes:
- librariarr-db:/var/lib/postgresql
healthcheck:
test: ["CMD-SHELL", "pg_isready -U librariarr"]
interval: 5s
timeout: 5s
retries: 5
restart: unless-stopped
volumes:
librariarr-db:
.env# Required: database password (letters and digits only)
DB_PASSWORD=your-secure-db-password
# Optional: session encryption key, 32+ characters (auto-generated if not set)
# SESSION_SECRET=
PUID=1000
PGID=1000
LIBRARIARR_PORT=3000
DB_PASSWORD goes inside DATABASE_URL, so characters such as @, :, /, # or % break the connection. Postgres reads it only when its volume is first created.
docker compose up -d
Open http://your-server:3000 and sign in with Plex or create local credentials. Database migrations run automatically on container start.
Librariarr is meant for your local network. Do not expose it directly to the internet; use a VPN for remote access.
| Variable | Default | Description |
|---|---|---|
DATABASE_URL | — | Required. PostgreSQL connection URL |
DB_PASSWORD | — | Read by Docker Compose, not the app: substituted into DATABASE_URL and used as the bundled Postgres password. Letters and digits only |
SESSION_SECRET | Auto-generated | 32+ character session key. Saved to /config/.session-secret if not set |
PUID / PGID | 1000 | User and group the app runs as |
UMASK | 022 | File permission mask |
LIBRARIARR_PORT | 3000 | Host port (compose file) |
PORT / HOSTNAME | 3000 / 0.0.0.0 | Set by the image: where the app listens inside the container. Change LIBRARIARR_PORT instead |
NEXT_TELEMETRY_DISABLED | 1 | Set by the image; Next.js telemetry is always off |
TZ | UTC | IANA timezone for scheduled jobs |
LOG_DEBUG | false | Enable debug logging |
BACKUP_DIR | /config/backups | Backup directory |
IMAGE_CACHE_DIR | /config/cache/images | Artwork cache directory |
LOG_ARCHIVE_DIR | /config/logs | Log archive directory |
PREROLL_ALLOWED_PATHS | /media,/data,/mnt,/opt/prerolls | Allowed directory prefixes for preroll files |
TRASH_GUIDES_REPO / TRASH_GUIDES_REF | TRaSH-Guides/Guides / master | Source of the TRaSH Guides |
COOKIE_SECURE | Inferred | Force the session cookie's Secure flag on or off |
TRUST_PROXY_HEADERS | true | Trust X-Forwarded-For for rate limiting. Set false when exposed without a proxy |
FORWARD_AUTH_SECRET | — | Required for forward-auth SSO; your proxy sends it in X-Librariarr-Proxy-Secret |
OIDC_ALLOW_INSECURE_HTTP | — | Accept an http:// OIDC issuer on a network host |
SSO_DISABLE_OVERRIDE | — | Break-glass: force SSO off to recover from a lockout |
NODE_EXTRA_CA_CERTS | — | Path to extra CA certificates to trust |
Full reference: librariarr.dev/docs/getting-started/installation
Everything except the database lives under /config: backups, cached artwork, archived logs, and the auto-generated session secret. All configuration, rules, and media metadata are stored in PostgreSQL. You can also point DATABASE_URL at an existing PostgreSQL server; the user needs CREATE privileges.
docker pull ahembree/librariarr:latest