AFFiNE
| Description / name | Input element |
|---|---|
| Container Configuration Root Path | |
| User ID | |
| Group ID | |
| AFFiNE /config Path |
AFFiNE is an open-source, privacy-first, local-first knowledge management and collaboration tool.
| Registry | ghcr.io/daemonless/affine |
| Source | https://github.com/toeverything/AFFiNE |
| Website | https://affine.pro/ |
Version Tags
| Tag | Description | Best For |
|---|---|---|
latest |
Upstream Binary. Built from official release. | Most users. Matches Linux Docker behavior. |
Prerequisites
Before deploying, ensure your host environment is ready. See the Quick Start Guide for host setup instructions.
Deploy
1. Save as .env:
2. Save as compose.yaml:
3. Deploy:
Access AFFiNE at: http://your-host:3010
Environment Variables
| Variable | Description |
|---|---|
DATABASE_URL |
PostgreSQL connection string |
REDIS_SERVER_HOST |
Redis hostname (default: localhost) |
AFFINE_SERVER_EXTERNAL_URL |
Public URL for generated links |
AFFINE_INDEXER_ENABLED |
Enable document indexer (default: false) |
FreeBSD Notes
PostgreSQL Shared Memory
PostgreSQL requires System V IPC. The compose file includes the required annotation:
Network Mode
The stack uses network_mode: host — all services communicate via localhost. Only port 3010 needs to be exposed externally.