A step-by-step guide to self-hosting AFFiNE, an open-source Notion-like workspace, on Windows using WSL 2 and Docker Compose. Covers downloading official config files, setting up environment variables, launching the stack with PostgreSQL and Redis, accessing the admin panel, connecting the desktop app, performing safe backups, upgrading, and troubleshooting common errors like Docker not running or port conflicts.

5m read timeFrom freecodecamp.org
Post cover image
Table of contents
Table of ContentsWhat is AFFiNE?PrerequisitesStep 1: Preparing Your WorkspaceStep 2: Getting the Official Setup FilesStep 3: Configuring Your Environment (.env)Step 4: Launching the SystemStep 5: Accessing the Admin PanelStep 6: Configuration (Making It Yours)Step 7: Connecting the Desktop App (Optional)Step 8: Stopping the Server and Safe BackupsStep 9: How to Upgrade LaterCommon Installation Errors and TroubleshootingConclusion

Sort: