
This guide is the written companion to the video Install AFFiNE 0.27.4 on Ubuntu: Self-Hosted Workspace — same steps, same commands, in text form you can copy. Transcript note: the auto-subtitles fetch returned HTTP 429, so the video description plus the verified narration script stand in as the transcript-equivalent here. Video claims below describe what the video shows, and anything beyond it comes from the linked docs and the verified test record.
AFFiNE is an open-source workspace that covers docs, task boards, and whiteboards in one app, and the video installs it as a self-hosted server on your own box. The version throughout is 0.27.4, confirmed as the latest stable tag via the AFFiNE releases page and the release API on 2026-11-30. The install method is the official Docker Compose path from the self-host docs, whose Compose install page is the maintained reference for this setup.
The stack the Compose file brings up is the AFFiNE server plus a one-time migration container, Postgres for data, and Redis for cache, with persistent volumes under ./data and settings in ./config. Minimum resources per the docs are 4 CPUs, 2 GB of RAM, and a stable deployment folder.
The video assumes the host is ready before the first command, matching the self-host docs:
If Docker is not installed yet, work through Docker Engine Ubuntu Setup: apt Repo, Group Fix, Hello-World Proof first, since Docker installation itself is out of scope here. Confirm the prerequisites answer before continuing:
docker --version, and expect Docker version 29.1.3 on the tested benchdocker compose version, and expect Compose v5.8.1 on the tested benchuname -m, and expect x86_64
Everything comes from the official release, pinned to the latest stable. In the video this is one short sequence, and each command below is Prag-verified:
mkdir affine && cd affine && mkdir -p configcurl -L -o docker-compose.yml https://github.com/toeverything/AFFiNE/releases/latest/download/docker-compose.ymlcurl -L -o config/config.json https://github.com/toeverything/AFFiNE/releases/latest/download/config.json.examplegrep externalUrl config/config.json, and expect server.externalUrl set to http://localhost:3010The releases/latest/download links above resolved to the v0.27.4 assets at verification time. Changing the external URL for remote access is untested in the test record, so keep the localhost default unless you know what you are doing.
Bring the stack up in the background with docker compose up -d, which starts the database, the cache, the server, and the one-time migration job together. The video shows four containers with these states, recreated from the real test output:
affine_postgres is Healthyaffine_redis is Healthyaffine_migration_job has Exited cleanly, which is expected for a one-time jobaffine_server is Started
Prove the database is ready with docker compose logs affine_migration | grep -E 'successfully applied|Done', and expect the line All migrations have been successfully applied. followed by a Done timing. Confirm the service states with docker compose ps --format '{{.Name}} {{.Status}}', and expect the migration container at Exited (0). The on-screen up -d output in the video is a shortened selection of the longer first-run log, which the test notes disclose.
Open http://localhost:3010/ in a browser on the host. A fresh install redirects to /admin/setup, which returns HTTP 200 with an AFFiNE page title, and the setup wizard walks you through creating the administrator account. That account unlocks the workspace, the desktop apps, and sync.

The test record closes the loop with checks you can repeat against your own install:
curl localhost:3010/, and expect 302 to /admin/setupThe sandbox run created a test admin user on the example.com placeholder domain, so no real mail delivery was involved. Data lives in your deployment folder under ./data, with settings in ./config, not in a black box.
The following were outside the verified test run and are marked untested here rather than implied:
externalUrl and exposing the server beyond localhost, including reverse-proxy and TLS setup