paperless

by zekker6

Helm chartv11.20.0App 3.5.1Verified publisher

Paperless - Index and archive all of your scanned paper documents

About this chart

paperless

Paperless - Index and archive all of your scanned paper documents

This chart is not maintained by the upstream project and any issues with the chart should be raised here

Chart taken from k8s-at-home repo here.

Breaking changes

10.23.0 -> 11.0.0

Upgrades paperless-ngx from 2.20.15 to 3.0.0. Read the v3 migration guide before upgrading.

Upstream only supports upgrading to v3 from appVersion 2.20.15. If you are on an older appVersion, upgrade to chart 10.23.0 first.

PAPERLESS_SECRET_KEY is now required

Paperless-ngx v3 refuses to start when PAPERLESS_SECRET_KEY is unset. The chart does not provide a default, so you must set env.PAPERLESS_SECRET_KEY yourself:

env:
  PAPERLESS_SECRET_KEY: "<your key>"

Existing installations were implicitly running with the built-in default of appVersion 2.x. To keep sessions and signed tokens valid, set it to that value:

env:
  PAPERLESS_SECRET_KEY: "e11fl1oa-*ytql8p)(06fbj4ukrlo+n7k&q5+$1md7i+mge=ee"

Otherwise generate a new one with python3 -c "import secrets; print(secrets.token_urlsafe(64))" and accept that existing sessions and tokens are invalidated. The literal value change-me is rejected by paperless-ngx.

PAPERLESS_DBENGINE must be explicit

PostgreSQL and MariaDB users must now set the engine instead of relying on it being inferred from PAPERLESS_DBHOST:

env:
  PAPERLESS_DBENGINE: postgresql
  PAPERLESS_DBHOST: postgres

Other upstream changes to check before upgrading

  • Document and thumbnail encryption is removed. Run decrypt_documents before upgrading.
  • PAPERLESS_OCR_MODE=skip / skip_noarchive and PAPERLESS_OCR_SKIP_ARCHIVE_FILE are removed, replaced by PAPERLESS_OCR_MODE plus PAPERLESS_ARCHIVE_FILE_GENERATION.
  • Consumer settings renamed: PAPERLESS_CONSUMER_POLLING -> PAPERLESS_CONSUMER_POLLING_INTERVAL, PAPERLESS_CONSUMER_INOTIFY_DELAY -> PAPERLESS_CONSUMER_STABILITY_DELAY. PAPERLESS_CONSUMER_IGNORE_PATTERNS is now regex instead of fnmatch.
  • PAPERLESS_CONSUMER_BARCODE_SCANNER is removed, zxing-cpp is the only backend.
  • Advanced database options (PAPERLESS_DBSSLMODE, PAPERLESS_DB_POOLSIZE, etc.) are deprecated in favour of a single PAPERLESS_DB_OPTIONS string.
  • Duplicate documents are no longer rejected by default. Set PAPERLESS_CONSUMER_DELETE_DUPLICATES: "true" to restore the old behaviour.
  • Pre/post consume scripts no longer receive positional arguments, only environment variables.
  • The search index is rebuilt from scratch on first start (Whoosh replaced by Tantivy) and task history is cleared.

9.94.0 -> 10.0.0

The chart no longer includes postgresql and redis charts by default. Previously, it was using a bitnami/postgresql and bitnami/redis which became obsolete after introducing a paid subscription for bitnami docker images. See these issues for more details:

  • https://github.com/bitnami/charts/issues/35164
  • https://github.com/zekker6/helm-charts/issues/825

Source Code

Requirements

Kubernetes: >=1.16.0-0

Dependencies

RepositoryNameVersion
https://zekker6.github.io/helm-chartscommon0.5.2

TL;DR

helm repo add zekker6 https://zekker6.github.io/helm-charts/
helm repo update
helm install paperless zekker6/paperless

Installing the Chart

To install the chart with the release name paperless

helm install paperless zekker6/paperless

Uninstalling the Chart

To uninstall the paperless deployment

helm uninstall paperless

The command removes all the Kubernetes components associated with the chart including persistent volumes and deletes the release.

Configuration

Read through the values.yaml file. It has several commented out suggested values. Other values may be used from the values.yaml from the common library.

Specify each parameter using the --set key=value[,key=value] argument to helm install.

helm install paperless \
  --set env.TZ="America/New York" \
    zekker6/paperless

Alternatively, a YAML file that specifies the values for the above parameters can be provided while installing the chart.

helm install paperless zekker6/paperless -f values.yaml

Custom configuration

N/A

Values

Important: When deploying an application Helm chart you can add more values from our common library chart here

KeyTypeDefaultDescription
envobjectSee belowSee the following files for additional environment variables: https://github.com/paperless-ngx/paperless-ngx/tree/main/docker/compose/ https://github.com/paperless-ngx/paperless-ngx/blob/main/paperless.conf.example
env.COMPOSE_PROJECT_NAMEstring"paperless"Project name
env.PAPERLESS_DBENGINEstringnilDatabase engine to use: sqlite, postgresql or mariadb. Must be set explicitly when using PostgreSQL or MariaDB since appVersion 3.0.0.
env.PAPERLESS_DBHOSTstringnilDatabase host to use
env.PAPERLESS_OCR_LANGUAGEstring"eng"OCR languages to install
env.PAPERLESS_PORTstring"8000"Port to use
env.PAPERLESS_REDISstringnilRedis to use
env.PAPERLESS_SECRET_KEYstringnilRequired since appVersion 3.0.0. Paperless refuses to start when this is unset. Generate one with: python3 -c "import secrets; print(secrets.token_urlsafe(64))" Upgrading from a chart version older than 11.0.0? Set this to e11fl1oa-*ytql8p)(06fbj4ukrlo+n7k&q5+$1md7i+mge=ee (the built-in default of appVersion 2.x) to keep existing sessions and tokens valid, or pick a new value and accept that they are invalidated.
image.pullPolicystring"IfNotPresent"image pull policy
image.repositorystring"ghcr.io/paperless-ngx/paperless-ngx"image repository
image.tagstringchart.appVersionimage tag
ingress.mainobjectSee values.yamlEnable and configure ingress settings for the chart under this key.
persistence.consumeobjectSee values.yamlConfigure volume to monitor for new documents.
persistence.dataobjectSee values.yamlConfigure persistence for data.
persistence.exportobjectSee values.yamlConfigure export volume.
persistence.mediaobjectSee values.yamlConfigure persistence for media.
serviceobjectSee values.yamlConfigures service settings for the chart.

Older versions

A historical overview of changes can be found on ArtifactHUB

Support


Autogenerated from chart metadata using helm-docs v1.14.2

Deploy paperless with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has paperless 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 is pinned at v11.20.0 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