
AFFiNE
AFFiNE - Self-host version
AFFiNE
toeverything/affine-graphql:stable
Just deployed
/root/.affine/
Redis
bitnami/redis:7.2.5
Just deployed
/bitnami
Postgres
railwayapp-templates/postgres-ssl:16
Just deployed
/var/lib/postgresql/data
DON'T FORGET TO POINT THE PUBLIC URL TO THE PORT!!!
Deploy and Host AFFiNE on Railway
AFFiNE is a privacy-focused, local-first, open-source alternative to Notion and Miro that combines docs, whiteboards, and databases in one workspace.
About Hosting AFFiNE
Self-hosting AFFiNE requires Docker with three services: AFFiNE server, PostgreSQL, and Redis. Railway simplifies deployment by providing managed databases and automatic scaling.
Common Use Cases
- Knowledge management and wikis
- Collaborative whiteboarding
- Project planning with kanban boards
- Team documentation
- Personal note-taking with privacy
Dependencies for AFFiNE Hosting
- PostgreSQL 16+ (database)
- Redis 7+ (cache/sessions)
- Node.js 20+ (runtime)
- Docker (containerization)
Deployment Dependencies
Why Deploy AFFiNE 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 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
AFFINE_ADMIN_EMAIL
Redis
bitnami/redis:7.2.5