appwrite

by HelmForge

Helm chartv2.1.4App 2.7.4Apache-2.0Verified publisher

Appwrite self-hosted backend-as-a-service platform with MariaDB and Redis

About this chart

Appwrite Helm Chart

Self-hosted backend-as-a-service platform for web, mobile, and Flutter developers. This chart deploys Appwrite with MariaDB and Redis on Kubernetes.

Features

  • Appwrite API server, console, and realtime WebSocket service
  • Side-effect-free API health probes using /v1/health/version
  • 15 background workers for jobs, screenshots, executions, notifications, webhooks, deletes, databases, builds, certificates, functions, mails, messaging, migrations, and stats
  • Schedulers for functions, messages, and executions
  • Maintenance task for automated housekeeping
  • MariaDB subchart (HelmForge) or external database
  • Redis subchart (HelmForge) or external cache
  • Shared PVC volumes for uploads, cache, certificates, functions, builds, and sites
  • Ingress with path-based routing (API, console, realtime)
  • Configurable SMTP for outgoing emails
  • Auto-generated encryption key and JWT secret

Quick Start

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

With ingress:

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

Architecture

This chart deploys Appwrite as multiple Kubernetes Deployments, each running a different entrypoint of the same appwrite/appwrite image:

ComponentEntrypointReplicas
APIapp/http.phpConfigurable
Consoleappwrite/new image1
Realtimeapp/realtime.phpConfigurable
Workers (15)Official worker-* entrypointsConfigurable per worker
SchedulersOfficial schedule-* entrypoints1 per enabled scheduler
Maintenancemaintenance1

Note: The openruntimes-executor, assistant, and browser services are not included in this alpha release. Functions execution requires a separate executor setup.

The architecture guide describes component ownership, data flows, persistence, and external-service boundaries in detail. The chart's design document records production and security trade-offs.

Ingress Routing

When ingress is enabled, requests are routed by path:

  • /v1/realtime → Realtime service (WebSocket)
  • /v1/* → API service
  • /* → Console (web UI)

Default Values

KeyDefaultDescription
image.repositorydocker.io/appwrite/appwriteAppwrite server image
image.tag2.7.4Image tag
console.image.repositorydocker.io/appwrite/newConsole image
console.image.tag1.2.181-self-hostedConsole image tag
appwrite.localeenApplication locale
appwrite.domain"" (auto-detected)Appwrite domain
appwrite.openSslKeyV1"" (auto-generated)64-char hex encryption key
api.replicaCount1API server replicas
realtime.replicaCount1Realtime server replicas
persistence.enabledtrueEnable shared PVCs
persistence.uploads.size10GiUploads PVC size
ingress.enabledfalseEnable ingress
ingress.ingressClassNametraefikIngress class
mariadb.enabledtrueDeploy MariaDB subchart
redis.enabledtrueDeploy Redis subchart

See values.yaml for the full configuration reference.

Security

The chart disables ServiceAccount token automount by default, drops Linux capabilities, disables privilege escalation, applies RuntimeDefault seccomp, and enables listener-specific NetworkPolicies by default. Token automount is configurable for Appwrite application workloads, but backup Pods always disable it. Appwrite credentials can be read from existing Secrets; plaintext values are intended only for development.

The official Appwrite image requires writable runtime paths and is not forced to a non-root UID. Restrict networkPolicy.egress to the SMTP, OAuth, webhook, database, Redis, object-storage, and integration endpoints used by your installation. Use TLS at Ingress or Gateway API, keep the generated encryption Secret across upgrades, and back up both MariaDB and every shared PVC.

See the security guide for the trust boundary and a production checklist.

Upgrade Notes

Appwrite 2.7.4

The 2.7.4 patch release rebuilds on PHP 8.5.13 fixing OPcache DateTime worker crashes and upgrades the function executor to 1.3.7. Upgrading from 2.7.x requires no data schema changes. Run migrate after upgrading.

Appwrite 2.7.2

The 2.7 release ships Console 1.2.181-self-hosted (was 1.2.74-self-hosted) and upstream Appwrite 2.7.2. Run migrate after upgrading.

Appwrite 2.5.0

The 2.5 release ships Console 1.2.74-self-hosted (was 1.1.159) and upstream Appwrite 2.5.0. The database migration remains on V25, adding function interval and Android fingerprint columns while widening the webhook HTTP password column; run migrate after upgrading.

Appwrite 2.3.0

The 2.3 release removes development keys, consolidates generated Console links under _APP_CONSOLE_URL, and ships Console 1.1.159-self-hosted. Its migration touches every project's users and identities collections, removes the devKeys collection and strips obsolete dev-key scopes; run migrate after upgrading. Remove _APP_CONSOLE_URL_SCHEME from retained environment values. When the Console uses a different host from the API, set _APP_CONSOLE_URL to the full Console origin through extraEnv before upgrading.

Function and site executions now require ClickHouse through _APP_CONNECTIONS_DB_EXECUTIONS; they are no longer read from the project MariaDB database. Provision that external backend before enabling execution features. Preserve/export legacy execution history before upgrading: records stored only in the old project database will no longer be listed. This chart does not provision the executor/orchestrator or migrate historical executions. Remove _APP_EXECUTIONS_DUAL_WRITE, _APP_MAINTENANCE_RETENTION_USAGE_HOURLY and _APP_CONNECTIONS_DB_LOGS from retained environment values. Usage retention belongs to the external ClickHouse deployment.

Earlier 2.1.0 changes

The 2.1 release fixes password-protected Redis queue publishers and consumers, including ACL users and reserved characters in passwords. It adds the S3-compatible API at /v1/s3 using project API keys; the existing storage backend and bucket permissions still apply. Automatic crop gravity remains unconfigured unless an external service is provided through _APP_AUTOGRAVITY_HOST. This chart does not deploy that optional service.

Error reporting now supports only sentry:// DSNs through appwrite.logging.sentryDsn. appwrite.logging.format selects pretty or json container logs. The old logging.provider field is retained only for compatible empty/default/sentry values and no longer emits the removed environment variable. Remove _APP_LOGGING_PROVIDER, _APP_LOGGING_CONFIG_REALTIME and experimental logging provider/config variables from custom environment values before upgrading. The bundled Redis chart is 3.0.0, retaining its image, credentials and storage.

The following 2.0 migration requirements also apply when upgrading directly from 1.9.x.

Back up MariaDB, all shared PVCs and the application Secret before upgrading from 1.9.x. Keep traffic paused during the upgrade and migration. This chart retains MariaDB explicitly; the upstream installer's new PostgreSQL default does not move existing data between engines.

Use helm upgrade <release> <chart-ref> --reset-then-reuse-values (or explicitly set the new image tag), then run kubectl exec -n <namespace> deploy/<api-deployment> -c api -- migrate. Verify the API, worker logs and existing projects before restoring traffic. To roll back to 2.2, stop new queue receives and drain or recover every in-flight reservation before removing the 2.3 workers. Then restore the database, volumes, Secret and matching old images together.

Console IV uses appwrite/new:1.2.74-self-hosted on port 3000 with the API on the same origin; the console Service still exposes port 80. worker-audits was removed upstream: set workers.audits.enabled=false in retained values. Jobs, screenshots, executions and notifications now have separate worker toggles, alongside the remaining workers. Disabled workers do not process their respective queues.

Generated encryption and JWT Secret entries are retained on upgrade. Supplying a new appwrite.openSslKeyV1 overrides the retained key and requires an application key-rotation procedure; it is not an automatic data re-encryption mechanism.

DocumentsDB, VectorsDB and embeddings remain disabled. This chart does not provision the extra engines, embedding server, executor or orchestrator needed for those features and Functions/Sites execution. Provision and configure those dependencies separately before opting in through extraEnv.

The stats-resources task is deployed only when appwrite.usageStats=enabled and tasks.statsResources.enabled=true; upstream exits immediately when usage is disabled. This avoids restarting an intentionally inactive process.

Usage statistics now require ClickHouse. appwrite.usageStats defaults to disabled; to retain or enable usage reporting, provision a private ClickHouse service (the HelmForge ClickHouse chart can provide it) and supply its TLS-enabled HTTP DSN through a Secret:

appwrite:
  usageStats: enabled
  extraEnv:
    - name: _APP_CONNECTIONS_DB_USAGE
      valueFrom:
        secretKeyRef:
          name: appwrite-usage
          key: dsn
    - name: _APP_CONNECTIONS_DB_EXECUTIONS
      valueFrom:
        secretKeyRef:
          name: appwrite-executions
          key: dsn

Use a DSN such as https://<user>:<password>@clickhouse.example.com:8443/appwrite?secure=true. The secure=true query parameter enables TLS in the Appwrite ClickHouse adapter; the scheme alone is insufficient. URL-encode credentials containing reserved characters. Use a DNS hostname matching the server certificate and a certificate chain trusted by the Appwrite container. The client verifies peers and hostnames; for a private CA, install its root into the container trust store before deployment. In 2.2, usage-setup initializes and checks both usage and execution schemas, so configure both connections before running it in the API pod. Verify schema readiness before enabling traffic. Plan retention of historical usage data separately from new usage schema setup. Back up external ClickHouse independently; the chart S3 backup covers the core MariaDB and shared-volume data.

External Database

To use an external MariaDB instead of the subchart:

mariadb:
  enabled: false
database:
  mode: external
  external:
    host: mariadb.example.com
    rootUser: root
    rootPassword: "secret"
    name: appwrite

Or with an existing secret:

mariadb:
  enabled: false
database:
  mode: external
  external:
    host: mariadb.example.com
    existingSecret: my-db-secret
    existingSecretPasswordKey: mariadb-root-password

External Redis

redis:
  enabled: false
cache:
  mode: external
  external:
    host: redis.example.com
    password: "secret"

Workers

All 15 workers are enabled by default. Disable unused workers to save resources:

workers:
  builds:
    enabled: false
  functions:
    enabled: false
  certificates:
    enabled: false

Examples

  • Standalone with ingress
  • External database
  • Production with external services

Operations and troubleshooting

The operations guide covers readiness, migrations, backup scope, recovery, and routine validation. Useful first checks are:

kubectl get pods,pvc -n <namespace> -l app.kubernetes.io/instance=<release>
kubectl get events -n <namespace> --sort-by=.lastTimestamp
kubectl logs -n <namespace> -l app.kubernetes.io/component=api \
  --all-containers --tail=100

The Console, API, and realtime endpoint must share one browser origin. If the Console loads but API calls fail, verify the /v1 and /v1/realtime routes and their Service endpoints before debugging application credentials.

Security Scan: appwrite

FrameworkScore
MITRE + NSA + SOC279.53%

Kubescape v4.0.14; default manifests including MariaDB and Redis.

Deploy appwrite with OpenTenant

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