Self-host AppFlowy on a VPS
A self-hosted, open-source workspace for notes and collaborative knowledge, an alternative to Notion.
levelrail-cli templates deploy appflowy --name my-appflowySpecification
- Status
- Listed
- Category
- Productivity
- Services
- admin_frontend, appflowy_cloud, gotrue, minio, postgres, redis
- Ports
- 3000
- Volumes
- 3
- Memory
- about 1.5 GiB
- arm64
- image published
- amd64
- image published
- Settings to fill in
- none
- License
- not yet recorded
About AppFlowy
A self-hosted, open-source workspace for notes and collaborative knowledge, an alternative to Notion. Runs 6 containers (admin_frontend, appflowy_cloud, gotrue, minio, postgres, redis), with admin_frontend listening on port 3000; data is kept in named volumes.
What it deploys
AppFlowy runs as 6 services in a single Compose app, listening on port 3000, with 3 named volume mounts.
| Service | Image | Tag | Ports | Volumes |
|---|---|---|---|---|
| admin_frontend | appflowyinc/admin_frontend | 0.9.149 | 3000 | none |
| appflowy_cloud | appflowyinc/appflowy_cloud | 0.9.149 | none | none |
| gotrue | appflowyinc/gotrue | 0.9.149 | none | none |
| minio | ghcr.io/coollabsio/minio | RELEASE.2025-10-15T17-29-55Z | none | appflowy_minio_data -> /data |
| postgres | pgvector/pgvector | pg16 | none | appflowy_postgres_data -> /var/lib/postgresql/data |
| redis | redis | 7-alpine | none | appflowy_redis_data -> /data |
Before you install
- CPU architecture. arm64 listed. Every image lists linux/arm64 in its registry manifest. That is a manifest fact, not proof the app runs on Arm.
- Listed. It is in the catalog. Back up the data volume before changing an image tag.
- Host ports. It publishes port 3000 directly on the host, so open them in the VPS firewall only if you want that.
Settings and environment
You do not have to fill in anything. 8 secrets are generated at deploy and stored encrypted. Values are never shown here.
| Service | Variable | Value |
|---|---|---|
| admin_frontend | APPFLOWY_BASE_URL | Preset by the template |
| admin_frontend | APPFLOWY_GOTRUE_BASE_URL | Preset by the template |
| appflowy_cloud | APPFLOWY_ACCESS_CONTROL | Preset by the template |
| appflowy_cloud | APPFLOWY_BASE_URL | Preset by the template |
| appflowy_cloud | APPFLOWY_DATABASE_URL | Generated at deploy |
| appflowy_cloud | APPFLOWY_ENVIRONMENT | Preset by the template |
| appflowy_cloud | APPFLOWY_GOTRUE_BASE_URL | Preset by the template |
| appflowy_cloud | APPFLOWY_GOTRUE_JWT_SECRET | Generated at deploy |
| appflowy_cloud | APPFLOWY_REDIS_URI | Preset by the template |
| appflowy_cloud | APPFLOWY_S3_ACCESS_KEY | Preset by the template |
| appflowy_cloud | APPFLOWY_S3_BUCKET | Preset by the template |
| appflowy_cloud | APPFLOWY_S3_CREATE_BUCKET | Preset by the template |
| appflowy_cloud | APPFLOWY_S3_MINIO_URL | Preset by the template |
| appflowy_cloud | APPFLOWY_S3_SECRET_KEY | Generated at deploy |
| appflowy_cloud | APPFLOWY_S3_USE_MINIO | Preset by the template |
| appflowy_cloud | RUST_LOG | Preset by the template |
| gotrue | API_EXTERNAL_URL | Preset by the template |
| gotrue | DATABASE_URL | Generated at deploy |
| gotrue | GOTRUE_ADMIN_EMAIL | Preset by the template |
| gotrue | GOTRUE_ADMIN_PASSWORD | Generated at deploy |
| gotrue | GOTRUE_API_HOST | Preset by the template |
| gotrue | GOTRUE_API_PORT | Preset by the template |
| gotrue | GOTRUE_DB_DRIVER | Preset by the template |
| gotrue | GOTRUE_DISABLE_SIGNUP | Preset by the template |
| gotrue | GOTRUE_JWT_SECRET | Generated at deploy |
| gotrue | GOTRUE_MAILER_AUTOCONFIRM | Preset by the template |
| gotrue | GOTRUE_SITE_URL | Preset by the template |
| gotrue | GOTRUE_URI_ALLOW_LIST | Preset by the template |
| minio | MINIO_ROOT_PASSWORD | Generated at deploy |
| minio | MINIO_ROOT_USER | Preset by the template |
| postgres | POSTGRES_DB | Preset by the template |
| postgres | POSTGRES_PASSWORD | Generated at deploy |
| postgres | POSTGRES_USER | Preset by the template |
Install AppFlowy on a VPS
-
Install Levelrail on a fresh VPS
Run this as root on a Linux server (amd64 or arm64) with ports 80 and 443 reachable. The installer prints a setup link.
curl -fsSL https://levelrail.com/install.sh | sudo sh -
Sign in
Open the setup link, choose a password, then log the CLI in. The CLI install command is
curl -fsSL https://levelrail.com/install-cli.sh | shif the machine does not have it. See Getting started.levelrail-cli login --device -
Read the template
Shows the entry, including its full compose.yaml.
levelrail-cli templates get appflowy -
Deploy it
This deploys the template compose file as an app. The app name defaults to the template id; --name sets another.
levelrail-cli templates deploy appflowy --name my-appflowy
Without a domain the app gets an sslip.io address. You can also deploy it from the dashboard: Apps, New app, Browse templates, then AppFlowy.
Docs and upstream
More in Productivity
- ArchiveBoxA self-hosted web archiver that saves pages as HTML, PDF, screenshots, WARC and media so links never rot. Creates the admin account on first start.
- Baby BuddyTrack sleep, feeding, diaper changes, and growth for a baby or toddler, with charts and timers.
- AFFiNEA block-based workspace combining docs, whiteboards, and databases in one self-hosted app.
- BentoPDFA privacy-first PDF toolkit that merges, splits, converts and edits files entirely in the browser, with no uploads.
- BookStackA simple, self-hosted platform for organizing documentation into books, chapters, and pages.
- Cal.comOpen-source scheduling infrastructure for booking meetings without the back-and-forth.