← All templates · Files and documents
Deploy Paperless-ngx in one click
A document archive with OCR and full-text search
A self-hosted alternative to Evernote.
What is Paperless-ngx?
Paperless-ngx is an open-source document management system, a self-hosted alternative to Evernote for bills, letters and receipts. Scan a page or drop in a PDF, and Tesseract OCR adds text you can search and select, even to an image-only scan. Each document gets tags, a correspondent and a document type, and a local machine-learning model learns to fill them in from what you have already sorted. Mail rules pull attachments from your email accounts.
People run it themselves because the archive holds tax records, invoices and insurance papers they would rather not hand to a cloud service. Originals stay as plain files that it never modifies, so leaving later means copying them out. Several people can share one archive: each document has an owner who decides who else may see or edit it. The catch: Paperless-ngx stores everything unencrypted, and its makers say never to run it on a host you do not trust.
This template runs Paperless-ngx's official image, version 3.3, with a Postgres 18 database and a Valkey 9 database that New project makes beside it, linked before Paperless-ngx first starts; for Postgres you may pick one of yours instead. That start makes its tables and the admin account, so no sign-up page is left open. Its email, for password resets and documents sent from it, goes through Resend, SendGrid or Amazon SES, whichever you pick in New project, or nowhere until you pick one.
Hosting Paperless-ngx on Pethost
- You sign in to Pethost with a passkey, GitHub or Google. No machine yet? You pick a plan, and the link waits until it is ready.
- New project opens at Paperless-ngx. You fill in what it asks for and click Create project: Admin password.
- Email is optional: for Paperless-ngx to send it, you pick Resend, SendGrid, or Amazon SES in New project and paste in what it gives you.
- New project also makes new databases for Paperless-ngx, and links them before the app first starts: Postgres (512 MB) and Valkey (256 MB). Or you pick one of your Postgres databases: Paperless-ngx gets a user and a database of its own in it, which the other apps there cannot read, and the apps in it are backed up and restored together.
- In a minute or two Paperless-ngx is live at its own address with HTTPS. Its secrets are made at random, and its data is in the nightly backup.
- It is a project like any other: you or your agent can change it, roll it back or restore it.
Questions about Paperless-ngx
Is Paperless-ngx free and open source?
Yes. Paperless-ngx is free software under the GPL-3.0 license, maintained by a community team as the official successor to Paperless and Paperless-ng.
Is there a Paperless-ngx mobile app?
Not an official one, but the web app works on phones. The project's wiki lists community apps that connect to your server, such as Paperless Mobile for Android and Swift Paperless for iOS.
Can Paperless-ngx read Word and Excel files?
Only through its optional Tika integration, which needs Apache Tika and Gotenberg servers. This template runs without them, so it takes PDFs, PNG, JPEG, TIFF, GIF and WebP images, and plain text.
Does Paperless-ngx use AI?
Only if you turn it on. AI suggestions, document chat and similar-document search are off by default; once enabled, they send document content to the backend you configure, a local one such as Ollama or a remote provider.
How do I change the OCR language in Paperless-ngx?
Enter the Tesseract code, such as deu or deu+eng, under Configuration in the sidebar. English, German, Italian, Spanish and French come installed; the PAPERLESS_OCR_LANGUAGES variable adds others.
How much memory and disk does Paperless-ngx need?
Paperless-ngx is moderate: about 1 GB at rest beside its Postgres of 512 MB and its Valkey of 256 MB, more while it reads a scan; years of paperwork take a few gigabytes. New project gives each of its databases the memory the template recommends, unless you change it: Postgres (512 MB) and Valkey (256 MB). On Pethost the Starter plan is enough for it, with room for other apps beside it.
Paperless-ngx Docker Compose file
The template is this compose.yaml and the variables written into the project’s .env as it is created. Pethost runs the file as it is written. The machine writes how the app signs in to its databases there, as it links them. New project writes the email settings picked in it, or leaves them empty when the app sends none.
Containers: webserver (ghcr.io/paperless-ngx/paperless-ngx:3.3).
Databases, each a project of its own: Postgres (512 MB), Valkey (256 MB).
Volumes, in the nightly backup: data, media, export, consume.
services:
webserver:
image: ghcr.io/paperless-ngx/paperless-ngx:3.3
restart: unless-stopped
environment:
# Its task queue and cache, in the Valkey database linked to the project, and its
# documents' records in the Postgres one: it waits for both at its start, then migrates.
PAPERLESS_REDIS: ${REDIS_URL:?reload New project to link a Valkey database, or send link_databases with env_prefix REDIS}
PAPERLESS_DBENGINE: postgresql
PAPERLESS_DBHOST: ${DATABASE_HOST:?reload New project to link a Postgres database, or send link_databases with env_prefix DATABASE}
PAPERLESS_DBPORT: ${DATABASE_PORT:?reload New project to link a Postgres database, or send link_databases with env_prefix DATABASE}
PAPERLESS_DBNAME: ${DATABASE_NAME:?reload New project to link a Postgres database, or send link_databases with env_prefix DATABASE}
PAPERLESS_DBUSER: ${DATABASE_USER:?reload New project to link a Postgres database, or send link_databases with env_prefix DATABASE}
PAPERLESS_DBPASS: ${DATABASE_PASSWORD:?reload New project to link a Postgres database, or send link_databases with env_prefix DATABASE}
PAPERLESS_URL: ${PAPERLESS_URL}
PAPERLESS_SECRET_KEY: ${PAPERLESS_SECRET_KEY}
# The first start makes this superuser, so no sign-up page is left open.
PAPERLESS_ADMIN_USER: admin
PAPERLESS_ADMIN_PASSWORD: ${ADMIN_PASSWORD}
# TLS ends at the machine's proxy, which says so in X-Forwarded-Proto.
PAPERLESS_PROXY_SSL_HEADER: '["HTTP_X_FORWARDED_PROTO", "https"]'
# The mail provider picked in New project, by STARTTLS on its port. With none, the host
# is localhost, which Paperless-ngx takes for no mail, and the port stays a number.
PAPERLESS_EMAIL_HOST: ${SMTP_HOST:-localhost}
PAPERLESS_EMAIL_PORT: ${SMTP_PORT:-25}
PAPERLESS_EMAIL_HOST_USER: ${SMTP_USER}
PAPERLESS_EMAIL_HOST_PASSWORD: ${SMTP_PASSWORD}
PAPERLESS_EMAIL_FROM: ${SMTP_FROM}
PAPERLESS_EMAIL_USE_TLS: "true"
volumes:
- data:/usr/src/paperless/data
- media:/usr/src/paperless/media
- export:/usr/src/paperless/export
- consume:/usr/src/paperless/consume
healthcheck:
# The image's own check, with time for the first start's migrations.
test: ["CMD", "curl", "-fs", "-S", "-L", "--max-time", "2", "http://localhost:8000"]
interval: 30s
timeout: 10s
retries: 5
start_period: 180s
volumes:
data:
media:
export:
consume:
More in Files and documents
- NextcloudFile sync, calendar and contacts on a server of your own
- BentoPDFPDF tools in the browser: merge, split, compress, sign, convert and edit, with the files never leaving it
- copypartyA file server in the browser: resumable uploads, a media player and share links, with WebDAV
- GopeedA fast download manager in the browser: HTTP, BitTorrent and magnet links, with extensions
- OpenListOne file list over many storages: cloud drives, S3, WebDAV and more, browsed, previewed and shared in the browser
- PDFMathTranslateTranslates scientific PDFs and keeps their formulas, charts and layout