pull/this/repo
RoundupProductivity and work apps#self-hosting#open-source#roundup#docker#how-to

Self-hosted document management: Paperless-ngx and the alternatives

By Pull This RepoPosted 5 min read

Short answer

For self-hosted document management at home, use Paperless-ngx. It runs OCR on scans, tags them automatically with machine learning and makes every page searchable, under GPL-3.0. One install script sets it up with Docker Compose on port 8000. Papermerge suits folder-style filing, Mayan EDMS suits office workflows, and Docspell adds email import and an Android app.

RoundupSelf-hosted document management: Paperless-ngx and the alternatives

Self-hosted document management means scanning your paper, letters, receipts and contracts into a system on your own server that reads the text, files each document and lets you search all of it in seconds. Nothing leaves your house. The four open source options worth comparing are Paperless-ngx, Papermerge, Mayan EDMS and Docspell, and for most homes the answer is Paperless-ngx. This page compares them with licences, features and install commands read from each project's GitHub page and docs on 22 November 2026.

Which self-hosted document management system should you use?

ProjectBest forLicenceStars on 22 Nov 2026Latest release
Paperless-ngxa home paper archive with OCR and auto taggingGPL-3.048,482v3.5.1 (18 Nov 2026)
Papermergefolder-style filing, versions and page editingApache-2.05573.5.3 (18 Aug 2025)
Mayan EDMSoffices that need workflows and permissionsApache-2.0 (LICENSE file in its GitHub mirror)850 on the GitHub mirrordocs cover 4.12.2
Docspellhouseholds that import from email and an Android appAGPL-3.02,354v0.43.0 (15 Mar 2025)

Paperless-ngx has far more users than the rest, which shows in the number of guides, scanner tips and answered questions you will find. Mayan EDMS's install docs pull files from GitLab, and its GitHub mirror was last pushed in May 2026, so treat the GitHub numbers as a mirror's.

What does Paperless-ngx actually do?

From the feature list in its own docs:

  • OCR with the Tesseract engine in more than 100 languages, adding searchable, selectable text even to image-only scans. Remote OCR with Azure AI is an opt-in extra.
  • PDF/A archive copies for long term storage, kept alongside your unaltered originals.
  • Machine learning matching that adds tags, correspondents and document types automatically, based on documents you have already filed.
  • File types: PDFs, images, plain text, and Word, Excel and PowerPoint files when the optional Apache Tika service is enabled.
  • Email import from multiple accounts with rules per account (also via Tika).
  • Full text search with autocomplete, results sorted by relevance, the matching words marked in each result, and a "more like this" search for similar documents.
  • Multi-user permissions, workflows, custom fields and public share links that can expire.
  • Optional AI features using large language models for suggestions and chatting with your documents. The docs say these are opt-in and disabled by default.

Your files stay plain on disk in folders Paperless-ngx manages, so you are not locked into a database blob.

How do you install Paperless-ngx?

You need Docker and Docker Compose installed first. If you do not have them, see our guide to installing Docker on Ubuntu. On macOS the script also needs GNU sed and wget from Homebrew.

The project's recommended route is its interactive install script:

terminal
bash -c "$(curl --location --silent --show-error https://raw.githubusercontent.com/paperless-ngx/paperless-ngx/main/install-paperless-ngx.sh)"

The docs suggest inspecting the script first if piping into a shell makes you nervous, which is good practice. It asks a few questions, writes the compose files, pulls the image, starts the containers and creates your superuser account. Then open http://127.0.0.1:8000, or your server's IP on port 8000, and log in.

Prefer to do it by hand? The manual Docker Compose route from the same docs:

  1. From the repo's /docker/compose folder, download one docker-compose.*.yml file for the database you want and save it as docker-compose.yml. Download docker-compose.env and .env into the same folder.
  2. Edit docker-compose.yml to point the consume, media and other folders where you want them, for example - ./consume:/usr/src/paperless/consume. To use a port other than 8000, change the mapping, for example - 8010:8000.
  3. Set any options you need in docker-compose.env.
  4. Run the containers:
terminal
docker compose pull
docker compose up -d
  1. Open the web interface. You will be prompted to create a superuser on first visit.

The docs note that superusers can see every document, so you may want a separate everyday account.

How do you set up a scanner workflow?

The trick is the consume folder. Paperless-ngx watches it, and any file that lands there is imported, OCR'd, tagged and filed.

  1. Map the consume folder to somewhere your scanner can reach, such as a network share on your server.
  2. In your scanner's settings, set its scan-to-folder or scan-to-network-share target to that share. Many office scanners and multifunction printers have this option.
  3. Scan. A few moments later, the document shows up in the web app with searchable text.
  4. For phone photos of receipts, upload through the web app's drag and drop, or save into the same folder.
  5. If the consume folder is on an NFS share, which does not send file change notifications, set PAPERLESS_CONSUMER_POLLING_INTERVAL to a positive number so Paperless-ngx polls for new files.

Correct the early tags it suggests. The matching learns from the documents you have already filed.

What about Papermerge, Mayan EDMS and Docspell?

Papermerge calls itself a document management system for scanned documents, with OCR, full text search, tags and folders in a desktop-like web interface. Its README lists document versioning, custom metadata per document type, page deleting, reordering and extracting, sharing between users and groups, and a REST API. It takes PDF, TIFF, JPEG and PNG. The README's trial command:

terminal
docker run -p 8000:80 \
    -e PAPERMERGE__SECURITY__SECRET_KEY=abc \
    -e PAPERMERGE__AUTH__PASSWORD=123 \
    papermerge/papermerge:3.5.3

Replace the key and password with your own values for anything real, as its README says.

Mayan EDMS is the heavier, office-oriented option. The install from its Docker Compose docs:

terminal
curl https://gitlab.com/mayan-edms/mayan-edms/-/raw/master/docker/docker-compose.yml -O
curl https://gitlab.com/mayan-edms/mayan-edms/-/raw/master/docker/.env -O
docker compose up --detach

Run them from one dedicated folder so the two files stay together.

Docspell describes itself as a personal document organizer for households, families and small groups. Its README lists tags, correspondents and custom metadata, machine learning suggestions using Stanford CoreNLP, date detection, OCR, full text search, email integration, an Android app and a command line client. The quick route:

terminal
git clone https://github.com/docspell/docker docspell-docker
cd docspell-docker/docker-compose
docker-compose up -d

Then go to http://localhost:7880, sign up, and use the same name for the collective and the user. Its latest GitHub release is from March 2025, so check recent commits before you commit your archive to it.

What is the catch?

  • No encryption at rest. Paperless-ngx's README says documents are stored in clear text and it "should never be run on an untrusted host". Run it at home or on a server you trust, and put remote access behind a VPN.
  • Backups are on you. Your tax papers now live in one place. Keep a copy of the data and media folders off the server. Our guide to self-hosted cloud storage covers places to sync a second copy.
  • OCR is good, not perfect. Handwriting and low quality scans still come out messy. Scan at a decent resolution.
  • It is not a PDF editor. These tools file and search documents. To merge, split, sign or fill PDFs, see our roundup of free Adobe Acrobat alternatives.
  • Smaller projects move slowly. Papermerge and Docspell are much smaller than Paperless-ngx, and their latest releases are months old.

Pull it. Stash it.

Questions people ask

What is Paperless-ngx?

Paperless-ngx is a free, open source document management system that turns scanned paper into a searchable archive. It runs OCR with Tesseract in more than 100 languages, saves documents as PDF/A alongside the original files, and uses machine learning to suggest tags, correspondents and document types.

Is Paperless-ngx safe to run on the internet?

Its own README warns it should never be run on an untrusted host, because documents are stored in clear text without encryption, and it makes no security guarantees. The project says the safest setup is a local server in your own home with backups in place.

How do I get scans from my scanner into Paperless-ngx?

Point your scanner's scan-to-folder or scan-to-network-share option at the folder you mapped to Paperless-ngx's consume directory. Paperless-ngx watches that folder, imports each new file, runs OCR and files it. On NFS shares, set PAPERLESS_CONSUMER_POLLING_INTERVAL so it polls for new files.

Does Paperless-ngx run on Windows?

Not directly. Its docs say the bare metal install is Linux only and Windows is not supported. On Windows you can run the Docker version through Docker Desktop or WSL, but most people run it on a small Linux server or NAS.

Sources

  1. 1paperless-ngx/paperless-ngx
  2. 2Paperless-ngx docs: Setup, docs/setup.md in the repo (read 2026-11-22)
  3. 3Paperless-ngx docs: Home and features, docs/index.md in the repo (read 2026-11-22)
  4. 4papermerge/papermerge-core
  5. 5mayan-edms/Mayan-EDMS
  6. 6Mayan EDMS docs: Docker Compose install (read 2026-11-22)
  7. 7eikek/docspell

Get tomorrow's repo in your feed

One free, open source repo a day as a short video, shown working, with the catch named. Pull it. Stash it.