docmost

by HelmForge

Helm chartv1.4.11App 0.98.0Apache-2.0Verified publisher

Docmost collaborative wiki and documentation software with PostgreSQL, Redis, local storage, and optional S3

About this chart

Docmost

A Helm chart for deploying Docmost on Kubernetes with PostgreSQL, Redis, local storage, Gateway API, Ingress, External Secrets, and optional S3-compatible object storage.

Installation

HTTPS Repository

helm repo add helmforge https://repo.helmforge.dev
helm repo update
helm install docmost helmforge/docmost

OCI Registry

helm install docmost oci://ghcr.io/helmforgedev/helm/docmost

Features

  • Official Docmost image based on docmost/docmost
  • PostgreSQL subchart bundled PostgreSQL 2.2.0 for default installs
  • Redis subchart bundled Redis 3.2.1 for default installs
  • External services support for managed PostgreSQL and Redis
  • Local or S3 storage for uploaded files
  • Ingress support configurable ingress with TLS
  • Gateway API HTTPRoute support for clusters using Gateway API
  • External Secrets Operator integration for secret material sourced outside Helm
  • Dual-stack service controls through service.ipFamilyPolicy and service.ipFamilies
  • Optional backup CronJob for PostgreSQL dumps uploaded to S3-compatible storage
  • Workload identity backups with a dedicated annotated ServiceAccount and no static S3 keys
  • Common resource annotations with resource-specific annotations taking precedence
  • Values schema values.schema.json validates chart inputs and improves Artifact Hub rendering

Important Notes

  • replicaCount values greater than 1 require storage.mode=s3
  • Docmost requires PostgreSQL and Redis
  • local storage uses /app/data/storage
  • S3 mode uses the official AWS_S3_* environment variables documented by Docmost
  • the default image tag is 0.98.0, validated against the published docmost/docmost:0.98.0 container image
  • upstream telemetry can be disabled with docmost.disableTelemetry=true
  • this chart intentionally does not keep Chart.lock; dependencies are resolved by the repository release workflow

Architecture

Traffic reaches the named http container port through the Kubernetes Service. containerPorts.http changes the actual Docmost process listener by setting the upstream PORT environment variable; service.port changes only the Kubernetes-facing port. PostgreSQL and Redis may be bundled or external, while uploads use either a local PVC or S3-compatible storage. See Chart design for trust boundaries and production trade-offs.

The pod does not mount a Kubernetes API token by default. Set serviceAccount.automountServiceAccountToken=true only when a concrete integration requires Kubernetes API credentials.

Upgrade to 0.98.0

Keep APP_SECRET stable: the AES-256-GCM encryption service derives its key from this existing secret. Back up PostgreSQL and uploaded files before upgrading. The chart reuses its generated application Secret on connected Helm upgrades; explicitly manage docmost.appSecret when rendering offline, or point docmost.existingSecret at a secret you own so the chart neither creates nor rotates one.

This release switches to a hardened Docker image base (DHI) without shell or curl, and brings page covers, user profiles, and upstream fixes. Review the official release notes. The bundled PostgreSQL 2.2.1 and Redis 3.2.2 subcharts are updated per GR-074.

Quick Start

helm install docmost oci://ghcr.io/helmforgedev/helm/docmost \
  --set ingress.enabled=true \
  --set ingress.ingressClassName=traefik \
  --set ingress.hosts[0].host=docmost.example.com \
  --set ingress.hosts[0].paths[0].path=/ \
  --set ingress.hosts[0].paths[0].pathType=Prefix

Example Configurations

Basic Install

docmost:
  appUrl: https://docmost.example.com

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

External Services with S3

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

postgresql:
  enabled: false

redis:
  enabled: false
  external:
    host: redis.example.internal
    existingSecret: docmost-redis

storage:
  mode: s3
  s3:
    bucket: docmost
    endpoint: https://minio.example.internal
    existingSecret: docmost-s3

Gateway API

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

Dual-Stack Service

service:
  ipFamilyPolicy: PreferDualStack
  ipFamilies:
    - IPv4
    - IPv6

External Secrets

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

PostgreSQL Backup to S3

backup:
  enabled: true
  schedule: "0 3 * * *"
  s3:
    endpoint: https://minio.example.internal
    bucket: backups
    prefix: docmost
    existingSecret: docmost-backup-s3

For Amazon S3 with IRSA, omit static credentials and annotate the dedicated backup ServiceAccount:

backup:
  enabled: true
  serviceAccount:
    annotations:
      eks.amazonaws.com/role-arn: arn:aws:iam::123456789012:role/docmost-backup
  s3:
    endpoint: https://s3.amazonaws.com
    region: us-east-1
    bucket: backups
    credentialsFromPodIdentity: true

For EKS Pod Identity, do not add the IRSA annotation. Set a stable ServiceAccount name, install the EKS Pod Identity Agent add-on when the cluster does not use EKS Auto Mode, and create an AWS-side association for the cluster, namespace, and ServiceAccount:

backup:
  enabled: true
  serviceAccount:
    name: docmost-backup
  s3:
    endpoint: https://s3.amazonaws.com
    region: us-east-1
    bucket: backups
    credentialsFromPodIdentity: true

Key Values

KeyDefaultDescription
replicaCount1Number of Docmost application pods. Values greater than 1 require storage.mode=s3
strategy{}Deployment update strategy. Defaults to Recreate while the local uploads PVC is in use, since that volume is ReadWriteOnce, and to RollingUpdate otherwise
image.repositorydocker.io/docmost/docmostDocmost container image repository
image.tag0.96.0Docmost image tag
containerPorts.http3000Docmost process listener and declared container port
docmost.appUrl""External Docmost URL
docmost.appSecret""Application secret, auto-generated when empty
docmost.existingSecret""Existing secret holding the app secret. Takes precedence over appSecret and stops the chart creating or rotating one
docmost.existingSecretAppSecretKeyapp-secretKey for the app secret inside docmost.existingSecret
docmost.jwtTokenExpiresIn30dJWT expiration
docmost.disableTelemetryfalseDisable anonymous upstream telemetry collection
database.modeautoDatabase mode: auto, external, postgresql
postgresql.enabledtrueDeploy PostgreSQL subchart
postgresql.auth.databasedocmostPostgreSQL database created by the subchart
postgresql.auth.usernamedocmostPostgreSQL application user created by the subchart
redis.enabledtrueDeploy Redis subchart
redis.auth.enabledtrueEnable Redis password authentication
storage.modelocalFile storage mode: local or s3
storage.local.enabledtrueCreate or mount local uploads storage
storage.local.size10GiLocal uploads PVC size
storage.s3.bucket""S3 bucket name
backup.enabledfalseEnable the PostgreSQL backup CronJob
backup.schedule0 3 * * *Backup Cron schedule
backup.s3.credentialsFromPodIdentityfalseUse EKS Pod Identity or IRSA instead of static S3 keys
backup.serviceAccount.createtrueCreate the dedicated backup ServiceAccount
backup.serviceAccount.annotations{}Workload identity annotations for the backup ServiceAccount
resources.requests.memory512MiDocmost memory request
resources.limits.memory1GiDocmost memory limit
service.port80Service port exposed by Kubernetes
service.ipFamilyPolicy""Kubernetes service IP family policy
service.ipFamilies[]Kubernetes service IP families
serviceAccount.automountServiceAccountTokenfalseMount the Kubernetes API token into Docmost pods
ingress.enabledfalseEnable ingress
ingress.ingressClassName""Ingress class (traefik, nginx, etc.)
gateway.enabledfalseRender a Gateway API HTTPRoute
externalSecrets.enabledfalseRender an ExternalSecret for application credentials

Operations

The post-install notes include port-forward, application logs, PostgreSQL logs, Redis logs, and upgrade reminders. For production upgrades, take a database backup first and verify the secret references used by database.external.*, redis.external.*, storage.s3.*, and backup.s3.*.

Troubleshooting

  • If probes fail after changing the listener, confirm that containerPorts.http appears both as the container port and as the PORT environment variable. Do not use service.port to change the process.
  • If the application starts but cannot persist data, inspect the PostgreSQL and Redis pod logs, then verify the rendered DATABASE_URL and REDIS_URL Secret references.
  • If uploaded files disappear across replicas, use storage.mode=s3; local storage is intentionally limited to one Docmost replica.
  • If encrypted values become unreadable after an upgrade or restore, restore the same APP_SECRET through docmost.existingSecret.
  • For S3 failures, verify endpoint reachability, bucket policy, path-style mode, and both keys in storage.s3.existingSecret.
  • For IRSA backup failures, verify backup.s3.region, the dedicated ServiceAccount role annotation, and the IAM trust policy. For EKS Pod Identity, verify the agent add-on and the AWS-side cluster, namespace, and ServiceAccount association; Pod Identity does not use the IRSA annotation.

More Information

Security Scan: docmost

FrameworkScore
MITRE + NSA + SOC287.87879%

✅ Security posture acceptable.

| commonAnnotations | {} | Annotations added to all chart-owned resources |

Deploy docmost with OpenTenant

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