Skip to content

Self-hosting

Self-hosting

Set up your self-hosted Appwrite instance easily. Read the installation guide to configure and deploy Appwrite on your infrastructure for complete control.

5 min read

Raw

Appwrite was designed from the ground up with self-hosting in mind. You can install and run Appwrite on any operating system that can run a Docker CLI, or on your own Kubernetes cluster with the official Helm chart. A self-hosted instance serves the same Auth, Databases, Storage, Functions, Messaging, Realtime, and Sites APIs as Appwrite Cloud, so the same SDKs and app code work against both. It stores data in PostgreSQL by default, with MariaDB and MongoDB as alternatives.

Cloud vs Self-hosting

Choose the deployment method that fits your needs.

FeatureAppwrite CloudSelf-hosting
SetupZero setupManual setup required
MaintenanceFully managedYou manage updates and scaling
Data controlManaged infrastructureFull control over data location
ComplianceBuilt-in complianceConfigure for your requirements
ScalingAutomaticManual configuration

When to self-host

Self-hosting is ideal when you need data control or have specific compliance requirements.

Consider self-hosting if:

  • You want to manage your own infrastructure
  • You're a hobbyist or want to experiment with Appwrite in a playground environment
  • You need to develop against a local instance of Appwrite

Appwrite Cloud is recommended if:

  • You want to focus on building features, not managing infrastructure
  • Your team lacks extensive DevOps experience
  • You expect self-hosting to save costs (it often costs more when factoring in time and expertise)

Start on Cloud, self-host later

You can start on Appwrite Cloud and move to your own servers later, or go the other way. Your app keeps the same SDK calls: point it at the new endpoint and project ID, and give server code a new API key. Migrations copy accounts, databases, rows, files, functions, and sites from the Console:

A migration never deletes data from the source project. It resets $createdAt and $updatedAt to the migration date, and the self-hosted instance must be reachable from the internet while it runs.

A few things differ on a self-hosted instance:

  • An instance allows one organization, which holds all of its projects.
  • Managed PostgreSQL and MySQL databases are hosted on Appwrite Cloud. On your own instance, TablesDB runs on the database engine you installed.
  • You run upgrades, backups, monitoring, and scaling yourself. Start from the production checklist.

Quick start

The fastest way to get started with Appwrite self-hosting:

  1. Use a one-click deployment - Choose from marketplace installations for instant setup
  2. Or follow the manual installation - Use our Docker installation guide for custom setups, or the Helm chart if you run Kubernetes
  3. Configure services - Set up email, storage, and other services

Deployment options

Choose the deployment method that best fits your needs:

One-click deployments

Recommended: Use these pre-configured marketplace apps for instant setup:

  ProviderInstallation Link
DigitalOceanClick to install
Akamai ComputeClick to install
AWS MarketplaceClick to install

Cloud platforms

For custom deployments on major cloud providers:

Kubernetes

Run Appwrite on your own Kubernetes cluster, such as EKS, GKE, AKS, or one you operate yourself:

Platform-as-a-Service (PaaS)

Deploy Appwrite on modern PaaS platforms for simplified management:

Configuration

After deployment, configure Appwrite to enable additional features:

Production readiness

Ensure your Appwrite deployment is production-ready:

Security considerations

  • Environment Variables - Secure sensitive configuration using environment variables
  • TLS Certificates - Enable HTTPS with automated certificate management
  • Network Security - Configure firewalls and security groups appropriately
  • Access Control - Implement proper authentication and authorization

Performance optimization

  • Resource Scaling - Monitor and scale CPU, memory, and storage resources
  • Database Performance - Optimize database connections and queries
  • CDN Integration - Use content delivery networks for static assets
  • Load Balancing - Distribute traffic across multiple instances

Monitoring and maintenance

  • Health Checks - Set up monitoring for service availability and performance
  • Log Management - Centralize and analyze application logs
  • Backup Strategy - Implement regular database and file backups
  • Update Management - Keep Appwrite updated with the latest releases

Get started

Ready to self-host Appwrite? Choose your preferred path:

One-Click Deploy - Use a marketplace installation for instant setup (recommended)

Manual Installation - Follow our Docker installation guide for custom setups

Cloud Platform - Choose a cloud platform for production hosting with custom configuration

Kubernetes - Install the Helm chart on your own cluster

Platform-as-a-Service - Deploy on Coolify or Dokploy for simplified management

Was this page helpful?

Share what worked or what we should fix. Once approved, our agents automatically apply suggested updates to the docs.