Railway

Deploy AFFiNE-latest

Selfhosted sync backend for AFFiNE version 0.23.0+

Deploy AFFiNE-latest

Redis

redis

Just deployed

/data

Just deployed

/var/lib/postgresql/data

Just deployed

/root/.affine

!!!All you need to do is to setup the AFFiNE service domain port to 3010 (or your port of choice if not using the default) in the service settings.!!!

!!! Please use a railway environment/project created post Oct 16th 2025, since the ipv4 address for interal networking is needed for the redis connection to be found by the backend server.!!!

Deploy and Host AFFiNE Cloud on Railway

AFFiNE is an open-source, all-in-one workspace and an operating system for all the building blocks that assemble your knowledge base and much more -- wiki, knowledge management, presentation and digital assets. It's a better alternative to Notion and Miro.

About Hosting AFFiNE Cloud

This template offers a simple way to host AFFiNE Cloud on Railway with all the default settings. Tested for AFFiNE 0.25.7 on Jan 27, 2026 with the official recommended docker-compose setup mirrored as a Railway project. Auto update are disabled by default, but can be enabled by the user.

Common Use Cases

  • Knowledge management and wikis
  • Collaborative whiteboarding
  • Project planning with kanban boards
  • Team documentation
  • Personal note-taking with privacy

Check out https://affine.pro/ for more information. It's basically notion + miro + linear, but self-hosted and open source :)

Dependencies for AFFiNE-selfhost Hosting

No dependencies are required for this template! Though it is possible to use other storage services like R2 or S3 for blobs to go over Railway's limit (depending on which plan you are on), but that requires additional configuration.

Deployment Dependencies

Just an email account to set up the admin account, nothing else :)

Implementation Details

This template mirrors the official docker compose setup for AFFiNE 0.25.7 fetched on Jan 27, 2026. See https://github.com/toeverything/affine/releases/latest/download/docker-compose.yml

Why Deploy AFFiNE-selfhost on Railway?

Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying AFFiNE-selfhost on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.


Template Content

More templates in this category

View Template
caring-vibrancy
Deploy and Host caring-vibrancy with Railway

baleocho
View Template
Mellow Vue
A full-stack Vue app with The Boring JavaScript Stack.

Sailscasts HQ
View Template
NextJS 15.5 (Server Actions) with Shadcn
Better-Auth Ready with Auth flows and Server actions (Prod ready)

ContourKDE