Self-host Appwrite with Levelrail

An open-source backend-as-a-service with auth, databases, storage, and functions behind one API.

  • Authorappwrite
  • LicenceBSD-3-Clause
  • Memory2 GiB
  • Archarm64
  • Services4

How to self-host Appwrite

  1. Pull the images

    4 images are pulled on your server.

    Show images
    • appwrite/appwrite:1.7.4
    • appwrite/console:6.1.28
    • mariadb:10.11
    • redis:7.2.4-alpine
  2. Create the app

    4 services start in a single Compose app, with 6 named volume mounts for your data, on port 80.

  3. Fill in the secrets

    6 secrets are generated and stored encrypted, 9 settings are preset, you do not have to fill in anything.

  4. Open it

    Without a domain the app gets an sslip.io address; add --domain SERVICE=HOST to use your own.

Appwrite requirements

Memory
About 2 GiB
Architectures
amd64 image published, arm64 image published
Ports
80
Domain
Optional, an sslip.io address is used without one
Settings
none to fill in
License
BSD-3-Clause, permissive license
  • Listed. It is in the catalog but not verified. Back up the data volume before changing an image tag.
  • Host ports. It publishes port 80 on the host, so open them in the VPS firewall only if you want that.

Install Levelrail first

On a server with Levelrail running, run the command above, or open the dashboard: Apps, New app, Browse templates, then Appwrite. New to Levelrail? Install it on a fresh VPS first.

docker pull ghcr.io/glincker/levelrail:latest

Then levelrail-cli login --device. See Getting started and the Appwrite docs page.

Deploy Appwrite your way

Every format below deploys the same pinned images. Pick the one that fits how you work.

Deploy Appwrite from the CLI

levelrail-cli templates deploy appwrite --name my-appwrite

Deploy Appwrite with the API

Create a token in the dashboard first. This one-click route deploys it as a trial app you can keep or remove.

curl -X POST -H "Authorization: Bearer $TOKEN" \
  https://levelrail.example.com/api/v1/service-templates/appwrite/deploy

Appwrite configuration

Appwrite services

ServiceImagePortsVolumes
appwrite appwrite/appwrite:1.7.4 80 appwrite_uploads -> /storage/uploadsappwrite_cache -> /storage/cacheappwrite_config -> /storage/configappwrite_certificates -> /storage/certificates
appwrite-console appwrite/console:6.1.28 80 none
db mariadb:10.11 none appwrite_db_data -> /var/lib/mysql
redis redis:7.2.4-alpine none appwrite_redis_data -> /data

Appwrite environment variables

VariableServiceValue
_APP_CONSOLE_WHITELIST_ROOT appwrite Preset by the template
_APP_DB_HOST appwrite Preset by the template
_APP_DB_PASS appwrite Generated at deploy
_APP_DB_PORT appwrite Preset by the template
_APP_DB_SCHEMA appwrite Preset by the template
_APP_DB_USER appwrite Generated at deploy
_APP_DOMAIN appwrite Preset by the template
_APP_ENV appwrite Preset by the template
Show all 15 variables
  • _APP_OPENSSL_KEY_V1appwriteGenerated at deploy
  • _APP_REDIS_HOSTappwritePreset by the template
  • _APP_REDIS_PORTappwritePreset by the template
  • MYSQL_DATABASEdbPreset by the template
  • MYSQL_PASSWORDdbGenerated at deploy
  • MYSQL_ROOT_PASSWORDdbGenerated at deploy
  • MYSQL_USERdbGenerated at deploy

Ports and volumes

Ports
80
Volumes
6 named mounts: appwrite_uploads -> /storage/uploads, appwrite_cache -> /storage/cache, appwrite_config -> /storage/config, appwrite_certificates -> /storage/certificates, appwrite_db_data -> /var/lib/mysql, appwrite_redis_data -> /data

Appwrite FAQ

How much memory does Appwrite need?

The catalog lists about 2 GiB of memory for Appwrite across its 4 services.

Does Appwrite run on arm64?

For Appwrite, an arm64 image is published; amd64 is image published.

What licence is Appwrite under?

Appwrite is licensed under BSD-3-Clause, which is permissive, with few conditions on reuse.

Does Appwrite need configuration before it starts?

No. The template fills in its own defaults and generates secrets at deploy time.

Which database does Appwrite bundle?

The template includes MySQL and Redis, running as its own service.

Which ports does Appwrite use?

Appwrite listens on port 80 inside the stack.

Where does Appwrite keep its data?

In named volumes: appwrite_uploads mounted at /storage/uploads, appwrite_cache mounted at /storage/cache, appwrite_config mounted at /storage/config and appwrite_certificates mounted at /storage/certificates.

Can I deploy Appwrite on Dokploy or Dokku?

The services and pinned images on this page can be run on any Docker host. The public Dokploy templates list has an entry with the id appwrite for this app, so check that entry as well. Dokku deploys container images with its own commands, so the pinned image appwrite/appwrite:1.7.4, appwrite/console:6.1.28, mariadb:10.11, redis:7.2.4-alpine is what you deploy there.

levelrail-cli templates deploy appwrite --name my-appwrite