Self-Host Affine Without the Headache
Affine gives you the power of Notion and Miro merged into one workspace. Self-hosted, it costs zero in license fees. But there is infrastructure, maintenance, and ops overhead. This guide breaks down real costs, honest setup complexity, and when managed hosting wins.
Why Opsily for Managed Affine
Self-hosting Affine is free but not effortless. Opsily handles the infrastructure, backups, updates, and compliance so you do not have to.
Full Control, No Lock-In
Your data lives on your infrastructure. Export anytime. No vendor restrictions. You own the deployment, the database, everything. Ideal for teams managing sensitive company information.
80% Less Than Notion
Notion costs EUR 9.50 to EUR 19.50 per person monthly. Affine self-hosted costs zero per person plus infrastructure. Managed Affine on Opsily is still 80% cheaper than Notion at scale, with no per-seat fees.
GDPR & Data Residency
Self-hosted Affine means data stays where you say it stays. Germany-based servers. Compliant with GDPR by architecture, not by paperwork. Regulated teams (healthcare, finance, public sector) choose this path.
Built for teams who need reliability
Deploy Affine in 3 Steps
Docker Compose is the quickest path. Most teams go live in under an hour on their own infrastructure.
PostgreSQL, Redis, and a reverse proxy (nginx or Caddy). Docker Compose handles the setup. Need a VPS? Any cloud provider works: AWS, DigitalOcean, Linode, Hetzner.
Pull the Affine docker-compose.yml. Set environment variables for your domain, email, and database. Run docker-compose up. Affine starts on your subdomain in 5-10 minutes.
Create accounts, configure team settings, import data from Affine Cloud if migrating. Real-time collaboration works immediately. Optional: enable single sign-on for enterprise security.
PostgreSQL, Redis, and a reverse proxy (nginx or Caddy). Docker Compose handles the setup. Need a VPS? Any cloud provider works: AWS, DigitalOcean, Linode, Hetzner.
Pull the Affine docker-compose.yml. Set environment variables for your domain, email, and database. Run docker-compose up. Affine starts on your subdomain in 5-10 minutes.
Create accounts, configure team settings, import data from Affine Cloud if migrating. Real-time collaboration works immediately. Optional: enable single sign-on for enterprise security.
Prepare Your Server
PostgreSQL, Redis, and a reverse proxy (nginx or Caddy). Docker Compose handles the setup. Need a VPS? Any cloud provider works: AWS, DigitalOcean, Linode, Hetzner.
Run Docker Compose
Pull the Affine docker-compose.yml. Set environment variables for your domain, email, and database. Run docker-compose up. Affine starts on your subdomain in 5-10 minutes.
Invite Your Team
Create accounts, configure team settings, import data from Affine Cloud if migrating. Real-time collaboration works immediately. Optional: enable single sign-on for enterprise security.
What Self-Hosting Affine Actually Costs
License fee: zero. Infrastructure cost: real.
Infrastructure
A standard Affine stack needs: PostgreSQL (database), Redis (cache), and the Affine application server. A small production setup runs on a 2-core VPS with 4GB RAM. Pricing varies by provider.
- Hetzner Cloud: 2-core, 4GB, 40GB storage starts at EUR 6/mo
- DigitalOcean: 2GB droplet is USD 6/mo; add managed PostgreSQL (USD 15/mo) if preferred
- AWS: t3.small instance (USD 20/mo) plus RDS for PostgreSQL (USD 30+/mo)
Minimum monthly infrastructure: EUR 6-50/mo depending on provider and sizing.
Maintenance & Operations
This is where DIY costs add up.
- SSL certificates: free (auto-renewal via Let's Encrypt)
- Backups: your responsibility. Plan for database snapshots, object storage, and restore testing (time cost)
- Security updates: Docker images need monitoring. Affine updates every 2-4 weeks. Someone applies them
- Monitoring: server health, disk space, database performance. Manual checks or add Prometheus/Grafana (free but requires setup)
- DNS, domain renewal: USD 10-15/year
Operations time: 2-4 hours monthly to handle updates, backups, and troubleshooting. At USD 50/hour consulting rate, that is USD 100-200/mo in opportunity cost.
Total DIY Cost
- Infrastructure: EUR 6-50/mo
- Operations time: USD 100-200/mo (opportunity cost)
- Annual total: EUR 72-600 + USD 1,200-2,400 per year
Managed Affine on Opsily
We handle infrastructure provisioning, backups, SSL, security updates, monitoring, and support. Single invoice, predictable cost, zero operational overhead.
Trust & Compliance Built In
Open-source software with security and compliance baked into the architecture.
MIT-Licensed Frontend
BlockSuite, Affine's editor, is fully open-source under MIT. You can audit, modify, and redistribute the code. No surprises.
GDPR by Default
Self-hosted Affine stores data on servers you control. No third-party processors. No data residency requests needed because your data never leaves your infrastructure.
Active Community & Maintainers
70K+ GitHub stars, 294 contributors, 11,486 commits. Regular security audits and active issue resolution. Community-backed, not abandoned.
When to Self-Host vs. Go Managed
Self-Host Affine If:
- You have DevOps capability in-house and want full control over data and deployment
- Your infrastructure team already manages Kubernetes, Docker, or virtual machines
- Compliance requires data residency in a specific region or on your own servers
- You plan to customize the application or fork BlockSuite for your needs
- Ops overhead is acceptable as a cost of control
Choose Managed Affine (Opsily) If:
- You want Affine's power without maintaining PostgreSQL, Redis, backups, and updates
- Your team is small and cannot spare 2-4 hours per month on ops
- You need SLA guarantees, 24/7 monitoring, and incident response
- Compliance can be satisfied by managed hosting with GDPR guarantees and audit logs
- You want to move fast and let Opsily handle the infrastructure layer
Many teams start with self-hosted Affine and migrate to managed hosting after their first crisis: a database corruption, a security update that broke something, or a backup that would not restore. Managed hosting trades zero ops hours for a predictable monthly cost.
Simple, Predictable Pricing
Managed Affine hosting on Opsily. All plans include GDPR-compliant Germany-based servers, automatic backups, and 24/7 monitoring.
Loading pricing...
Self-Hosting Affine: Common Questions
Honest answers to help you decide between DIY and managed hosting.
Yes. Affine's license is free (MIT license for the frontend). You pay zero for the software itself. However, you pay for infrastructure: a VPS, PostgreSQL database, and Redis cache. Minimum infrastructure starts at EUR 6-10/mo on budget providers like Hetzner. Add time costs for setup, backups, and maintenance. Many teams find the total cost (infrastructure + ops time) equals or exceeds managed hosting within 6-12 months.
Ready to Deploy Affine?
Start with a free trial of managed Affine on Opsily. No credit card required. Full access for 14 days.