S-SCOTTEK← HomepageNewsGuidesBuyingTeamForumSupportlog in · sign up
self-hosting 2026-11-30

Install AFFiNE 0.27.4 on Ubuntu: Self-Hosted Workspace

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.

Why self-host AFFiNE 0.27.4

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.

What you need

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:

Simulated terminal recreated from the test run showing the docker version, compose version, and architecture checks passing
Simulated terminal recreated from the test run showing the docker version, compose version, and architecture checks passing (Still from the walkthrough video.)

Fetch the official files

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:

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

Start the stack and check the migration

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:

Simulated terminal recreated from the test run showing compose up with postgres and redis healthy, the migration job exited, and the server started
Simulated terminal recreated from the test run showing compose up with postgres and redis healthy, the migration job exited, and the server started (Still from the walkthrough video.)

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.

Create the administrator account

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.

Live sandbox screenshot of the AFFiNE welcome setup page where a fresh install creates the admin account
Live sandbox screenshot of the AFFiNE welcome setup page where a fresh install creates the admin account (Still from the walkthrough video.)

Prove it works

The test record closes the loop with checks you can repeat against your own install:

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

What this guide leaves untested

The following were outside the verified test run and are marked untested here rather than implied:

Watch the walkthrough

Watch on YouTube

Webster the press owl — click to chat