AppFlowy is an open-source alternative to Notion: write notes and documents, plan tasks in Kanban boards, and manage databases as tables, boards, or calendars. The actual work happens in the AppFlowy app for Windows, macOS, Linux, iOS, and Android, or in the web interface in your browser. The server, AppFlowy Cloud, stores your workspaces and syncs them across your devices. If you run this server yourself, your content is stored on your VPS instead of with a third-party provider.
In this guide, we’ll show you two ways to get started: the easy way, as a One-Click App, where AppFlowy is available over HTTPS in just a few clicks, and the manual installation with Docker Compose using the official template. Then you’ll create your workspace, share pages, and connect the apps to your server. You’ll also learn about the limitations of AppFlowy’s free self-hosting tier.
Running your own AppFlowy server is especially worthwhile if you want to keep your notes and projects under your own control. It’s a good fit if:
- you want your content to be stored on your own server, for example, for privacy reasons or because you don’t want to entrust your notes to a cloud provider.
- you use AppFlowy on multiple devices and want to sync your desktop, smartphone, and browser through your server.
- you want to share or publish pages with a few guests, such as a project page that two or three people can work on, or a public page on your domain.
- you want to use AppFlowy through the web interface without installing an app on every computer.
Running your own server is less suitable if you only use AppFlowy on a single computer. You can also use the app without a server; if you select Continue with an anonymous session, your data stays on your device. The free self-hosting tier is also not intended for an entire team: it includes just one full user seat (see “Limitations” below for more details). AppFlowy Cloud also consists of around ten containers and needs significantly more memory than a simple notes app.
The fastest way to get AppFlowy up and running is through your VPS’s One-Click Apps. The app installs all AppFlowy Cloud services: the web interface, server, authentication service (GoTrue), Admin Console, worker, search, AI service, a PostgreSQL database, Redis, and S3-compatible file storage. With a domain, everything is immediately available over HTTPS, and passwords and keys are generated automatically. You don’t need a reverse proxy, certificate, or firewall rules.
- A Linux VPS (Debian or Ubuntu) with One-Click Apps set up. See Setting Up One-Click Apps for instructions.
- At least 2 vCPU cores, 3 GB RAM, and 10 GB of free storage; 4 vCPU cores and 8 GB RAM are recommended. In our test, all services used around 800 MB of RAM combined just after startup, and the images take up around 3.5 GB of storage. Usage increases during imports, searches, and when multiple devices are active.
- Open your VPS in the ZapX dashboard and go to the One-Click Apps tab.
- Search the app catalog for AppFlowy and click Install app.
- Use a custom subdomain or zap.cloud is already selected with a random name. Leave it selected or enter a name of your own, such as
notesorappflowy. The apps will later connect to your server through this address. - You don’t need to fill in anything under App configuration. If needed, change
GOTRUE_ADMIN_EMAIL: this is the email address for the admin account, set toadmin@example.comby default. You can leave the fields for the mail server (GOTRUE_SMTP_*,APPFLOWY_MAILER_SMTP_*) and AI provider (AI_OPENAI_API_KEYand others) empty. - Click Queue installation.
On the first startup, the VPS downloads all the images and sets up the database. This takes a few minutes. Wait until the app is shown as online on the app card.
AppFlowy has two types of accounts. The Admin account is the system administrator: use it to sign in to the Admin Console and manage users and settings. You’ll write your notes with a regular user account, which uses the user seat included in the free tier.
- Click Open Admin Console on the app card, or add
/consoleto your address. - Sign in with the email address from
GOTRUE_ADMIN_EMAILand the password fromSERVICE_PASSWORD_ADMIN. You can find both in the app settings (gear icon) under App environment; the password is under Automatically generated values. - Now open your address without the additional path. You’ll land on the web interface’s login page. Click Sign up here at the bottom and create your own user account with an email address and password.
- Then sign in using Continue with password. AppFlowy automatically creates the My Workspace workspace for you, with a Getting started page.
Don’t use the Admin account to sign in to the web interface In our test, the Admin account could only be used in the Admin Console. Signing in with it through the web interface returned us to the login page. For your notes, create your own user account as described above.
Sign-up is open, with no email verification Sign-up is enabled in the app, and new accounts are activated without a confirmation email. Create your own account right after installation: the first regular user occupies the only user seat. Other accounts can still sign up afterward, but they won’t be able to sign in; AppFlowy will show “Seat limit reached.”
Without a mail server, AppFlowy won’t send emails, including sign-in links (“Continue with email”), invitations, or password reset emails. Password sign-in still works. To use email, enter your mail server details in the app settings under App environment: GOTRUE_SMTP_HOST, GOTRUE_SMTP_PORT, GOTRUE_SMTP_USER, GOTRUE_SMTP_PASS, and GOTRUE_SMTP_ADMIN_EMAIL for the authentication service, along with the corresponding APPFLOWY_MAILER_SMTP_* values for notifications from AppFlowy itself.
The AI features (“Ask AI”) need access to an AI provider. Without AI_OPENAI_API_KEY or the Azure OpenAI values (AZURE_OPENAI_*), they won’t return any answers.
Update AppFlowy in the app settings (gear icon) under App update. Click Check for updates and install a new version with Apply update. If the page says the app is up to date, there isn’t a newer version in the app catalog yet. The update replaces all AppFlowy services together so that the server, web interface, and Admin Console remain compatible.
Back up before updating An update may modify the database. Back up your VPS beforehand, for example, through Backups in the dashboard.
Your content is stored in the PostgreSQL database and the app’s file storage. Both are preserved during updates.
The rest of this guide describes the manual installation of AppFlowy Cloud with Docker Compose using the official template. For example, you might choose this option if you don’t use One-Click Apps on your server or want to run AppFlowy behind your own reverse proxy.
- A Linux VPS running Debian or Ubuntu with SSH access; see First SSH Access.
- Docker and Docker Compose version 2.30 or later; see Installing Docker. Check the version with
docker compose version --short. Older versions will reject AppFlowy’s Compose file. - Git to download the official files (
apt install git). - A domain or subdomain whose A record points to your VPS’s IP address (for example,
appflowy.example.com).
For a single server with up to 100 simultaneously active users, AppFlowy recommends 4 vCPU and 16 GB RAM. For just you and a few guests, you’ll need much less:
| Hardware | Minimum | Recommended |
|---|---|---|
| CPU | 2 vCPU cores | 4 vCPU cores |
| RAM | 3 GB | 8 GB |
| Storage | 10 GB | 40 GB |
Only SSH and your reverse proxy’s ports need to be accessible from the outside. Use ufw to allow only these:
ufw allow OpenSSH
ufw allow 80/tcp
ufw allow 443/tcp
ufw enable
Docker bypasses ufw
Ports published by Docker are accessible from the outside even if ufw blocks them. Docker adds its own rules ahead of ufw’s rules. For this reason, bind AppFlowy’s nginx container to 127.0.0.1 as described below. See Managing the Firewall on Linux for more information.
AppFlowy provides the latest files for the self-hosted server in the AppFlowy-SelfHost-Commercial repository. The older AppFlowy-Cloud repository is archived and no longer maintained, so don’t use it for new installations. Download the files and create your configuration from the template:
cd /opt
git clone https://github.com/AppFlowy-IO/AppFlowy-SelfHost-Commercial appflowy
cd appflowy
cp deploy.env .env
chmod 600 .env
Among other services, the docker-compose.yml file starts nginx (entry point for all requests), appflowy_cloud (server), gotrue (authentication), admin_frontend (Admin Console), appflowy_web (web interface), appflowy_worker, appflowy_search, ai, postgres, redis, and minio (file storage). The images are pinned to tested versions.
Now open .env in an editor, such as nano .env, and change these values:
FQDN=appflowy.example.com
SCHEME=https
WS_SCHEME=wss
NGINX_PORT=127.0.0.1:8080
NGINX_TLS_PORT=127.0.0.1:8443
POSTGRES_PASSWORD=YOUR_OWN_PASSWORD
AWS_ACCESS_KEY=YOUR_OWN_KEY
AWS_SECRET=YOUR_OWN_PASSWORD
GOTRUE_JWT_SECRET=YOUR_OWN_SECRET
GOTRUE_ADMIN_EMAIL=admin@example.com
GOTRUE_ADMIN_PASSWORD=YOUR_OWN_PASSWORD
Here’s what the entries mean:
FQDN,SCHEME,WS_SCHEME: your domain and protocols. Since the reverse proxy provides HTTPS, set these tohttpsandwss. AppFlowy uses them to build all the addresses for the web interface, authentication, and WebSocket.NGINX_PORT/NGINX_TLS_PORT: the Compose file publishes the nginx container on these ports,80and443by default. The127.0.0.1:prefix makes them accessible only from the server itself, allowing your own reverse proxy to use ports80and443.POSTGRES_PASSWORD,AWS_ACCESS_KEY,AWS_SECRET: credentials for the database and file storage. The template includes example values such aspasswordandminioadmin; replace them.GOTRUE_JWT_SECRET: signs authentication tokens. The template includes an example value; replace it with a long random string, for example, one generated withopenssl rand -hex 32.GOTRUE_ADMIN_EMAIL/GOTRUE_ADMIN_PASSWORD: the Admin Console account. If you don’t change these values, AppFlowy creates theadmin@example.comaccount with the passwordpassword.
Replace the example values before starting
According to the official documentation, you must replace the example passwords and JWT secret before making the server publicly accessible. Otherwise, anyone could sign in as an admin using the values from deploy.env.
The other settings, such as those for a mail server (GOTRUE_SMTP_*, APPFLOWY_MAILER_SMTP_*), AI providers, and the optional backup and server log services, are described in comments in deploy.env. Then start AppFlowy:
docker compose up -d
On the first startup, Docker downloads all the images, which takes a few minutes. Run docker compose ps to check whether all containers are running.
First set up the reverse proxy as described in the next section. Then you can access the web interface at https://appflowy.example.com and the Admin Console at https://appflowy.example.com/console. Sign in to the Admin Console with GOTRUE_ADMIN_EMAIL and GOTRUE_ADMIN_PASSWORD. As with the One-Click App, create your user account for taking notes by clicking Sign up here on the login page.
If you want to take a look at AppFlowy first, open an SSH tunnel from your own computer:
ssh -L 8080:localhost:8080 root@SERVER_IP
Replace SERVER_IP with your VPS’s IP address and open http://localhost:8080/console. The web interface only works to a limited extent through the tunnel because it uses the addresses from FQDN and SCHEME.
To access AppFlowy from the outside, place a reverse proxy with a valid certificate in front of the AppFlowy nginx container. For the basics, see Setting Up a Reverse Proxy with nginx and Create an SSL Certificate (Let's Encrypt). AppFlowy’s nginx distributes requests to the web interface, server, authentication service, Admin Console, and file storage. Your proxy should therefore forward everything to port 8080 and pass through WebSockets, which AppFlowy uses to sync:
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
server {
listen 80;
server_name appflowy.example.com;
client_max_body_size 100M;
location / {
proxy_pass http://127.0.0.1:8080;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_read_timeout 3600s;
}
}
Then obtain the certificate with certbot --nginx -d appflowy.example.com. Certbot adds HTTPS and HTTP redirection to the block. Without client_max_body_size, nginx only allows requests up to 1 MB; the value above also allows larger file uploads to your pages.
Shorter with Caddy
With Caddy instead of nginx, the proxy obtains the certificate itself and passes through WebSockets automatically. In the Caddyfile, the following entry is all you need: appflowy.example.com { reverse_proxy 127.0.0.1:8080 }.
Alternatively, AppFlowy’s nginx container can handle HTTPS itself. According to the documentation, you can replace the supplied test certificate in docker/nginx/ssl/ with your own and publish ports 80 and 443 directly. With your own reverse proxy as described above, however, Certbot renews the certificate automatically.
Your content is stored in two places: the PostgreSQL database (workspaces, pages, users) and the minio file storage (uploaded images and files). Back up the database with pg_dump:
cd /opt/appflowy
docker compose exec -T postgres pg_dump -U postgres -d postgres > appflowy-db-$(date +%F).sql
The username and database name come from POSTGRES_USER and POSTGRES_DB in your .env; both are set to postgres in the template. Also back up the file storage Docker volume (run docker volume ls to find the name containing minio_data) and the .env file. Don’t store the backup only on the VPS itself.
AppFlowy also includes an optional backup service. Enable it with APPFLOWY_BACKUP_PROFILE=backup in .env and run docker compose up -d again. Then manage it in the Admin Console under Tools > Backup. See the Backup Guide for details.
Back up the database and file storage first, and read the release notes in the repository README. Under “Action Required,” you’ll find out whether a version requires any special steps. Always update all AppFlowy services together; AppFlowy only checks that compatible versions are being used together. Your .env remains unchanged during the update:
cd /opt/appflowy
git pull
docker compose pull
docker compose up -d
Don’t use docker compose down -v
The -v option deletes the volumes, including the database and files. Don’t use it when updating.
If your .env is missing new entries after an update, compare it with the new deploy.env. The documentation explains which lines to add under Update an existing .env.
After signing in with your user account, you’ll be in My Workspace. Create pages, boards, tables, and calendars here, then connect your devices.
Create new content from the sidebar by selecting New page. Share individual pages using Share in the top-right corner: under Share, enter a guest’s email address and click Invite. Under Publish, publish a page so it can be read without signing in. Use Export as to download a page, for example, as Markdown or PDF.
Guests need their own account on your server. In the free tier, you can add up to three guests as editors to selected pages. You can see your server’s users and guests in the Admin Console under Users.
Download the apps for Windows, macOS, Linux, iOS, and Android from the AppFlowy download page. By default, they connect to AppFlowy’s cloud. Here’s how to switch the desktop app to your own server:
- In the app, open Settings and then Cloud Settings. If you’re not signed in yet, follow the app’s instructions to start with Quick Start first, then go to settings.
- Under Cloud server, select AppFlowy Cloud Self-hosted.
- Enter your server address with
https://, for example,https://appflowy.example.com, and confirm it. - Sign in with your user account. The app will then sync your workspaces with your server.
When you switch servers, the app may sign you out. This is normal.
In the Admin Console, under Desktop updates, you can choose whether desktop apps are allowed to update themselves and which minimum version they need to connect to your server. If the app is older than the minimum version, it will ask you to update before connecting.
- One user seat: The free self-hosting tier includes one user seat per server. The Admin account doesn’t count toward this limit. Any additional regular user will be unable to sign in and will see “Seat limit reached.” More seats, workspace members, single sign-on (SAML, LDAP), and other team features are only available with a paid AppFlowy license. See Upgrade Plan in the Admin Console for an overview of the features included in each tier.
- Up to three guests: Guests can only collaborate on pages you share with them, not across the entire workspace.
- Server license: AppFlowy’s current server is no longer fully open source. It is licensed under the AppFlowy Self-Hosted Commercial License. The desktop, mobile, and web apps remain open source.
- Resources: Around ten containers run continuously. Memory can quickly become scarce on a small VPS running other apps alongside AppFlowy.
- AI and email require your own provider: Without your own mail server, email sign-in links aren’t available; without access to an AI provider, the AI features won’t work.
With AppFlowy on your VPS, your notes, tasks, and databases are stored on your own server and synced across desktop, smartphone, and browser. The free self-hosting tier is enough for you and a few guests, but you’ll need an AppFlowy license for a team. The fastest way to get started is AppFlowy as a One-Click App: queue the installation, create your own account, and get started. Manual installation with Docker Compose gives you full control over the configuration and versions.