Appwrite is an open-source backend for web and mobile apps that you host yourself. Instead of programming authentication, databases, file storage, and server-side logic from scratch for each app, you can use Appwrite's ready-made services: user accounts with login, databases with tables, storage for files and images, Functions for your own code, as well as Realtime and Messaging. Your web, Flutter, Android, or iOS app communicates with Appwrite through official SDKs or the REST API. You manage everything in the Appwrite console in your browser.
In this guide, we'll show you two ways to get started: the simple one-click app option, which makes Appwrite available over HTTPS within a few minutes, and a manual installation using the official installer. Then you'll create your first project and connect an app to it.
Appwrite is a good fit if you're building an app and need a backend without writing your own server code for login, databases, and uploads. Running it on a VPS makes sense if:
- You want to keep your users' data with you. Accounts, databases, and uploaded files are stored on your server, not in a provider's cloud.
- You run multiple apps or environments. One Appwrite instance can manage any number of projects, such as one for development and another for production.
- You don't want usage-based costs. You don't pay extra for requests, storage, or users; only your VPS resources set the limit.
- You want to get started quickly with ready-made components. Email or OAuth login, permissions for each user and team, file uploads, and webhooks are already built in.
Appwrite is less suitable for a small VPS. The one-click app starts 16 containers, including PostgreSQL, Redis, and ClickHouse, and needs around 2.5 GB of RAM even when idle. If you want to work directly with SQL on a Postgres database, Supabase is often a better choice.
You can install both platforms as one-click apps. They cover similar use cases but take different approaches:
| Appwrite | Supabase | |
|---|---|---|
| Data access | Its own API with databases, tables, and rows, with permissions for each table and row | Direct access to PostgreSQL using SQL and an automatically generated REST API |
| Your own code | Functions in their own containers; the one-click app includes Node.js 22 | Edge Functions with Deno |
| Other components | Auth, Storage, Realtime, Messaging | Auth, Storage, Realtime |
| Guide | This page | Set up Supabase |
If you like working with SQL, views, and Postgres extensions, choose Supabase. If you want a backend that you can manage almost entirely through the console and SDKs, Appwrite is the more direct option.
The fastest way to get Appwrite running is through your VPS's One-Click Apps. The app includes all the services and databases and is available directly over HTTPS when you use a domain. The console and API use the same address: the console is at /, and the API is at /v1. You don't need a reverse proxy, certificate, or firewall rules.
- A Linux VPS (Debian or Ubuntu) with One-Click Apps set up. See Set up One-Click Apps for instructions.
- At least 2 vCPU cores and 4 GB RAM; 8 GB RAM is recommended. On our test VPS, the 16 containers used around 2.5 GB of RAM in total while idle.
- Enough free disk space: the images take up around 12 GB, and the console alone takes up about 4.5 GB. Allow at least 25 GB of free space for databases, uploads, and Functions.
- Open your VPS in the ZapX dashboard and go to the One-Click Apps tab.
- Search for Appwrite in the app catalog and click Install app.
- Use a custom subdomain or zap.cloud is already selected, with a randomly generated name. Leave this option enabled and enter a custom name if needed, such as
backend. Your apps will use this address to communicate with Appwrite, so it should not change later. - Under App configuration, enter your email address for
APPWRITE_ADMIN_EMAIL. You'll use it to sign in to the console. The default isadmin@example.com. If you leave this value unchanged, update the address in your account after your first login (the Admin menu in the top right); otherwise, Appwrite emails won't reach you. The other fields have suitable default values. The panel automatically generates the database and internal service passwords, the key for encrypted data, and your console password. - Click Queue installation.
The initial installation takes longer than it does for smaller apps because the panel downloads around 12 GB of images. On our busy test VPS, it took about 13 minutes for the console to be ready; under heavier load, it took up to 20 minutes. When it starts for the first time, Appwrite sets up its databases. The installation then creates your console account. Appwrite is accessible externally only after this process is complete.
Appwrite gives the console account to whoever registers first. To make sure that isn't a stranger, the one-click app creates your account during installation. The Login and email delivery notice on the app card also explains this. You can find your login details in the app settings:
- Click the gear icon on the app card and go to App environment.
- Under Automatically generated values, find your password as
SERVICE_PASSWORD_ADMIN. Click the eye icon to display it or the icon next to it to copy it. - Open Appwrite using the Access link on the app card. The console displays the Welcome back login page.
- Enter the address from
APPWRITE_ADMIN_EMAILunder Email and the generated password under Password, then click Login. After you sign in, the console will prompt you to create your first project with Create your first project.
Appwrite creates the account only if no account exists in the console yet. If you change your password in the console later, App environment will still show the old value. Save your new password in your password manager. If you registered your account yourself during an earlier installation, your existing account remains valid. An app update won't create a second account.
The login page does show a Sign up link, but Appwrite won't allow registration: the console allows only one account to be created through registration, controlled by _APP_CONSOLE_WHITELIST_ROOT (default enabled). Anyone who tries anyway gets the message “Sign up to the console is restricted”. Leave this setting enabled. Instead, invite colleagues to your organization. Appwrite needs a mail server for this (see “Set Up Email Delivery”).
If you also want to restrict where the console can be accessed from, go to App environment > App configuration, enter a comma-separated list of your IP addresses for _APP_CONSOLE_WHITELIST_IPS, and click Save. This applies only to the console, not the API used by your apps.
Without a mail server, Appwrite can't send emails. Password resets will fail with the “SMTP Disabled” error, and confirmation emails, magic links, and team invitations won't arrive either. To configure your mail server:
- Click the gear icon on the app card and open the App environment tab.
- Under App configuration, enter your mail server details:
_APP_SMTP_HOST(e.g.smtp.example.com),_APP_SMTP_PORT(usually587),_APP_SMTP_SECURE(tlsfor port 587,sslfor port 465),_APP_SMTP_USERNAME, and_APP_SMTP_PASSWORD. - Set
_APP_SYSTEM_EMAIL_ADDRESSto a sender address your mail server is allowed to send from. Otherwise, the defaultnoreply@appwrite.iomay be marked as spam or rejected. Use_APP_SYSTEM_EMAIL_NAMEto set the sender name. - Click Save. The app will restart afterward.
You can also configure a separate mail server for a project in that project's settings.
Functions are small programs that Appwrite runs in their own containers when needed, for example after a file upload, at scheduled times, or when your app calls them. Node.js 22 is set up in the one-click app. On our test VPS, a Node.js Function ran as soon as it was uploaded. To enable additional runtimes, go to App environment > App configuration and add them through _APP_FUNCTIONS_RUNTIMES, for example node-22,python-3.12. Each runtime downloads its own image, around 1 GB in size, the first time it builds.
You can start Functions from the console, through an SDK, or using the REST API. Custom Function addresses (under functions. before your domain) and the Sites website feature need a wildcard DNS record and suitable routing. The one-click app doesn't configure either, so these addresses won't be accessible.
Appwrite starts the containers that run and build your Functions. They aren't part of the app and remain after you uninstall it. Find them over SSH using docker ps -a --filter name=job- and docker ps -a --filter ancestor=openruntimes/node:v5-22, then remove them with docker rm -fv <Name>.
Update Appwrite in the app settings (gear icon) under App update. Click Check for updates, then install a new version using Apply update. If it says the app is up to date, there isn't a newer version in the app catalog yet. If the update moves to a new minor version (e.g. from 2.7 to 2.8), run the Appwrite data migration over SSH afterward:
docker exec appwrite-ID migrate
To find the container name, run docker ps --format '{{.Names}}' | grep '^appwrite-'. Use the container named only appwrite- and the ID, without a suffix such as worker or console.
For installations created before December 3, 2026, an app update doesn't change how the addresses are split up. If the API at /v1 on your address isn't accessible, back up your data as described below and reinstall Appwrite.
Back up the entire VPS using Backups in the dashboard. To back up only the Appwrite database, run this over SSH:
docker exec appwrite-postgresql-ID sh -c 'pg_dump -U "$POSTGRES_USER" "$POSTGRES_DB"' > appwrite-$(date +%F).sql
Replace appwrite-postgresql-ID with the name shown by docker ps. Uploaded files are in the ID_appwrite-uploads volume, and Functions are in the ID_appwrite-functions and ID_appwrite-builds volumes.
Appwrite encrypts some data using the SERVICE_PASSWORD_64_APPWRITE value in Automatically generated values. Save it along with your backup. Without it, restored data can't be read.
The rest of this guide covers a manual installation using Appwrite's official installer. For example, you might use this option if you don't use One-Click Apps on your server or want to run Function addresses and Sites on your own domain. The installer creates a docker-compose.yml file with all services and includes its own reverse proxy (Traefik).
- A Linux VPS running Debian or Ubuntu, with SSH access. See First SSH access.
- Docker and Docker Compose (Compose v2). See Install Docker. Check your installation with
docker --versionanddocker compose version. - A domain or subdomain whose A record points to your VPS's IP address (e.g.
appwrite.example.com). - Ports 80 and 443 must not be in use by another web server, as Appwrite's reverse proxy listens on them.
According to the official documentation, Appwrite needs at least 2 CPU cores, 4 GB RAM, and 2 GB swap.
| Hardware | Minimum | Recommended |
|---|---|---|
| CPU | 2 vCPU cores | 4 vCPU cores |
| RAM | 4 GB | 8 GB |
| Storage | 25 GB | 40 GB |
Appwrite only needs ports 80 and 443 accessible from outside. You'll access the installer's setup wizard through an SSH tunnel, so its port remains closed. Use ufw to allow only SSH and the web ports:
ufw allow OpenSSH
ufw allow 80/tcp
ufw allow 443/tcp
ufw enable
Ports published by Docker are accessible externally even if ufw blocks them. Docker adds its own rules before the ufw rules. For this reason, bind the installer to 127.0.0.1 as shown below. See Manage the firewall on Linux for more about firewalls.
Go to the directory where you want Appwrite to create its folder, then start the installer:
cd /opt
docker run -it --rm \
--publish 127.0.0.1:20080:20080 \
--volume /var/run/docker.sock:/var/run/docker.sock \
--volume "$(pwd)"/appwrite:/usr/src/code/appwrite:rw \
--entrypoint="install" \
appwrite/appwrite:2.7.2
Here's what the important lines do:
--publish 127.0.0.1:20080:20080: The setup wizard is accessible only from the server itself. The official instructions publish the port on all addresses, which would leave it open to the internet until the installation is complete./var/run/docker.sock: The installer starts Appwrite's containers. Later, the Executor also uses this access to control your Function containers."$(pwd)"/appwrite: The installer putsdocker-compose.ymland.envhere, in/opt/appwrite.appwrite/appwrite:2.7.2: The version being installed. Find the current version number in the Appwrite installation guide.
Open an SSH tunnel to the wizard on your own computer:
ssh -L 20080:127.0.0.1:20080 root@SERVER_IP
Then open http://localhost:20080 in your browser. The wizard asks for four things:
- Hostname (e.g.
appwrite.example.com), whether Appwrite should use HTTPS (leave this enabled), and the database. PostgreSQL is the default; MariaDB and MongoDB are also available. Under advanced settings, you can set different ports and the email address for the certificate if needed. - A secret key, which the wizard generates. Appwrite uses it to encrypt data. Copy it to your password manager; it's displayed only once.
- The email address and password for your console account. The installer creates the account, so there is no open registration form.
- A summary. Click Install and the installer will write the files and start all the containers.
Once the installation is complete, exit the installer and close the SSH tunnel. Use docker ps to check that all Appwrite containers are running.
Open https://appwrite.example.com and sign in using the email address and password from step 3. Appwrite gets a certificate from Let's Encrypt automatically as soon as the domain points to the server and ports 80 and 443 are open. Until then, your browser will report an invalid certificate.
If a web server is already running on ports 80 and 443, set different ports in the wizard's advanced settings, such as 8080 for HTTP, and put nginx in front of it. Then, in /opt/appwrite/docker-compose.yml, change the HTTP port line for the traefik service to 127.0.0.1:8080:80 and restart with docker compose up -d so the port isn't accessible externally. See Set up a reverse proxy with nginx and Create an SSL certificate (Let's Encrypt) for the basics. Here's an nginx server block:
server {
listen 80;
server_name appwrite.example.com;
client_max_body_size 100M;
location / {
proxy_pass http://127.0.0.1:8080;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto https;
}
}
Then get the certificate using certbot --nginx -d appwrite.example.com. The Upgrade and Connection lines are required for Realtime, which uses WebSockets. client_max_body_size limits the size of uploads; adjust the value to suit your files. After each Appwrite update, check that the port line in docker-compose.yml is still correct.
First, back up the .env file containing the secret key. Without the _APP_OPENSSL_KEY_V1 value in that file, encrypted data can't be read after it's restored:
cd /opt/appwrite
cp .env .env.backup.$(date +%F)
For PostgreSQL, you can export the database while it's running:
docker compose exec -T postgresql sh -c 'pg_dump -U "$POSTGRES_USER" "$POSTGRES_DB"' > appwrite-$(date +%F).sql
Files, Functions, and certificates are stored in Docker volumes. To find their names, run docker volume ls | grep appwrite. Briefly stop Appwrite to back up the volumes, then archive each one. Here's an example for uploads:
docker compose stop
mkdir -p /opt/backup
docker run --rm -v appwrite_appwrite-uploads:/data -v /opt/backup:/backup ubuntu tar czf /backup/appwrite-uploads.tar.gz -C /data .
docker compose start
Repeat the tar command for volumes with functions, builds, sites, certificates, and config in their names. Don't store the database export, archives, and .env only on the VPS itself.
Back up your data first as described above. Then, from /opt, run the installer with the new version and the upgrade entry point:
cd /opt
docker run -it --rm \
--publish 127.0.0.1:20080:20080 \
--volume /var/run/docker.sock:/var/run/docker.sock \
--volume "$(pwd)"/appwrite:/usr/src/code/appwrite:rw \
--entrypoint="upgrade" \
appwrite/appwrite:2.7.2
Replace 2.7.2 with the new version. Then run the data migration:
cd /opt/appwrite
docker compose exec appwrite migrate
Migration can take a while if you have a lot of data. According to the official documentation, you can upgrade directly to 2.7.2 from version 1.9.6 onward. For older installations, upgrade one minor version at a time. See the Appwrite upgrade guide for the required order. Run docker ps | grep appwrite/appwrite to check that all containers are using the new version.
In the console, you work with projects. Each project has its own users, databases, files, and Functions, so an app belongs to one project.
- Enter a name in the Create your first project dialog and click Create. Appwrite assigns the Project ID.
- The project overview shows the Project ID and your instance's endpoint in the top right, which is your address with
/v1appended. You'll need both for the SDK. Click the icon next to each value to copy it. - Under Connect > Apps, click Add app and enter your app's platform. For example, select Web and enter your app's hostname (
app.example.com, orlocalhostfor development). For Android, iOS, and Flutter, enter the package or bundle ID. New projects already include a Web app entry with the hostname*, which accepts requests from any address. For production, it's better to enter only the addresses your app actually uses.
For a web app, install the SDK using npm install appwrite and connect it to your server:
import { Client, Account } from "appwrite";
const client = new Client()
.setEndpoint("https://backend.example.com/v1")
.setProject("PROJECT_ID");
const account = new Account(client);
The endpoint is your Appwrite address with /v1 at the end. For the one-click app, this is the access link followed by /v1. The SDK creates Realtime connections using wss://backend.example.com/v1/realtime. Use account to sign users in. Connect additional classes such as TablesDB (databases), Storage (files), and Functions in the same way using client. Find examples for each platform in the Appwrite documentation.
For your own servers, scripts, or Functions that work without a signed-in user, create a key under API Keys in your project by clicking Create API key, and give it only the permissions (scopes) it needs. Depending on its permissions, the key may have access to all data in the project. Never include it in the code for a web or mobile app; keep it on your server only.
- Email requires a mail server: Confirmations, password resets, magic links, and invitations need SMTP.
- Appwrite sends SMS and push notifications through external providers that you configure under Messaging in your project. You'll need your own account with the provider.
- Function addresses and Sites work only with wildcard DNS and suitable routing, so they aren't available with the one-click app.
- Resources: The database, ClickHouse for statistics, and Function containers share your VPS's RAM and CPU. If your app grows, plan for more RAM.
With Appwrite, you now have your own backend with a console, login, databases, files and functions on your server, which your web and mobile apps access via the SDKs. If you want to react to events in Appwrite automatically, such as new users or uploads, the guide Set Up n8n on a Linux Server shows you how to start workflows via webhook for this.
If you have any other questions or need help, our support team is available every day! 🙂
