Affine Stack
Host: Homelab · Compose:
Homelab/Docker/affine/compose.yaml
1. Overview
Affine is a next-gen knowledge base and workspace. This stack deploys Affine with Postgres for its database and Redis for caching.
2. Architecture & Services
| Service | Image | Port | Role |
|---|---|---|---|
affine |
ghcr.io/toeverything/affine:0.27.4 |
— | — |
affine_migration |
ghcr.io/toeverything/affine:0.27.4 |
— | — |
postgres |
pgvector/pgvector:0.8.6-pg16-trixie |
— | — |
redis |
redis:8.10.1-alpine3.23 |
— | — |
3. Networking
affine— —cloudflare-net— —
4. Persistent Storage
| Container | Host Path / Volume | Description |
|---|---|---||
| affine | /docker/data/affine/config | — |
| affine | /docker/data/affine/data/storage | — |
| affine_migration | /docker/data/affine/config | — |
| affine_migration | /docker/data/affine/data/storage | — |
| postgres | /docker/data/affine/data/postgres | — |
5. Environment Variables
| Variable | Service | Description |
|---|---|---|
AFFINE_INDEXER_ENABLED |
affine |
— |
DATABASE_URL |
affine |
— |
REDIS_SERVER_HOST |
affine |
— |
AFFINE_INDEXER_ENABLED |
affine_migration |
— |
DATABASE_URL |
affine_migration |
— |
REDIS_SERVER_HOST |
affine_migration |
— |
POSTGRES_DB |
postgres |
— |
POSTGRES_HOST_AUTH_METHOD |
postgres |
— |
POSTGRES_INITDB_ARGS |
postgres |
— |
POSTGRES_USER |
postgres |
— |