---
title: "Deploy AFFiNE in One Click | Open Source All-in-One Workspace"
description: "Deploy AFFiNE on Kuberns in one click. Production-ready PostgreSQL, persistent storage, HTTPS, and automatic configuration. No infrastructure setup required."
source: "https://kuberns.com/deploy/affine"
---

# Deploy AFFiNE in One Click with AI

Open source all-in-one workspace combining documents, whiteboards, and databases into a collaborative knowledge platform

## What is AFFiNE? Why use it?

AFFiNE is an open source all-in-one workspace that combines documents, whiteboards, and databases into a single collaborative knowledge platform. It is often considered a powerful alternative to Notion and Miro, with strong local-first foundations and real-time collaboration capabilities.

## Features

With Kuberns, database provisioning, persistent storage, environment configuration, networking, HTTPS, health checks, and automatic restarts are handled automatically so you can start collaborating immediately

## What's Included

### AFFiNE Setup (Without the Infrastructure Hassle)

Running AFFiNE in production is more than starting a container. It requires proper database wiring, persistent storage for workspace data, secure session configuration, and reliable uptime. Kuberns handles this from the first deploy:

- Production-ready PostgreSQL database is provisioned and connected automatically
- Persistent storage is mounted for uploads, attachments, and workspace data
- Required production environment variables are preconfigured
- HTTPS is enabled by default, no certificate management required
- Reverse proxy and networking are configured correctly
- Always-on service with health checks and automatic restarts

### Why Developers Struggle on Other Platforms

AFFiNE is a stateful collaborative system. It performs best with a stable, always-on, production-focused setup. Many PaaS platforms are optimized for stateless apps, not persistent knowledge systems.

- Manual PostgreSQL setup and connection string configuration
- Persistent volume misconfiguration leading to lost uploads
- Incorrect base URL or server secret causing login or session issues
- Cold starts interrupting collaboration
- Reverse proxy and HTTPS setup requiring manual configuration
- Scaling compute and storage needing infrastructure planning

### Why Use Kuberns for AFFiNE?

Kuberns lets you focus on building knowledge systems, not managing infrastructure.

- One click deployment with production defaults applied
- No servers, no Docker setup, no infrastructure management
- Database automatically provisioned and injected
- Persistent storage configured correctly from day one
- HTTPS and domain mapping handled automatically
- Easy vertical and horizontal scaling
- Secure handling of secrets and environment variables

## Deploy Now

- **Deploy on Kuberns**: https://kuberns.com/deploy/affine
- **Documentation**: https://docs.kuberns.com/docs/
- **View Official Documentation**: https://docs.kuberns.com/docs/
