paperless-ngx

by rtomik

Helm chartv0.0.5App 2.20.3Verified publisher

Paperless-ngx helm chart for Kubernetes

About this chart

Paperless-ngx Helm Chart

A Helm chart for deploying Paperless-ngx document management system on Kubernetes.

Introduction

This chart deploys Paperless-ngx on a Kubernetes cluster using the Helm package manager.

Paperless-ngx is a community-supported supercharged version of paperless: scan, index and archive all your physical documents.

Source code can be found here:

  • https://github.com/rtomik/helm-charts/tree/main/charts/paperless-ngx

Prerequisites

  • Kubernetes 1.19+
  • Helm 3.0+
  • PV provisioner support in the underlying infrastructure
  • External PostgreSQL database (required)
  • External Redis server (required)

External Dependencies

This chart requires external PostgreSQL and Redis services. It does not deploy these dependencies to avoid resource conflicts on centralized servers.

PostgreSQL Setup

Paperless-ngx requires PostgreSQL 11+ as its database backend. Ensure you have:

  • A PostgreSQL database created for Paperless-ngx
  • Database credentials configured in values.yaml or via secrets

Redis Setup

Redis is required for background task processing. Ensure you have:

  • A Redis server accessible from the cluster
  • Connection details configured in values.yaml
  • Optional: Redis authentication credentials (username/password)
  • Optional: Redis key prefix for sharing one Redis server among multiple Paperless instances

The chart supports all Redis authentication methods:

  • No authentication: redis://host:port/database
  • Password only (requirepass): redis://:password@host:port/database
  • Username and password (Redis 6.0+ ACL): redis://username:password@host:port/database

Installing the Chart

To install the chart with the release name paperless-ngx:

$ helm repo add paperless-chart https://rtomik.github.io/helm-charts
$ helm install paperless-ngx paperless-chart/paperless-ngx

Or install directly from this repository:

$ git clone https://github.com/rtomik/helm-charts.git
$ cd helm-charts/charts/paperless-ngx
$ helm install paperless-ngx .

Tip: List all releases using helm list

Configuration

The following table lists the configurable parameters and their default values.

Global Parameters

NameDescriptionValue
nameOverrideString to partially override the release name""
fullnameOverrideString to fully override the release name""

Image Parameters

NameDescriptionValue
image.repositoryPaperless-ngx image repositoryghcr.io/paperless-ngx/paperless-ngx
image.tagPaperless-ngx image taglatest
image.pullPolicyPaperless-ngx image pull policyIfNotPresent

External Dependencies

NameDescriptionValue
postgresql.external.enabledEnable external PostgreSQL configurationtrue
postgresql.external.hostExternal PostgreSQL hostpostgresql.default.svc.cluster.local
postgresql.external.portExternal PostgreSQL port5432
postgresql.external.databaseExternal PostgreSQL database namepaperless
postgresql.external.usernameExternal PostgreSQL usernamepaperless
postgresql.external.existingSecretExisting secret with PostgreSQL credentials""
postgresql.external.passwordKeyKey in existing secret for PostgreSQL passwordpostgresql-password
redis.external.enabledEnable external Redis configurationtrue
redis.external.hostExternal Redis hostredis.default.svc.cluster.local
redis.external.portExternal Redis port6379
redis.external.databaseExternal Redis database number0
redis.external.usernameRedis username (Redis 6.0+ with ACL)""
redis.external.passwordRedis password (leave empty if no auth required)""
redis.external.existingSecretExisting secret with Redis credentials""
redis.external.passwordKeyKey in existing secret for Redis passwordredis-password
redis.external.prefixPrefix for Redis keys/channels (for multi-instance)""

Security Configuration

NameDescriptionValue
config.secretKey.existingSecretName of existing secret for Django secret key""
config.secretKey.secretKeyKey in the existing secret for Django secret keysecret-key
config.admin.userAdmin username to create on startup""
config.admin.passwordAdmin password (use existingSecret for production)""
config.admin.emailAdmin email addressroot@localhost
config.admin.existingSecretName of existing secret for admin credentials""

Application Configuration

NameDescriptionValue
config.urlExternal URL for Paperless-ngx (e.g., https://paperless.domain.com)""
config.allowedHostsComma-separated list of allowed hosts*
config.timeZoneApplication timezoneUTC
config.ocr.languageOCR language (3-letter code)eng
config.ocr.modeOCR mode (skip, redo, force)skip
config.consumer.recursiveEnable recursive consumption directory watchingfalse
config.consumer.subdirsAsTagsUse subdirectory names as tagsfalse

Persistence Parameters

NameDescriptionValue
persistence.data.enabledEnable persistence for data directorytrue
persistence.data.existingClaimUse an existing PVC for data directory""
persistence.data.sizeSize of data PVC1Gi
persistence.media.enabledEnable persistence for media directorytrue
persistence.media.existingClaimUse an existing PVC for media directory""
persistence.media.sizeSize of media PVC10Gi
persistence.consume.enabledEnable persistence for consume directorytrue
persistence.consume.existingClaimUse an existing PVC for consume directory""
persistence.consume.sizeSize of consume PVC5Gi
persistence.export.enabledEnable persistence for export directorytrue
persistence.export.existingClaimUse an existing PVC for export directory""
persistence.export.sizeSize of export PVC1Gi

Service Parameters

NameDescriptionValue
service.typeKubernetes Service typeClusterIP
service.portService HTTP port8000

Ingress Parameters

NameDescriptionValue
ingress.enabledEnable ingress record generationfalse
ingress.classNameIngressClass name""
ingress.annotationsAdditional annotations for the Ingress resourceSee values.yaml
ingress.hostsArray of host and path objectsSee values.yaml
ingress.tlsTLS configurationSee values.yaml

Usage Examples

Basic Installation

helm install paperless-ngx . \
  --set postgresql.external.host=my-postgres.example.com \
  --set postgresql.external.password=secretpassword \
  --set redis.external.host=my-redis.example.com

Production Installation with External Secrets

# values-production.yaml
config:
  url: "https://paperless.example.com"
  allowedHosts: "paperless.example.com"
  secretKey:
    existingSecret: "paperless-secrets"
    secretKey: "django-secret-key"
  admin:
    user: "admin"
    existingSecret: "paperless-admin-secrets"

postgresql:
  # External PostgreSQL connection details
  external:
    enabled: true
    host: "postgres-cluster-pooler.dbs.svc.cluster.local"
    port: 5432
    database: "paperless"
    username: "paperless"
    # Use existingSecret for credentials
    existingSecret: "paperless-db-credentials"
    passwordKey: "password"

redis:
  external:
    host: "redis.cache.svc.cluster.local"
    port: 6379
    database: 0
    # Use existingSecret for Redis credentials
    existingSecret: "paperless-redis-credentials"
    passwordKey: "password"
    # Optional: Use prefix to share Redis among multiple instances
    prefix: "paperless-prod"

ingress:
  enabled: true
  className: "nginx"
  hosts:
    - host: paperless.example.com
      paths:
        - path: /
          pathType: Prefix
  tls:
    - secretName: paperless-tls
      hosts:
        - paperless.example.com
helm install paperless-ngx . -f values-production.yaml

Redis Authentication Examples

Redis with Password Only (requirepass)

helm install paperless-ngx . \
  --set redis.external.host=redis.example.com \
  --set redis.external.password=myredispassword

Or with existing secret:

redis:
  external:
    host: "redis.example.com"
    existingSecret: "redis-auth-secret"
    passwordKey: "redis-password"

Redis with Username and Password (Redis 6.0+ ACL)

helm install paperless-ngx . \
  --set redis.external.host=redis.example.com \
  --set redis.external.username=paperless-user \
  --set redis.external.password=myredispassword

Multiple Paperless Instances on One Redis Server

Use the prefix parameter to avoid key collisions:

# Instance 1
redis:
  ex

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.0.5 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