Deploy AFFiNE (w/ admin login)
Docs and whiteboards, a Notion and Miro alternative. Your own admin login.
Redis
Just deployed
/data
Just deployed
/root/.affine
Postgres
Just deployed
/var/lib/postgresql/data
Deploy and Host AFFiNE (w/ admin login) on Railway
AFFiNE is an open-source workspace for docs, whiteboards and databases, an alternative to Notion and Miro. This template creates your administrator account from the deploy form and closes sign-up, so nobody can claim the setup page that the most-deployed AFFiNE templates leave open to the first visitor.

About Hosting AFFiNE (w/ admin login)
It runs AFFiNE 0.27.4 from the official image with a private Postgres (pgvector) and Redis, and keeps uploads on a volume. Deploy, open your AFFiNE URL and sign in with the email and password from the deploy form. To add teammates, create their accounts in the admin panel at /admin (Accounts), or open sign-up there in the settings.
Common Use Cases
- Team wiki and meeting notes
- Whiteboards for planning sessions
- Project tracking in databases
Dependencies for AFFiNE (w/ admin login) Hosting
- PostgreSQL (pgvector)
- Redis
- Volume
Deployment Dependencies
Implementation Details

It fits the Free plan: AFFiNE uses about 0.3 GB of a 0.5 GB service, Postgres 0.12 GB and Redis 0.03 GB. Free's 0.5 GB volume limits uploads. Back up Postgres and the AFFiNE volume, which holds uploads and the server's signing key. Email (invitations, password resets) needs SMTP, which Railway allows only on Pro; signing in with a password needs none.
Why Deploy AFFiNE (w/ admin login) 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 (w/ admin login) 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.
Updated 2026-11-29: First release, AFFiNE 0.27.4.
Not affiliated with or endorsed by the AFFiNE team.
Template Content
Redis
redis:8.2ADMIN_EMAIL
Your email address. It becomes the AFFiNE administrator account: you sign in with it and the password below.
ADMIN_PASSWORD
Choose your AFFiNE password: 8 to 32 characters. Used once, at the first start, to create your administrator account; change it later in AFFiNE's account settings.
Postgres
pgvector/pgvector:pg16