Levelrail
Skip to content

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 ​

ServiceImageContainer portsVolumes
appwriteappwrite/appwrite:1.7.480
appwrite_uploads -> /storage/uploads
appwrite_cache -> /storage/cache
appwrite_config -> /storage/config
appwrite_certificates -> /storage/certificates
appwrite-consoleappwrite/console:6.1.2880none
dbmariadb:10.11none
appwrite_db_data -> /var/lib/mysql
redisredis:7.2.4-alpinenone
appwrite_redis_data -> /data

Environment variables ​

ServiceVariableValue
appwrite_APP_CONSOLE_WHITELIST_ROOTPreset in the template
appwrite_APP_DB_HOSTPreset in the template
appwrite_APP_DB_PASSGenerated at deploy
appwrite_APP_DB_PORTPreset in the template
appwrite_APP_DB_SCHEMAPreset in the template
appwrite_APP_DB_USERGenerated at deploy
appwrite_APP_DOMAINPreset in the template
appwrite_APP_ENVPreset in the template
appwrite_APP_OPENSSL_KEY_V1Generated at deploy
appwrite_APP_REDIS_HOSTPreset in the template
appwrite_APP_REDIS_PORTPreset in the template
dbMYSQL_DATABASEPreset in the template
dbMYSQL_PASSWORDGenerated at deploy
dbMYSQL_ROOT_PASSWORDGenerated at deploy
dbMYSQL_USERGenerated 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-appwrite

See 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.

Released under the Apache 2.0 License.