paperless-ngx
by HelmForge
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.1for default installs, or SQLite for small installs - Valkey subchart bundled Valkey
2.0.5for 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.ipFamilyPolicyandservice.ipFamilies - Values schema
values.schema.jsonvalidates chart inputs and improves Artifact Hub rendering
Important Notes
replicaCountis limited to0or1: 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: keepand survivehelm 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, andfra; installing more withPAPERLESS_OCR_LANGUAGESrequires running as root - the log line
Permission issue on /usr/src/paperless/...: not owned by current useris expected: volumes are owned by root with group1000and group write throughfsGroup, which Paperless-ngx can write to but reports as a warning - NFS and SMB consume volumes need
paperless.consumer.pollingIntervalbecause they do not support inotify - the Valkey password is embedded in the
PAPERLESS_REDISURL, 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 andghcr.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
| Key | Default | Description |
|---|---|---|
replicaCount | 1 | Number of Paperless-ngx pods, 0 or 1 |
strategy | {} | Deployment update strategy, Recreate when empty |
image.repository | ghcr.io/paperless-ngx/paperless-ngx | Paperless-ngx image repository |
image.tag | 3.5.1 | Paperless-ngx image tag |
containerPorts.http | 8000 | Paperless-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.timeZone | UTC | Time zone |
paperless.ocrLanguage | eng | Default OCR language, for example deu+eng |
paperless.admin.enabled | true | Create a superuser on startup |
paperless.admin.username | admin | Superuser username |
paperless.admin.password | "" | Superuser password, auto-generated when empty |
paperless.consumer.pollingInterval | 0 | Poll the consume directory every N seconds; 0 uses inotify |
paperless.extraEnv | [] | Additional PAPERLESS_* environment variables |
database.mode | auto | Database mode: auto, external, postgresql, sqlite |
database.options | "" | PAPERLESS_DB_OPTIONS driver options |
postgresql.enabled | true | Deploy the PostgreSQL subchart |
valkey.enabled | true | Deploy the Valkey subchart |
valkey.external.host | "" | External Valkey host |
persistence.data.size | 2Gi | Data PVC size (index, classifier, SQLite) |
persistence.media.size | 10Gi | Media PVC size (documents) |
persistence.consume.enabled | false | Create a consume PVC; use existingClaim for a shared scanner volume |
persistence.export.enabled | false | Create an export PVC for document_exporter |
tika.enabled | false | Deploy Apache Tika, together with gotenberg.enabled |
tika.containerPorts.http | 9998 | Tika process and Service listener |
gotenberg.enabled | false | Deploy Gotenberg, together with tika.enabled |
gotenberg.containerPorts.http | 3000 | Gotenberg process and Service listener |
resources.limits.memory | 2Gi | Paperless-ngx memory limit |
service.port | 80 | Service port exposed by Kubernetes |
ingress.enabled | false | Enable ingress |
ingress.ingressClassName | "" | Ingress class (traefik, nginx, etc.) |
gateway.enabled | false | Render a Gateway API HTTPRoute |
externalSecrets.enabled | false | Render 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.urlto 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.enabledandgotenberg.enabledare true and inspect their readiness endpoints. - If a custom listener is unreachable, verify
containerPorts.httprather than changingservice.port; the former controlsPAPERLESS_PORT, while the latter only changes the Kubernetes Service port.
More Information
- Architecture Notes
- Chart design
- Examples
- Source code and full values reference
Security Scan: paperless-ngx
| Framework | Score |
|---|---|
| MITRE + NSA + SOC2 | 89.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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartpaperless-ngx is pinned at v1.1.6 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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