Self-host Appwrite with Docker
An open-source backend-as-a-service with auth, databases, storage, and functions behind one API.
This page describes the Levelrail template for Appwrite (Developer Tools). It deploys the services below as one Docker Compose app on your own server.
Project site: https://appwrite.io/docs.Recommended memory: about 2048 MiB.
Services, ports and volumes
| Service | Image | Container ports | Volumes |
|---|---|---|---|
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 |
Environment variables
| Service | Variable | Value |
|---|---|---|
appwrite | _APP_CONSOLE_WHITELIST_ROOT | Preset in the template |
appwrite | _APP_DB_HOST | Preset in the template |
appwrite | _APP_DB_PASS | Generated at deploy |
appwrite | _APP_DB_PORT | Preset in the template |
appwrite | _APP_DB_SCHEMA | Preset in the template |
appwrite | _APP_DB_USER | Generated at deploy |
appwrite | _APP_DOMAIN | Preset in the template |
appwrite | _APP_ENV | Preset in the template |
appwrite | _APP_OPENSSL_KEY_V1 | Generated at deploy |
appwrite | _APP_REDIS_HOST | Preset in the template |
appwrite | _APP_REDIS_PORT | Preset in the template |
db | MYSQL_DATABASE | Preset in the template |
db | MYSQL_PASSWORD | Generated at deploy |
db | MYSQL_ROOT_PASSWORD | Generated at deploy |
db | MYSQL_USER | Generated at deploy |
Passwords and keys marked as generated are created for you when the app is deployed and stored as secrets. Values are not shown here.
Deploy Appwrite with Levelrail
In the dashboard, open Apps, choose New app, then Browse templates, and select Appwrite. Review the Compose body and deploy.
With the CLI:
levelrail-cli templates deploy appwrite --name my-appwriteSee Service template catalog for how templates work, and Getting started if you have not installed Levelrail yet.
More Developer Tools templates
All templates are listed in the self-host gallery.