What is Paperless-ngx?
Paperless-ngx is the project that finally killed the filing cabinet: feed it scans, PDFs, and emails, and it OCRs every page, auto-tags by content, and makes the whole archive instantly full-text searchable. It is one of the most beloved self-hosted apps in existence - the thing people show friends to explain why they self-host at all.
This template runs the all-in-one image (web, OCR worker, scheduler, and consumer together under s6) on a managed Postgres with a noeviction Valkey queue. Documents, the search index, and the consume directory share one 20 GB volume - media has no S3 backend upstream, so the volume is the right shape.
One admin variable, your OCR language, and a folder you drop files into. Everything else - classification, tagging rules, correspondents - it learns.
What you get
- OCR to searchable PDF/A with auto-tagging and classification
- Full-text search across the entire archive
- Consume folder, web upload, email ingestion, and a mobile-friendly UI
- Managed Postgres + noeviction Valkey; single all-in-one container
- Document versioning, audit log, and saved views
- GPL-3.0, hugely active community
How it runs on Lyngbak
| Service | Role | Public |
|---|---|---|
paperless | web + OCR worker + consumer (:5000) | yes |
broker / db | noeviction Valkey / managed Postgres | no |
Before you deploy
PAPERLESS_SECRET_KEY / PAPERLESS_ADMIN_PASSWORD / REDIS_AUTHcore secrets + first admin
PAPERLESS_URLthe app’s https domain after first deploy
Sizing and billing
OCR is the RAM-hungry step - 2 GiB for the app handles steady ingestion; big batch imports appreciate more. The 20 GB volume holds documents and the index.
A resource is a flat monthly price, with RAM and disk add-ons when the stack needs a little more than a tier, and room for your own apps on a larger one. On Usage Billing each service takes the smallest size that fits it and is billed by the second it runs, so a stopped stack stops costing CPU and RAM. Its 24.53 GiB of volumes cost $0.15 per GiB a month ($3.68/mo) for as long as they exist. One workspace can use both. See pricing
Run it locally first
The same compose file runs with plain Docker Compose. Clone the template source, copy .env.example to .env, and run docker compose up -d.
Questions
What does it actually do to my documents?
On ingestion: OCRs the pages (so scans become searchable), generates an archival PDF/A, extracts a thumbnail, and classifies it - assigning tags, a correspondent, and a document type based on rules and what it has learned. Then it is searchable forever.
How do documents get in?
Three ways: upload in the web UI, drop files into the consume directory (synced via the catalogue’s filebrowser/sftpgo or a scanner), or pipe email in. The API covers programmatic ingestion.
Why one big volume instead of managed storage?
Paperless keeps originals, the archive copies, and the search index on disk and has no S3 backend for media - so a single RWO volume is the honest design. Back that one volume up and your entire archive is portable.