docmost
by HelmForge
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.0for default installs - Redis subchart bundled Redis
3.2.1for 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.ipFamilyPolicyandservice.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.jsonvalidates chart inputs and improves Artifact Hub rendering
Important Notes
replicaCountvalues greater than1requirestorage.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 publisheddocmost/docmost:0.98.0container 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
| Key | Default | Description |
|---|---|---|
replicaCount | 1 | Number 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.repository | docker.io/docmost/docmost | Docmost container image repository |
image.tag | 0.96.0 | Docmost image tag |
containerPorts.http | 3000 | Docmost 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.existingSecretAppSecretKey | app-secret | Key for the app secret inside docmost.existingSecret |
docmost.jwtTokenExpiresIn | 30d | JWT expiration |
docmost.disableTelemetry | false | Disable anonymous upstream telemetry collection |
database.mode | auto | Database mode: auto, external, postgresql |
postgresql.enabled | true | Deploy PostgreSQL subchart |
postgresql.auth.database | docmost | PostgreSQL database created by the subchart |
postgresql.auth.username | docmost | PostgreSQL application user created by the subchart |
redis.enabled | true | Deploy Redis subchart |
redis.auth.enabled | true | Enable Redis password authentication |
storage.mode | local | File storage mode: local or s3 |
storage.local.enabled | true | Create or mount local uploads storage |
storage.local.size | 10Gi | Local uploads PVC size |
storage.s3.bucket | "" | S3 bucket name |
backup.enabled | false | Enable the PostgreSQL backup CronJob |
backup.schedule | 0 3 * * * | Backup Cron schedule |
backup.s3.credentialsFromPodIdentity | false | Use EKS Pod Identity or IRSA instead of static S3 keys |
backup.serviceAccount.create | true | Create the dedicated backup ServiceAccount |
backup.serviceAccount.annotations | {} | Workload identity annotations for the backup ServiceAccount |
resources.requests.memory | 512Mi | Docmost memory request |
resources.limits.memory | 1Gi | Docmost memory limit |
service.port | 80 | Service port exposed by Kubernetes |
service.ipFamilyPolicy | "" | Kubernetes service IP family policy |
service.ipFamilies | [] | Kubernetes service IP families |
serviceAccount.automountServiceAccountToken | false | Mount the Kubernetes API token into Docmost pods |
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 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.httpappears both as the container port and as thePORTenvironment variable. Do not useservice.portto change the process. - If the application starts but cannot persist data, inspect the PostgreSQL and
Redis pod logs, then verify the rendered
DATABASE_URLandREDIS_URLSecret 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_SECRETthroughdocmost.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
- Architecture Notes
- Chart design
- Examples
- Source code and full values reference
Security Scan: docmost
| Framework | Score |
|---|---|
| MITRE + NSA + SOC2 | 87.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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartdocmost is pinned at v1.4.11 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