paperless-ngx

by CodeOpsMS

Helm chartv0.4.2App 3.3.4Verified publisher

A community Helm chart for Paperless-ngx, a document management system that transforms physical documents into a searchable online archive.

About this chart


title: "Paperless-ngx Helm Chart" description: "A community Helm chart for deploying Paperless-ngx on Kubernetes."

Paperless-ngx Helm Chart

This is a community-maintained Helm chart packaged by CodeOpsMS. It is not an official Paperless-ngx chart and does not receive official support from the Paperless-ngx project.

Stable Paperless 3 release: Chart 0.4.2 deploys Paperless-ngx 3.3.4 and replaces 0.3.23 as the stable default. Existing Paperless 2 installations must follow UPGRADE-0.4.md before upgrading. Pin --version 0.3.23 until that migration is prepared.

This chart deploys Paperless-ngx 3.3.4 with optional PostgreSQL and Valkey dependencies. The default deployment retains legacy PostgreSQL 17.6 for upgrade testing and uses Valkey 9.0.5. All default container images are pinned to immutable multi-platform digests.

Project links

Maintainers

NameEmailUrl
CodeOpsMS[email protected]https://github.com/CodeOpsMS

Requirements

  • Kubernetes 1.34 or newer
  • Helm 3 or Helm 4 (the exact maintained versions are pinned in CI)
  • An x86-64-v2 capable CPU on amd64 for classifier support, or a supported arm64 node
  • Persistent storage for production use

Kubernetes 1.34 is the chart's intentional maintained-and-tested support floor, not a claim that every rendered Kubernetes API first appeared in 1.34. Older clusters are rejected because they are outside this release's CI/support matrix.

On older amd64 CPUs without SSE4.2, upstream documents a restricted setup with PAPERLESS_TRAIN_TASK_CRON=disable that gives up classifier-based matching. The separate 3.0.5 OCR failure on this hardware is fixed in the 3.1 line; test the actual hardware before relying on this configuration. See UPGRADE-0.4.md for details.

The tested dependency versions for chart 0.4.2 are:

ComponentChartApplication
PostgreSQL16.7.2717.6.0
Valkey0.9.49.0.5

The bundled bitnamilegacy/postgresql image is archived and no longer maintained. PostgreSQL 17.6 is a legacy test baseline, not a current security release. It remains in the 0.4 release line for compatibility with historical upgrade baselines. For a new or production installation, disable the bundled database and use a maintained external PostgreSQL 17 service (17.11 at this review) with independent backups and lifecycle management. Moving the bundled dependency to PostgreSQL 18 is intentionally outside this migration release. The Docker Official PostgreSQL image is not a drop-in replacement for the Bitnami chart's entrypoint, environment variables, or data layout; do not change only postgresql.image.repository to migrate a database.

Installation

Stable Helm repository install (Paperless 3)

helm repo add paperless https://codeopsms.github.io/paperless-ngx-helm-chart/
helm repo update
helm install paperless-ngx paperless/paperless-ngx \
  --version 0.4.2 \
  --namespace paperless-ngx \
  --create-namespace

Normal Helm version resolution now selects the stable Paperless 3 chart. An unpinned helm upgrade of a Paperless 2 installation therefore crosses a breaking application/database migration. Do not upgrade until the migration guide, backups, and full application shutdown have been addressed.

Stable OCI install (Paperless 3)

helm install paperless-ngx \
  oci://ghcr.io/codeopsms/helm-charts/paperless-ngx \
  --version 0.4.2 \
  --namespace paperless-ngx \
  --create-namespace

Historical chart versions remain addressable by explicit version:

Chart versionPaperless-ngxPurpose
0.3.232.20.15Last Paperless 2 release
0.4.0-experimental.13.0.5Historical Paperless 3 preview
0.4.03.1.3Previous stable Paperless 3 release
0.4.23.3.4Current stable Paperless 3 release

Chart 0.3.23 remains available for existing Paperless 2 installations, but it is a historical release and does not receive Paperless 3 fixes or current security updates. It is no longer the default; select it explicitly when maintaining a Paperless 2 installation pending a controlled migration.

Use distinct release names and namespaces to run both versions in parallel:

helm install paperless-v2 \
  oci://ghcr.io/codeopsms/helm-charts/paperless-ngx \
  --version 0.3.23 \
  --namespace paperless-v2 \
  --create-namespace

helm install paperless-v3 \
  oci://ghcr.io/codeopsms/helm-charts/paperless-ngx \
  --version 0.4.2 \
  --namespace paperless-v3 \
  --create-namespace

Give the two releases separate ingress hosts, Secrets, databases, and persistent volumes. Never attach the Paperless 2 and Paperless 3 releases to the same PostgreSQL database, Valkey state, or Paperless data/media PVCs.

For production, store PAPERLESS_SECRET_KEY, database credentials, and any external broker URL in Kubernetes Secrets and reference them through config.*.existingSecret.

OIDC provider JSON commonly contains client credentials. Reference an existing Secret with env.PAPERLESS_SOCIALACCOUNT_PROVIDERS.valueFrom.secretKeyRef rather than putting it inline in config.oidcProviders; the schema rejects configuring both sources simultaneously.

The Deployment never publishes hashes derived from Secret values in pod annotations. Increment the non-sensitive config.secretRevision whenever a change to another config value modifies the chart-managed Secret (including config.oidcProviders), a scalar env value changes, or the contents of a referenced Secret change without changing its name or key. This deliberately triggers a Paperless rollout; never put a credential or credential hash in the revision itself.

For the bundled database, postgresql.auth is the only credential and identity source. Paperless reads its database name and user from that section and its password directly from the exact Secret/key used by the PostgreSQL dependency. Fresh installations generate random PostgreSQL passwords; normal in-cluster Helm upgrades preserve the existing Secret values. Set postgresql.auth.existingSecret for production GitOps rendering or externally managed credentials. config.database.* is reserved for external databases and SQLite; a non-SQLite external database must set exactly one of config.database.password and config.database.existingSecret.name.

When the effective bundled PostgreSQL credentials are deliberately rotated, increment postgresql.credentialsRevision in the same reviewed change. The revision restarts Paperless without putting a password or password hash into Deployment annotations. A normal upgrade that keeps the credentials unchanged must leave the revision unchanged. postgresql.namespaceOverride is not supported because the Paperless Deployment and the dependency Secret need to remain in the release namespace.

The bundled Valkey connection is intentionally unauthenticated and does not use TLS. If broker authentication or TLS is required, set valkey.internal=false and provide the complete redis:// or rediss:// connection URL through config.redis.existingSecret.

Artifact Hub and GitHub Pages

GitHub Pages is active and serves the classic Helm repository. Artifact Hub indexes that published repository directly.

FieldValue
Repository namepaperless
Display namePaperless-ngx
Repository URLhttps://codeopsms.github.io/paperless-ngx-helm-chart/

The repository name is part of the Artifact Hub package URL and cannot be changed after registration.

Upgrading

From chart 0.3.x and Paperless 2

Chart 0.4.2 is a breaking upgrade from Paperless-ngx 2.20.15 to 3.3.4. Do not upgrade from an older Paperless release, do not use --reuse-values, and do not rely on helm rollback after the database migration has run.

Read UPGRADE-0.4.md completely before upgrading. It contains the required preflight checks, configuration mapping, backup and restore procedure, controlled application shutdown, validation, and recovery steps.

PostgreSQL remains at 17.6, while Valkey is updated within major version 9 from 9.0.2 to 9.0.5. No database-engine or broker major migration is performed by chart 0.4.2.

Upgrading an existing Paperless 3 installation

Chart 0.4.0 with Paperless 3.1.3, and the earlier 0.4.0-experimental.1 preview with Paperless 3.0.5, can upgrade directly to 0.4.2 with Paperless 3.3.4. Its existing v3 database does not need the v2 migration prerequisite or another Whoosh/checksum conversion. Back up and rehearse recovery, drain tasks, stop the application completely, and apply the reviewed values to the same database, Secrets, and PVCs as described in UPGRADE-0.4.md.

Paperless 3.1 fixes the explicit PAPERLESS_SEARCH_LANGUAGE startup failure, orphaned Tantivy segment growth, and custom-field workflow assignment problems documented for 3.0.5. Search language is supported again; changing it rebuilds the index. Version 3.1.3 includes the fix for GHSA-2jhj-xqrq-rmrq, uses Python 3.14 in the official image, and respects archive settings for remote OCR. Review optional OIDC role synchronization and remote OCR settings before using them. API versions remain 9 and 10. Paperless 3.2 adds a Whoosh-compatible advanced-query parser and fixes empty-file tracking and broker result-key prefixes. Retest saved searches and scanner delivery against your own data. External Tika 4 remains outside the documented Tika 3 integration.

Paperless 3.3.4 is a security maintenance release addressing the eMudhra/emSign certificate incident and vulnerable Pillow/aiohttp dependencies. The chart pins its multi-platform image digest. No additional environment variable is required for the upgrade from 3.1.3; optional new settings use the existing env mapping:

SettingUpstream default / use
PAPERLESS_CLASSIFIER_MATCH_THRESHOLD0.3; minimum classifier confidence
PAPERLESS_MATCH_REGEX_TIMEOUT_SECONDS0.1; regex timeout in seconds
PAPERLESS_CONSUMER_STORE_BARCODE_VALUESfalse; retain detected barcode contents
PAPERLESS_SCRATCH_DIR/tmp/paperless; writable temporary workspace
PAPERLESS_AI_LLM_EMBEDDING_API_KEYFalls back to the main LLM key; use valueFrom.secretKeyRef
PAPERLESS_AI_LLM_EXTRA_PARAMSEmpty; pass a JSON object as a YAML string

These examples are commented in values.yaml so upstream defaults remain effective. AI providers remain opt-in. Keep scratch space writable and large enough for document processing and export. Increment config.secretRevision when changing scalar settings or referenced Secret contents. See the tagged configuration guide and UPGRADE-0.4.md for migration details.

env.PAPERLESS_ENABLE_FLOWER now requires a YAML boolean. Set false to disable Flower; the chart renders an empty environment value because the image treats non-empty strings such as "false" as enabled. A ServiceMonitor requires both prometheus.servicemonitor.enabled=true and env.PAPERLESS_ENABLE_FLOWER=true.

Scaling and availability

replicaCount, HPA, and the RollingUpdate budgets remain configurable. The strategy type stays RollingUpdate because Helm 4 server-side apply cannot safely clear the old rollingUpdate field during a live switch to Recreate. The default (maxSurge: 0, maxUnavailable: 100%) avoids creating an extra application pod. It is not a substitute for the explicit scale-to-zero and complete pod-termination wait in the upgrade guide, which prevents old and new Paperless versions from overlapping during database migrations. This disruptive default causes downtime on every rollout until the budgets are changed after the migration has been accepted. The chart still runs the Paperless web server, consumer, scheduler, and worker processes together in one Deployment. Multiple replicas are therefore exposed as an expert option, but this all-in-one topology has not been validated as a fully highly available Paperless architecture. Test storage access modes, task scheduling, and upgrade behavior for your environment before increasing the replica count.

HPA utilization targets require matching container requests: resources.requests.cpu for a configured CPU target or Kubernetes' default CPU metric when both targets are null, and resources.requests.memory fo

Deploy paperless-ngx with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has paperless-ngx on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartpaperless-ngx is pinned at v0.4.2 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply