On this page
- How much server does Appwrite need?
- How do you run the Appwrite installer?
- What if the server already runs Nginx or Caddy?
- How do you check that the services are healthy?
- How do you lock down the console after the first account?
- How do you configure SMTP for verification and recovery emails?
- What should a backup of Appwrite include?
- How do you upgrade Appwrite to a newer release?
- Why does the console show a certificate or domain error?
- Questions
How much server does Appwrite need?
Appwrite runs many containers at once (API, workers, MariaDB, Redis, the realtime service and the edge proxy), so give it room: the project recommends at least 2 vCPU and 4 GB of RAM. Functions and image previews add load on top of that. A 2 GB plan will start it, but expect swapping once you deploy functions.
- Ubuntu 24.04/22.04, Debian 12/13, Rocky Linux 9 or AlmaLinux 9, with a sudo user.
- Docker Engine and Compose: use the Docker tutorial or start from the Docker app image.
- An A record (and AAAA if wanted) for
api.example.netpointing to198.51.100.24, created before the installer runs so certificates can be issued.
How do you run the Appwrite installer?
Look up the current stable version on the Appwrite self-hosting page and put it in a shell variable, then run the installer from the directory that should hold the appwrite folder.
sudo mkdir -p /opt/appwrite-stack && sudo chown deploy:deploy /opt/appwrite-stack
cd /opt/appwrite-stack
AW_VERSION=1.x.y # replace with the current release number
docker run -it --rm \
--volume /var/run/docker.sock:/var/run/docker.sock \
--volume "$(pwd)"/appwrite:/usr/src/code/appwrite:rw \
--entrypoint="install" \
appwrite/appwrite:$AW_VERSIONThe installer asks a few questions. Keep HTTP on 80 and HTTPS on 443 when Appwrite is the only web service on the server, let it generate the secret key, enter api.example.net as the hostname and as the DNS target. It then writes the files and starts every container.
What if the server already runs Nginx or Caddy?
Only one program can own ports 80 and 443. If Caddy or Nginx already serves other sites, answer the installer with port 8080 for HTTP and 8443 for HTTPS, then let your proxy forward the hostname to Appwrite.
Edit the traefik service in appwrite/docker-compose.yml so the port line reads 127.0.0.1:8080:80; that keeps Appwrite off the public interface, because Docker-published ports bypass ufw and firewalld. A Caddy site block is then short:
api.example.net {
reverse_proxy 127.0.0.1:8080
}Set _APP_OPTIONS_FORCE_HTTPS=disabled in appwrite/.env in this layout, since Caddy already terminates TLS, then apply it with docker compose up -d inside the appwrite folder. The Caddy HTTPS tutorial covers installing Caddy itself.
How do you check that the services are healthy?
List the containers, then ask the public API for its version.
cd /opt/appwrite-stack/appwrite
docker compose ps --format "table {{.Name}}\t{{.Status}}"
curl -s https://api.example.net/v1/health/versionA small JSON reply with the version string confirms the edge proxy, certificate and API all work. If a container keeps restarting, read its log with docker compose logs --tail 50 appwrite or the worker name shown in the list.
Open the firewall for web traffic when Appwrite owns the ports: sudo ufw allow 80,443/tcp on Ubuntu and Debian, or sudo firewall-cmd --permanent --add-service=http --add-service=https followed by sudo firewall-cmd --reload on Rocky and Alma.
How do you lock down the console after the first account?
Visit https://api.example.net and register immediately: the first account becomes the console owner. By default _APP_CONSOLE_WHITELIST_ROOT=enabled lets only that first user sign up to the console. To add colleagues, invite them from the organisation page, or list allowed addresses:
_APP_CONSOLE_WHITELIST_ROOT=enabled
_APP_CONSOLE_WHITELIST_EMAILS=alice@example.net,bob@example.netThese limits apply to the Appwrite console only; your app's end users sign up through the projects you create. Turn on two-factor authentication for console accounts in the account settings.
How do you configure SMTP for verification and recovery emails?
Appwrite sends email verification, password recovery, magic links and team invitations. Edit appwrite/.env:
_APP_SYSTEM_EMAIL_NAME=Example App
_APP_SYSTEM_EMAIL_ADDRESS=no-reply@example.net
_APP_SMTP_HOST=smtp.relay.example.net
_APP_SMTP_PORT=587
_APP_SMTP_SECURE=tls
_APP_SMTP_USERNAME=relay-user
_APP_SMTP_PASSWORD=relay-passwordRecreate the containers with docker compose up -d so the workers pick up the change. Port 587 to an authenticated relay is the reliable route; port 25 from the VPS should not be assumed open, so open a support ticket before planning any direct sending. The SMTP relay guide covers SPF and DKIM for the sender domain.
What should a backup of Appwrite include?
Three things: the .env file (it holds _APP_OPENSSL_KEY_V1, without which encrypted data cannot be read), a MariaDB dump, and the Docker volumes with uploads, functions and builds.
cd /opt/appwrite-stack/appwrite
cp .env ~/appwrite-env-$(date +%F)
docker compose exec -T mariadb sh -c 'exec mysqldump --all-databases --add-drop-database -uroot -p"$MYSQL_ROOT_PASSWORD"' | gzip > ~/appwrite-db-$(date +%F).sql.gz
docker volume ls | grep appwriteArchive the upload volumes with a short-lived container (docker run --rm -v appwrite_appwrite-uploads:/v -v ~/:/b alpine tar czf /b/uploads.tgz -C /v .) and copy everything off the server. Check the exact volume names in the docker volume ls output, since they include the project folder name.
How do you upgrade Appwrite to a newer release?
Take the backups above, then run the same installer command from /opt/appwrite-stack with the new version number. It detects the existing installation and rewrites the Compose file. Afterwards run the data migration:
cd /opt/appwrite-stack/appwrite
docker compose exec appwrite migrateRead the release notes first: some major steps require moving through an intermediate version rather than skipping straight to the newest one.
Why does the console show a certificate or domain error?
The most common reasons are DNS records that do not resolve to the server yet, port 80 blocked so Let's Encrypt cannot validate, or a hostname typed differently from _APP_DOMAIN in .env. Verify with dig +short api.example.net, check sudo ss -tlnp | grep -E ':80|:443' to see which process owns the ports, and restart the stack after fixing the value.
Plans that fit this guide
Base city prices. Every plan includes a dedicated IPv4 address, IPv6, full root and all 18 images.
Questions about Appwrite backend server
Is Appwrite usable on a 2 GB plan?
It starts, but the many containers leave little headroom. Use 4 GB for anything beyond a test, and add a swap file either way.
Can I use my own MariaDB server instead of the bundled one?
Yes. Point the _APP_DB_HOST, _APP_DB_USER and related variables in .env to it. Keep it on a private address or loopback rather than the public internet.
Does Appwrite run cloud functions on my server?
Yes. Functions run as containers on the same host through the executor service, so memory and CPU of your plan set how many can run at once.
How do client apps reach the API?
SDKs use the endpoint https://api.example.net/v1 plus the project ID. Add your web domains as platforms in the project so browser requests pass the origin check.
Can I move Appwrite to a bigger server later?
Yes. Restore the .env, database dump and volumes on the new server with the same version installed. Moving to a larger plan describes the general steps.
More in Self-hosted apps
- Nextcloud on Nginx
- ownCloud Infinite Scale
- Seafile file sync
- Vaultwarden password vault
- Passbolt team password manager
- Gitea Git hosting
- Forgejo Git server
- GitLab Community Edition
- Gogs Git service
- Wiki.js
- BookStack documentation
- Outline knowledge base
- Paperless-ngx documents
- n8n workflow automation
- Activepieces automation
- Plausible Analytics (Community Edition)
- Umami analytics
- Mattermost team chat
- Matrix Synapse with Element
- Jitsi Meet video calls
- ONLYOFFICE Docs with Nextcloud
- HashiCorp Vault secrets server
- OpenBao secrets management
- Infisical secrets manager
- Authelia SSO and forward auth
- Zitadel identity platform
- VS Code in the browser (code-server)
- Joplin Server for notes sync
- Firefly III personal finance
- Snipe-IT asset tracking
- Odoo ERP on Ubuntu or Debian
- ERPNext with frappe_docker
- Dolibarr ERP and CRM with Nginx
- Penpot design tool with Docker
- Planka kanban boards
- Leantime project management
- Wekan boards with Docker
- Cal.com scheduling
- Chatwoot support inbox
- Mautic marketing automation
- DocuSeal document signing
- Metabase dashboards
- Self-hosted Supabase
- PocketBase backend
- RustDesk relay server
- Traccar GPS tracking
- Redmine project tracker
- The Lounge IRC client
- CyberChef data toolbox
- Typebot chat forms
- AFFiNE workspace
- Overleaf Community Edition
- Neko shared virtual browser
- imgproxy image resizing
- NetBox network inventory
- UVdesk help desk
- YetiForce CRM