paperless-ngx

by HelmForge

Helm chartv1.1.6App 3.5.1Apache-2.0Verified publisher

Paperless-ngx document management system with OCR, PostgreSQL, Valkey, persistent media storage, and optional Tika/Gotenberg

About this chart

Paperless-ngx

A Helm chart for deploying Paperless-ngx on Kubernetes with PostgreSQL or SQLite, Valkey, persistent document storage, optional Apache Tika and Gotenberg, Gateway API, Ingress, and External Secrets.

Installation

HTTPS Repository

helm repo add helmforge https://repo.helmforge.dev
helm repo update
helm install paperless-ngx helmforge/paperless-ngx

OCI Registry

helm install paperless-ngx oci://ghcr.io/helmforgedev/helm/paperless-ngx

Features

  • Official Paperless-ngx image from ghcr.io/paperless-ngx/paperless-ngx
  • PostgreSQL subchart bundled PostgreSQL 2.1.1 for default installs, or SQLite for small installs
  • Valkey subchart bundled Valkey 2.0.5 for the task queue
  • External services support for managed PostgreSQL and Valkey
  • Persistent volumes for data, media, consume, and export directories, each with existing-claim support
  • Office documents and emails through optional Apache Tika and Gotenberg Deployments
  • Rootless by default with a restricted security context
  • Superuser bootstrap with a generated password stored in a Secret
  • Ingress support configurable ingress with TLS
  • Gateway API HTTPRoute support for clusters using Gateway API
  • External Secrets Operator integration for the external database password
  • Dual-stack service controls through service.ipFamilyPolicy and service.ipFamilies
  • Values schema values.schema.json validates chart inputs and improves Artifact Hub rendering

Important Notes

  • replicaCount is limited to 0 or 1: the web server, task worker, scheduler, and consumer run in one container
  • the default update strategy is Recreate, so two pods never share the data and media volumes
  • PVCs keep helm.sh/resource-policy: keep and survive helm uninstall; delete them manually to remove documents
  • set paperless.url (or an ingress host) to the public URL, otherwise logins through that hostname fail CSRF checks
  • the image ships OCR languages eng, deu, ita, spa, and fra; installing more with PAPERLESS_OCR_LANGUAGES requires running as root
  • the log line Permission issue on /usr/src/paperless/...: not owned by current user is expected: volumes are owned by root with group 1000 and group write through fsGroup, which Paperless-ngx can write to but reports as a warning
  • NFS and SMB consume volumes need paperless.consumer.pollingInterval because they do not support inotify
  • the Valkey password is embedded in the PAPERLESS_REDIS URL, so a password you supply must be URL-safe (no @, :, /, or %); the passwords generated by the Valkey subchart are alphanumeric
  • the default image tag is 3.5.1, validated against GitHub Releases and ghcr.io/paperless-ngx/paperless-ngx:3.5.1
  • this chart intentionally does not keep Chart.lock; dependencies are resolved by the repository release workflow

Architecture

Ingress or Gateway API traffic reaches the Paperless Service, which targets the named HTTP port on the single application pod. That container runs the web server, task worker, scheduler, and consumer. PostgreSQL or SQLite stores metadata, Valkey provides the task broker, and persistent volumes hold the search index and documents. Optional Tika and Gotenberg Deployments handle office documents and email conversion. See Architecture Notes and Chart design for boundaries and trade-offs.

Quick Start

helm install paperless-ngx oci://ghcr.io/helmforgedev/helm/paperless-ngx \
  --set ingress.enabled=true \
  --set ingress.ingressClassName=traefik \
  --set ingress.hosts[0].host=paperless.example.com

Read the generated superuser password:

kubectl get secret paperless-ngx-admin -o jsonpath='{.data.admin-password}' | base64 -d; echo

Example Configurations

Basic Install

paperless:
  url: https://paperless.example.com
  timeZone: Europe/Berlin
  ocrLanguage: deu+eng

ingress:
  enabled: true
  ingressClassName: traefik
  hosts:
    - host: paperless.example.com
      paths:
        - path: /
          pathType: Prefix

Office Documents, Emails, and a Scanner Inbox

tika:
  enabled: true

gotenberg:
  enabled: true

persistence:
  consume:
    existingClaim: scanner-inbox

paperless:
  consumer:
    pollingInterval: 60

SQLite

postgresql:
  enabled: false

External Services

database:
  mode: external
  external:
    host: postgres.example.internal
    existingSecret: paperless-db
  options: "sslmode=require"

postgresql:
  enabled: false

valkey:
  enabled: false
  external:
    host: valkey.example.internal
    existingSecret: paperless-valkey

Gateway API

gateway:
  enabled: true
  parentRefs:
    - name: shared-gateway
      namespace: gateway-system
  hostnames:
    - paperless.example.com

Dual-Stack Service

service:
  ipFamilyPolicy: PreferDualStack
  ipFamilies:
    - IPv4
    - IPv6

External Secrets

database:
  mode: external
  external:
    host: postgres.example.internal
    existingSecret: paperless-db

postgresql:
  enabled: false

externalSecrets:
  enabled: true
  secretStoreRef:
    name: platform-secrets
    kind: ClusterSecretStore
  data:
    - secretKey: database-password
      remoteRef:
        key: paperless/database
        property: password

Key Values

KeyDefaultDescription
replicaCount1Number of Paperless-ngx pods, 0 or 1
strategy{}Deployment update strategy, Recreate when empty
image.repositoryghcr.io/paperless-ngx/paperless-ngxPaperless-ngx image repository
image.tag3.5.1Paperless-ngx image tag
containerPorts.http8000Paperless-ngx process listener configured through PAPERLESS_PORT
paperless.url""Public URL, derived from the first ingress host or gateway hostname when empty
paperless.secretKey""Secret key, auto-generated when empty
paperless.existingSecret""Existing secret holding the secret key
paperless.timeZoneUTCTime zone
paperless.ocrLanguageengDefault OCR language, for example deu+eng
paperless.admin.enabledtrueCreate a superuser on startup
paperless.admin.usernameadminSuperuser username
paperless.admin.password""Superuser password, auto-generated when empty
paperless.consumer.pollingInterval0Poll the consume directory every N seconds; 0 uses inotify
paperless.extraEnv[]Additional PAPERLESS_* environment variables
database.modeautoDatabase mode: auto, external, postgresql, sqlite
database.options""PAPERLESS_DB_OPTIONS driver options
postgresql.enabledtrueDeploy the PostgreSQL subchart
valkey.enabledtrueDeploy the Valkey subchart
valkey.external.host""External Valkey host
persistence.data.size2GiData PVC size (index, classifier, SQLite)
persistence.media.size10GiMedia PVC size (documents)
persistence.consume.enabledfalseCreate a consume PVC; use existingClaim for a shared scanner volume
persistence.export.enabledfalseCreate an export PVC for document_exporter
tika.enabledfalseDeploy Apache Tika, together with gotenberg.enabled
tika.containerPorts.http9998Tika process and Service listener
gotenberg.enabledfalseDeploy Gotenberg, together with tika.enabled
gotenberg.containerPorts.http3000Gotenberg process and Service listener
resources.limits.memory2GiPaperless-ngx memory limit
service.port80Service port exposed by Kubernetes
ingress.enabledfalseEnable ingress
ingress.ingressClassName""Ingress class (traefik, nginx, etc.)
gateway.enabledfalseRender a Gateway API HTTPRoute
externalSecrets.enabledfalseRender an ExternalSecret for the external database password

GitOps Renderers

The chart generates the secret key and superuser password once and reuses them on upgrades through lookup. Renderers such as Argo CD run helm template without cluster access, so lookup returns nothing: the values are regenerated on every render and the checksum/secret annotation restarts the pod on every sync. Provide the secrets yourself in that case:

paperless:
  existingSecret: paperless-app          # key: secret-key
  admin:
    existingSecret: paperless-admin      # key: admin-password

Alternatively set paperless.secretKey and paperless.admin.password explicitly, or disable paperless.admin.enabled after the first start.

Operations

The post-install notes show the superuser password command, logs for the application and init containers, the document sanity checker, and an export command. Back up the database and the media volume before upgrades; document_exporter writes documents and metadata to the export directory. Keep the secret key stable across upgrades to preserve sessions and tokens.

Troubleshooting

  • If the application pod is not ready, inspect the PostgreSQL and Valkey init container logs; the first start also runs database migrations.
  • If login fails with CSRF errors, set paperless.url to the exact public URL.
  • If files on NFS or SMB are ignored, set a positive paperless.consumer.pollingInterval.
  • If office documents fail, confirm both tika.enabled and gotenberg.enabled are true and inspect their readiness endpoints.
  • If a custom listener is unreachable, verify containerPorts.http rather than changing service.port; the former controls PAPERLESS_PORT, while the latter only changes the Kubernetes Service port.

More Information

Security Scan: paperless-ngx

FrameworkScore
MITRE + NSA + SOC289.82684%

Security posture acceptable.

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 v1.1.6 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