Docs and wikis, checked 2026-09-07

Paperless-ngx: Docker configuration reference

Self-hosted document management system that scans, OCRs, tags and indexes paper and digital documents.

At a glance

Ports

Ports
PortWhat listensSource
8000 (webserver)HTTP listener for the web UI and API. Route the reverse proxy here.source for port 8000

Environment variables

Environment variables
VariableRequiredWhat it doesExampleSource
PAPERLESS_URLNoSets ALLOWED_HOSTS, CORS_ALLOWED_HOSTS and CSRF_TRUSTED_ORIGINS together. Cannot contain a path, even for a subpath install.https://paperless.example.comsource for PAPERLESS_URL
PAPERLESS_CSRF_TRUSTED_ORIGINSNoComma-separated list of trusted origins for unsafe requests, required by Django 4+ to reach the admin over the web. Can be set via PAPERLESS_URL instead.https://paperless.example.comsource for PAPERLESS_CSRF_TRUSTED_ORIGINS
PAPERLESS_ALLOWED_HOSTSNoDefaults to allowing all hosts. Should be set to the real domain before exposing the instance to the internet.paperless.example.comsource for PAPERLESS_ALLOWED_HOSTS
PAPERLESS_DBHOSTYesHostname of the Postgres database, set alongside PAPERLESS_DBENGINE=postgresql in the official compose file.dbsource for PAPERLESS_DBHOST
PAPERLESS_ALLAUTH_TRUSTED_PROXY_COUNTNoNumber of trusted proxy hops in X-Forwarded-For. Only trust this when untrusted clients cannot reach the app directly.1source for PAPERLESS_ALLAUTH_TRUSTED_PROXY_COUNT

Volumes that must persist

Volumes
PathWhat is in itSource
/usr/src/paperless/data (webserver)Index, classification model and other application state that is not the documents themselves.source for /usr/src/paperless/data
/usr/src/paperless/media (webserver)The actual stored documents, thumbnails and archive versions. The core data to back up.source for /usr/src/paperless/media
/var/lib/postgresql (db)Postgres data directory backing the document index and metadata.source for /var/lib/postgresql

Behind a reverse proxy

What it needs alongside it

Dependencies
DependencyWhySource
PostgreSQL 18Recommended production database, addressed through PAPERLESS_DBHOST and PAPERLESS_DBENGINE.source for PostgreSQL 18
Valkey (Redis-compatible) 9Message broker for the consumer task queue, set via PAPERLESS_REDIS.source for Valkey (Redis-compatible) 9

Release timeline

Releases
VersionDateBreakingWhat changedSource
v3.1.32026-09-04NoBug fixes: header loading indicator on the tasks page, sidebar resize animation, dropdown word wrapping.source for release v3.1.3
v3.1.22026-09-01NoSecurity fix for GHSA-2jhj-xqrq-rmrq, recommended for all users, plus dark mode select styling fixes.source for release v3.1.2
v3.1.02026-08-27NoAdds an apply AI suggestions workflow action and support for selectively using remote OCR engines.source for release v3.1.0
v3.0.22026-07-24YesFixes a broken database migration shipped in 3.0.1 that could leave an upgrade partially applied.source for release v3.0.2
v3.0.02026-07-22YesMajor version with multiple breaking changes: removes API v1 and versions below 9, drops Python 3.10, removes document encryption and the pybzar barcode reader.source for release v3.0.0

If it is not coming up

Read from the upstream documentation, repository and container registry by Keita Emsden on 2026-09-07. Every row links the page it came from. Upstream changes without telling anyone, so check the source link before you rely on a value.

Other app references

All app references