How to Self-Host Paperless-ngx and Access Your Documents from Anywhere
Every household and small business accumulates a mountain of paper: tax returns, insurance policies, utility bills, contracts, receipts, warranty cards. Most of it ends up in a drawer or a box, unsearchable and impossible to find when you actually need it. Paperless-ngx converts that pile into a searchable, indexed, automatically tagged digital archive that runs entirely on your own hardware.
In this article 10 sections
Keep a searchable document archive on your own hardware, with controlled access from anywhere
Paperless-ngx turns scans and digital files into an archive with searchable text, metadata, workflows, and browser access. This guide builds a PostgreSQL-based Docker Compose deployment, verifies document processing locally, and connects it to a Localtonet HTTP tunnel. It also explains how to lock container images, protect accounts, and restore a matched database-and-files backup. Start with non-sensitive documents and prove both access controls and recovery before importing your real archive.
📋 What's in this guide
What Paperless-ngx does and how this deployment works
Paperless-ngx is an open-source document management system. Files can arrive through a browser upload, a consume directory, configured email processing, or the API. During consumption, it extracts available text, uses optical character recognition when appropriate, generates supporting files, and makes the contents searchable.
The original remains important: OCR output does not replace the source file. Archive generation and PDF/A behavior depend on the input type and configuration. Test representative scans, digital PDFs, images, and Office files before deciding what to retain or discard.
The five-service stack
This tutorial uses Docker Compose with PostgreSQL, Redis, Tika, and Gotenberg. Compose is one installation path, not the only supported way to deploy Paperless-ngx. Tika and Gotenberg extend document processing for supported formats; they do not make every possible input safe or compatible.
| Service | Purpose | Recovery consideration |
|---|---|---|
webserver | Web interface, API, consumption, background processing, and management commands. | Preserve the data and media volumes and relevant bind-mounted directories. |
db | PostgreSQL application records, metadata, users, and permissions. | Restore the database together with its matching document files. |
broker | Redis task coordination. | Drain work before backup; do not replay stale queues during recovery. |
tika | Content and metadata extraction for the integration. | Record the exact compatible image. |
gotenberg | Conversion of supported inputs. | Retain the official integration flags and exact image. |
Publish the web interface on 127.0.0.1:8000, not every host interface. Run the Localtonet client directly on that same Docker host. A remote browser then reaches our public HTTPS address, our relay forwards traffic through the connected client, and the client reaches the loopback-bound application.
A client on another computer cannot reach this service using its own 127.0.0.1. A client inside a separate container also has a different loopback interface. The instructions here assume the Localtonet client runs on the host, not in a separate container.
Check the host, dependencies, and storage
The commands below assume a Linux host, Bash, Docker Engine, the Docker Compose plugin, Git, curl, OpenSSL, and standard archive utilities. Use a trusted administrator account. Docker access is effectively privileged host access, so do not give it to ordinary document users.
docker --version
docker compose version
docker info
uname -m
id -u
id -g
df -h
docker system df
Use the numeric UID and GID printed here for the consume and export directory mapping. Do not assume they are both 1000. Monitor Docker's storage filesystem as well as your project directory: named volumes normally reside outside the project directory.
Choose a 64-bit host and verify that every selected image supports its architecture. Support in Paperless-ngx alone is insufficient if a conversion dependency lacks a matching image. Do not assume that old 32-bit Raspberry Pi instructions remain applicable. CPU speed, cooling, scan resolution, and conversion workload all influence performance.
The supplied material does not establish a freshly verified Paperless-ngx release, dependency matrix, or exporter model list. Rather than inventing a current version combination, this guide uses the official Compose files from a release you select, then freezes the resolved images. Check that release's setup and configuration guidance before deployment. The commands below also include runtime help checks for management utilities.
There is no useful universal storage-per-document estimate. Import a representative sample and measure the media, data, database, and backup growth. Allow room for originals, archive representations, thumbnails, temporary conversion files, exports, and updates. Keep backups on independent storage, not just another folder on the same disk.
Install from an official release and freeze the images
Use the Paperless-ngx setup documentation to select an official release and its PostgreSQL plus Tika/Gotenberg Compose variant. Do not combine an old application image with whichever PostgreSQL or Gotenberg tag happens to be newest.
Obtain a release-specific configuration
Create a protected working directory and clone the official repository. Replace the prompt value with an actual release tag selected from the project's release information, not a branch name.
umask 077
mkdir -p ~/paperless-ngx/consume ~/paperless-ngx/export
cd ~/paperless-ngx
git clone https://github.com/paperless-ngx/paperless-ngx.git upstream
read -r -p "Official Paperless-ngx release tag: " RELEASE
git -C upstream checkout --detach "$RELEASE"
git -C upstream rev-parse HEAD > upstream-commit.txt
find upstream/docker/compose -type f \
\( -name '*postgres*' -o -name '*.env' \)
In the checked-out release, locate the PostgreSQL Compose file that includes both Tika and Gotenberg. Copy it to docker-compose.yml, and copy its accompanying environment file to docker-compose.env, following that release's file layout. The repository layout can change, so inspect the discovered files rather than copying a guessed path.
The remaining commands assume service names webserver, db, broker, tika, and gotenberg; volume keys data, media, pgdata, and redisdata; database name and user paperless; and the standard application mount paths shown below. Verify these in the selected file before continuing. If a release changes them, adapt the commands and document that change.
Configure secrets and local-only access
openssl rand -hex 32
openssl rand -hex 48
Use the first generated value for the database password and the second for PAPERLESS_SECRET_KEY. Store the database value in a project-level .env file:
PAPERLESS_DB_PASSWORD=replace-with-your-generated-database-secret
In the official Compose file, set both the database's POSTGRES_PASSWORD and the webserver's PAPERLESS_DBPASS to ${PAPERLESS_DB_PASSWORD}. Keep database name and user consistent across the two services. Replace the webserver's existing port publication, rather than appending a second publication:
ports:
- "127.0.0.1:8000:8000"
Keep the official service endpoints, dependency configuration, health checks if supplied, Gotenberg command flags, and volume targets. Do not expose PostgreSQL, Redis, Tika, or Gotenberg on public host ports. Confirm the webserver mounts include:
volumes:
- data:/usr/src/paperless/data
- media:/usr/src/paperless/media
- ./export:/usr/src/paperless/export
- ./consume:/usr/src/paperless/consume
Edit the accompanying docker-compose.env, preserving any required release-specific settings:
USERMAP_UID=replace-with-your-numeric-uid
USERMAP_GID=replace-with-your-numeric-gid
PAPERLESS_SECRET_KEY=replace-with-your-generated-application-secret
PAPERLESS_TIME_ZONE=Etc/UTC
PAPERLESS_OCR_LANGUAGE=eng
PAPERLESS_OCR_LANGUAGE selects OCR language data, while PAPERLESS_OCR_LANGUAGES requests additional language installation in the container workflow. They are not interchangeable. For multilingual collections, check the selected release's supported language packages and configuration syntax, then verify the installed data:
chmod 600 .env docker-compose.env docker-compose.yml
printf '.env\ndocker-compose.env\nexport/\nconsume/\n' > .gitignore
docker compose config --quiet
docker compose config --services
docker compose config --images
For example, language selection can combine Tesseract language codes such as eng+deu, but the corresponding data must actually be installed. Do not infer availability from a language code alone. Runtime package installation can also make a rebuild depend on external package repositories; record added packages and test recovery with them.
Resolve tags once, then replace them with digests
A release-specific Compose file can still contain mutable image tags. Before the first startup, ensure the Paperless-ngx image tag corresponds to the selected application release rather than leaving it at latest. Preserve the dependency selections from that release's Compose file.
docker compose pull
while IFS= read -r image; do
printf '\nRequested: %s\n' "$image"
docker image inspect "$image" \
--format '{{json .RepoDigests}} {{.Os}}/{{.Architecture}} {{.Id}}'
done < <(docker compose config --images) > image-resolution.txt
For each of the five services, replace its image: value with the matching repository digest reported by Docker, in the form repository@sha256:.... Do not copy a digest from another repository or an unrelated image. Preserve the original release file and image-resolution.txt for provenance.
Validate again, pull the digest-pinned set, and start:
docker compose config --quiet
docker compose config --images
docker compose pull
docker compose up -d
docker compose ps
docker compose logs -f --tail=100 webserver
Exit log following with Ctrl+C; this does not stop the containers. Wait for database initialization and application migrations to finish. Digests freeze container content, but they do not prove compatibility. The official release configuration and your ingestion tests provide that separate check.
Keep the database image and its volume layout from the selected official configuration. PostgreSQL 18 images use a changed, version-aware layout with the parent /var/lib/postgresql mount; older examples commonly mount /var/lib/postgresql/data. Do not change a major image version against an existing data directory. Use the documented database upgrade process, typically a controlled dump/restore or supported upgrade procedure.
Create the administrator and verify ingestion locally
Keep the tunnel stopped while establishing a local baseline. A responding web interface, successful login, and completed ingestion prove different things, so test all three.
curl -I http://127.0.0.1:8000/
docker compose exec webserver python3 manage.py createsuperuser --help
docker compose exec webserver python3 manage.py createsuperuser
The explicit python3 manage.py createsuperuser invocation runs the Django management command in the Paperless-ngx container. It replaces the earlier ambiguous bare executable invocation. Confirm the command against the selected release's setup instructions; do not assume the browser will offer an administrator-creation wizard.
Enter a strong unique password interactively. Avoid retaining an administrator password in Compose environment variables unless automated provisioning genuinely requires it. Sign in at http://127.0.0.1:8000 using a browser on the host. For a headless host, use an approved secure administration path rather than exposing the port broadly.
docker compose exec webserver tesseract --list-langs
cp /path/to/non-sensitive-test-document.pdf ~/paperless-ngx/consume/
docker compose logs -f --tail=100 webserver
Alternatively, upload the test document through the browser. Confirm that processing completes, the original downloads correctly, text is searchable, and date handling matches your configuration. Assign a correspondent, document type, and tag. Test a scanned image as well as a text PDF so that OCR is exercised rather than only text extraction.
If Office or email formats are part of your workflow, test those separately against the selected Tika/Gotenberg integration. Keep its official endpoint configuration and conversion flags. Consult the Paperless-ngx usage documentation for supported inputs, but use your real format samples as the acceptance test.
Create a non-administrator user and verify both allowed and denied document access. Automatic matching needs accurately labeled examples; there is no reliable universal document count that guarantees useful classification. Deterministic rules can be preferable for stable sender names or account identifiers.
Connect the local service with a Localtonet HTTP tunnel
With Localtonet, you can reach the local application without inbound router port forwarding, a public IP address, or VPN setup. Outbound connectivity must still be permitted by your network policy. This HTTP tunnel is not a VPN and does not bypass application authorization.
Use the current HTTP tunnel documentation alongside the dashboard. Options and availability can vary by plan and client version; select relay values from the current dashboard rather than hardcoding them.
Install and run the client
Run the Localtonet application directly on the Docker host that can reach 127.0.0.1:8000.
Select the device
Authenticate or select the host using its device-specific AuthToken. Keep that token secret.
Choose an available relay
Select a server or region currently offered for your account.
Create the HTTP configuration
Choose the appropriate Process Type: Random Sub Domain, Custom Sub Domain, or Custom Domain. Set the local IP to 127.0.0.1 and port to 8000. Check current DNS instructions before using a custom domain.
Start and use the tunnel
Press Start and record the assigned public HTTPS address. Creating a configuration alone does not start it. Complete the application URL configuration below before ordinary remote use.
Stop access when it is no longer needed
Stop or delete the tunnel to end that route. Access also requires the selected device and client to remain connected.
Set the public origin correctly
Add PAPERLESS_URL to docker-compose.env using the exact assigned HTTPS origin. Include the scheme and hostname, and a port only if the public address uses a non-default port. Do not include a trailing slash, login path, query string, or fragment:
PAPERLESS_URL=https://your-assigned-public-host
Paperless-ngx uses this setting to populate relevant host, CORS, and CSRF origin configuration. It does not create DNS records, issue a certificate, or start the tunnel. This guide assumes the application is served at the hostname root, not under a subpath.
Check the selected release's configuration documentation for interactions with explicit PAPERLESS_ALLOWED_HOSTS, PAPERLESS_CSRF_TRUSTED_ORIGINS, and PAPERLESS_CORS_ALLOWED_HOSTS settings. Allowed hosts and trusted origins use different formats: hosts are not the same as scheme-qualified origins. Do not solve validation failures by adding wildcards or disabling CSRF protection.
Additional proxy settings depend on the headers actually delivered by the proxy chain. Do not enable trust in arbitrary forwarded headers without checking that chain. If HTTPS redirects loop or generated links use HTTP, inspect request handling and the version-specific proxy guidance rather than adding unverified settings.
docker compose up -d --force-recreate webserver
docker compose logs --tail=100 webserver
curl -I http://127.0.0.1:8000/
A restart alone does not apply changed environment files; recreating the container does. If host validation now rejects a loopback request, distinguish that HTTP response from a connection failure and check the configured allowed hosts. Do not broaden host acceptance merely to make a health check return success.
From an external device, open the assigned HTTPS address, sign in as the ordinary test user, search, download the test original, and upload another non-sensitive document. Confirm processing completes and unauthorized documents remain inaccessible. A successful login page alone does not validate uploads, permissions, or background workers.
Protect the archive at every layer
Our tunnel transports requests; Paperless-ngx authenticates users and enforces permissions. Protect the application before exposing it. Remote document traffic traverses relay infrastructure, so do not claim that it never passes through a third party.
Use individual accounts and reserve superuser credentials for administration. Review ownership, groups, and object permissions with representative users, including negative tests. Protect API tokens used by scanners or community mobile clients as carefully as passwords. Mobile clients have independent publishers and release cycles; verify compatibility and publisher identity before installation.
Restrict SSH, Docker access, environment files, database credentials, Localtonet device tokens, and backup keys. Apply operating-system and application updates. Do not publish internal conversion or database ports. Logs, exports, screenshots, and rendered Compose files may contain sensitive information even when they contain no passwords.
Paperless-ngx should not be assumed to provide per-document encryption at rest. Use encrypted disks and encrypted backup repositories where required, with recovery keys stored separately. Host administrators and anyone with sufficient Docker or backup access may be able to read the archive.
If policy requires a private network rather than an internet-reachable login page, choose that architecture instead. Our VPN Manager is the separate private mesh feature; an ordinary HTTP tunnel is not equivalent. Evaluate privacy, contractual, and regulatory requirements before importing sensitive records.
Create a consistent backup and test both recovery paths
There are two distinct recovery paths: an application-level exporter/importer workflow and a database dump with persistent-file archives. Testing one does not validate the other. The latter is the deployment recovery procedure below, including users and permissions stored in PostgreSQL.
Application export: useful, but not an assumed server clone
docker compose exec webserver document_exporter --help
docker compose exec webserver document_importer --help
docker compose exec webserver document_exporter ../export
The exporter handles document files and application metadata supported by that release's export format and selected options. It does not back up your Compose configuration, environment secrets, Docker host, or Localtonet configuration. The supplied evidence does not establish the exact current list of exported models, including users, permissions, tokens, and integration state. Do not promise that these all survive an export/import round trip.
Use a fresh export directory for each recovery point, inspect completion and warnings, and copy the result to protected independent storage. For a restore test, build an empty isolated stack using the same application release, make the export available at its export mount, and run:
docker compose exec webserver document_importer ../export
Check document counts, supported metadata, originals, archive files, and representative searches. Inspect account and permission state independently and reconstruct anything the release does not export before granting access. Keep the clone private. A successful importer run is not evidence that a PostgreSQL-and-volume restore works.
Prepare a quiescent database-and-files backup
The following procedure assumes the service names, database user, and mount paths established earlier. It uses the pinned webserver image as an archive helper with its application entrypoint overridden. Check that its tar utility supports the commands before your first backup:
docker compose run --rm --no-deps --user 0 \
--entrypoint tar webserver --help
Schedule a maintenance window. Stop the public tunnel, pause scanners and consume-directory writers, disable scheduled external ingestion, and prevent API or local users from modifying the archive. Allow active processing to finish and verify there are no pending tasks. Then stop the webserver, which stops application writers, while leaving PostgreSQL available for the dump.
cd ~/paperless-ngx
umask 077
BACKUP="$HOME/paperless-backups/$(date -u +%Y%m%dT%H%M%SZ)"
mkdir -p "$BACKUP"
docker compose stop webserver
docker compose ps
docker compose exec -T db pg_dump \
-U paperless -d paperless -Fc > "$BACKUP/paperless.dump"
test -s "$BACKUP/paperless.dump"
docker compose exec -T db pg_restore --list \
< "$BACKUP/paperless.dump" > "$BACKUP/database-contents.txt"
Run each stage only after the previous command succeeds. Do not treat a non-empty file alone as proof of a successful dump. With the webserver stopped and all external writers paused, archive its persistent files:
docker compose run --rm --no-deps --user 0 \
-v "$BACKUP:/backup" --entrypoint tar webserver \
-cpf /backup/application-files.tar \
-C /usr/src/paperless data media consume export
cp docker-compose.yml docker-compose.env .env \
upstream-commit.txt image-resolution.txt "$BACKUP/"
docker compose config --images > "$BACKUP/images.txt"
docker compose images > "$BACKUP/running-images.txt"
tar -tf "$BACKUP/application-files.tar" > "$BACKUP/file-list.txt"
(
cd "$BACKUP"
sha256sum paperless.dump application-files.tar \
docker-compose.yml docker-compose.env .env \
upstream-commit.txt image-resolution.txt \
> SHA256SUMS
)
This captures the data and media volumes plus the consume and export directories without guessing Docker's volume names or host storage paths. If you added other mounts, scripts, certificates, or configuration files, include them too. Preserve numeric file ownership and record the host UID/GID mapping.
The PostgreSQL logical dump replaces a raw database-volume copy in this method. Redis is deliberately rebuilt empty: this is a quiescent archive recovery, not a mechanism for resuming in-flight queues. That is why draining work and stopping ingestion are required.
Copy the complete set into an encrypted, independently retained backup repository and verify its checksums there. The local directory above is staging, not disaster recovery. Protect configuration files because they include secrets. Record any separate Localtonet recovery instructions securely without placing a device token in an ordinary operations log.
docker compose up -d
docker compose ps
curl -I http://127.0.0.1:8000/
Only after local checks succeed should you resume ingestion and restart the tunnel. If any backup stage fails, investigate it and mark that set incomplete rather than silently retaining it as a recovery point.
Restore the database and persistent files into isolation
Prefer a separate recovery host with restricted outbound networking and no Localtonet client connected. A restored application may contain email ingestion settings, scheduled jobs, or external integrations, so “no public tunnel” alone is not sufficient isolation. Use the recorded architecture and exact image digests for the first restore.
- Retrieve and decrypt the complete recovery set into a protected directory.
- Verify checksums before starting services.
- Copy the Compose and environment files into a new project directory.
- Confirm all volumes are new and project-scoped, with no explicit shared volume names, external production volumes, or production bind paths.
- Keep the public tunnel stopped and use a different localhost port if testing on the production host.
cd /path/to/decrypted-backup
sha256sum -c SHA256SUMS
mkdir -p ~/paperless-restore/consume ~/paperless-restore/export
cp docker-compose.yml docker-compose.env .env ~/paperless-restore/
cd ~/paperless-restore
export COMPOSE_PROJECT_NAME=paperless-restore
BACKUP=/absolute/path/to/decrypted-backup
docker compose config --quiet
docker compose pull
For a same-host test, change only the restored project's web port binding to 127.0.0.1:18000:8000. Inspect the configuration privately for any top-level project name, explicit container_name, external volumes, or absolute bind paths that could defeat isolation. Do not start the webserver yet.
Restore the application files into fresh empty mounts. Never extract this archive over a running production archive:
docker compose run --rm --no-deps --user 0 \
-v "$BACKUP:/backup:ro" --entrypoint tar webserver \
-xpf /backup/application-files.tar -C /usr/src/paperless
docker compose up -d db broker gotenberg tika
docker compose exec -T db pg_isready -U paperless -d paperless
Wait until PostgreSQL is ready. On this fresh database volume, the image initializes the database and role from the recovered configuration. Restore the logical dump before letting Paperless-ngx initialize or migrate the database:
docker compose exec -T db pg_restore \
-U paperless -d paperless --exit-on-error --no-owner \
< "$BACKUP/paperless.dump"
Require a successful exit status. These commands assume the single application database and role used in this tutorial. Custom roles, extensions, or separate databases require their own recovery treatment. Do not use this command to overwrite a populated production database.
Before starting the application, keep external integrations blocked and remove the production public URL from the isolated configuration or replace it with the isolated test origin, such as http://localhost:18000. Preserve the recovered application secret for the initial recovery test.
docker compose up -d webserver
docker compose logs --tail=100 webserver
curl -I http://127.0.0.1:18000/
Use port 8000 instead if restoring on a separate host without changing the binding. Verify administrator and ordinary-user login, groups, document ownership, denied access, counts, metadata, original downloads, archive viewing, and searches. Compare several original-file hashes with known pre-backup samples. Ingest a new non-sensitive file and test the conversion dependencies.
Record the restore time, image digests, warnings, missing integrations, and verification results. This test validates the database-and-files method independently of the importer. A physical PostgreSQL-volume recovery is a different procedure requiring a clean shutdown or database-aware snapshot and matching major-version layout; do not substitute a copied live database directory.
Routine operation, updates, and rollback
Check application health and public access independently. A working tunnel cannot repair a failed database; a working local application cannot compensate for a disconnected client.
docker compose ps
docker compose logs --tail=100 webserver
docker compose logs --tail=100 db broker
docker compose logs --tail=100 gotenberg tika
curl -I http://127.0.0.1:8000/
df -h
df -i
docker system df
Confirm that Docker starts after host maintenance and that services return as expected. A configured restart policy does not guarantee recovery from a full disk, broken migration, unavailable mount, or deliberately stopped container. Verify Localtonet client connectivity and tunnel state separately.
For updates, select a new official Paperless-ngx release, compare its Compose and configuration changes with your recorded version, and read migration guidance. Resolve and record a new digest-pinned image set in a staging copy. Do not silently replace PostgreSQL's major version during an application update.
Test the new set against an isolated restore, then take a fresh quiescent production backup before applying it. After startup, repeat login, search, upload, OCR, Office conversion, permissions, and remote-route checks. Keep the previous images available through an approved registry or image archive if recovery must work without internet access.
Database migrations may prevent safely running an older application against the updated database. Keep the previous pinned configuration and its pre-update database-and-files recovery point. If rollback is necessary, restore that matched set into a controlled environment instead of repeatedly switching application images against a migrated database.
Troubleshoot from localhost outward
First test the loopback URL on the Docker host. If it fails, inspect Docker and Paperless-ngx before investigating the tunnel. If it works, move outward to client connectivity, selected device, relay, tunnel state, public hostname, and application origin checks.
| Symptom | Check | Corrective direction |
|---|---|---|
| Webserver exits repeatedly | Inspect webserver, database, and broker logs. | Resolve the reported credential, migration, configuration, or dependency failure before restarting repeatedly. |
| No matching image manifest | Check host architecture and all five selected images. | Use a release and architecture supported across the complete stack. |
| Consume permission denied | Compare UID/GID mapping with directory ownership. | Correct the mapping or ownership; recreate the webserver after environment changes. |
| Missing or poor OCR | Inspect task logs, source scan, language selection, and tesseract --list-langs. | Install required data and test a clean sample. Language selection alone does not install data. |
| Office conversion fails | Check Tika/Gotenberg logs, endpoints, flags, and release compatibility. | Restore the official integration configuration and test a supported sample. |
| Local works, public fails | Check client connection, AuthToken selection, relay, Start state, and target. | Use the host-local client and 127.0.0.1:8000; start missing components. |
| Host or CSRF validation error | Compare the public origin, PAPERLESS_URL, and explicit overrides. | Correct formats and recreate the webserver. Do not disable validation. |
| HTTPS redirect loop | Inspect the actual proxy chain and forwarded scheme handling. | Apply only the selected release's required proxy settings for that verified chain. |
| Mobile client cannot connect | Test the same URL in the phone browser and check API/client compatibility. | Separate network reachability from credentials and application compatibility. |
| Uploads stop | Check space, inodes, mounts, permissions, and processing logs. | Resolve storage pressure before retrying ingestion. |
| Access disappears after reboot | Check Docker, all services, client connectivity, and tunnel state. | Restart the unavailable component; a saved tunnel is not necessarily running. |
| Restore reports existing objects | Check whether the recovery database was truly empty. | Rebuild only the isolated recovery environment with fresh volumes and restore before starting the webserver. |
When requesting help, redact credentials, document contents, private-use endpoints, and personal information. Preserve timestamps, exact versions, exit status, and relevant error messages. Never share unredacted docker compose config output: it can contain resolved secrets.
Frequently asked questions
Does Localtonet secure the archive by itself?
No. We provide the public HTTPS address and transport path. Paperless-ngx handles application authentication and permissions. You remain responsible for the host, credentials, updates, exposure policy, and tested backups.
Why bind port 8000 to 127.0.0.1?
This avoids publishing the application on the host's external interfaces. The Localtonet client must run directly on the same host for that target to work. Another device or a separate container has its own loopback interface.
Why use image digests instead of latest tags?
A digest identifies fixed image content. A mutable tag may resolve to different content on a later pull. Record the official release configuration and resolved digests together, then test that combination before relying on it for recovery.
Is document_exporter a complete server backup?
No. Its scope is the selected release's supported export format and options. It does not preserve the host, Compose files, environment secrets, or Localtonet setup. Do not assume all account and integration state is included without checking that release and testing an import.
Can I copy a live PostgreSQL volume?
Not as an ordinary portable backup. Use a logical dump or a database-aware physical backup procedure. This guide stops application writers and pairs a PostgreSQL dump with matching persistent-file archives, then tests their restoration separately.
Will this work on a Raspberry Pi?
Use a supported 64-bit operating system and confirm architecture support for every pinned dependency, not just Paperless-ngx. Test representative OCR and conversion workloads; this guide makes no universal memory or throughput promise.
Can I access documents when the host is offline?
No. Remote access requires the host, application, internet connection, Localtonet client, and running tunnel. Stopping or deleting the tunnel removes that access route; it does not stop or delete your local archive.
Connect a verified archive with Localtonet
Start with successful local ingestion, individual user accounts, pinned images, and a tested restore. Then point an HTTP tunnel at 127.0.0.1:8000 and verify the assigned HTTPS address with a non-sensitive document.
Corrections & updates
Substantive changes approved by the Localtonet editorial team are listed transparently below.
Localtonet is a secure multi-protocol tunneling and proxy platform designed to expose localhost, devices, private services, and AI agents to the public internet supporting HTTP/HTTPS tunnels, TCP/UDP forwarding, mobile proxy infrastructure, file server publishing, latency-optimized game connectivity, and developer-ready AI agent endpoint exposure from a single unified control plane.