Start a personal cloud
Self-hosted apps for habits, todos, people, time and documents — with one sign-in in front of all of them.
On this page
The personal cloud is a set of small apps, each of which does one thing: habits in ethos, todos in telos, people in philotes, where your time went in eunomia, and paper in engrafo. Each runs as its own container with its own database and its own GraphQL API. You can run one of them or all of them; none depends on another.
What ties them together is sign-in. Put heautou in first and every app after it gets "Sign in with Heautou" by pasting one URL.
The stack #
One compose file runs all six apps, one shared Postgres (one database per app), and the object storage engrafo keeps files in. Paste it into a new stack in Portainer, Dockhand or whatever you use, or download it. Don't want an app? Delete its service.
Set these in the stack's environment; generate each secret with
openssl rand -hex 32:
| variable | |
|---|---|
PUBLIC_HOST |
the address other machines reach this one at — goes into heautou's issuer URL and each app's own URL |
POSTGRES_PASSWORD |
the shared Postgres |
RUSTFS_PASSWORD |
engrafo's object storage |
ETHOS_AUTH_SECRET, TELOS_AUTH_SECRET, PHILOTES_AUTH_SECRET, ENGRAFO_AUTH_SECRET |
one session secret per app |
Everything else — every port, URL and database URL — is an env var with a
default. Point an app at your own Postgres with its *_DATABASE_URL.
| app | what it holds | port |
|---|---|---|
| heautou | sign-in | 3000 |
| ethos | habits | 3010 |
| telos | todos | 3011 |
| philotes | people | 3012 |
| eunomia | time | 3013 |
| engrafo | documents | 3014 (storage on 9000/9001) |
How the pieces connect. heautou keeps its own data and needs nothing else.
Every other app has a database of its own on the shared Postgres, and engrafo
also stores files in RustFS, whose buckets a one-shot rustfs-init job
creates.
flowchart TB
user(["browser"])
heautou["heautou :3000<br/>sign-in"]
subgraph apps["apps"]
ethos["ethos :3010<br/>habits"]
telos["telos :3011<br/>todos"]
philotes["philotes :3012<br/>people"]
eunomia["eunomia :3013<br/>time"]
engrafo["engrafo :3014<br/>documents"]
end
pg[("postgres<br/>one database per app")]
rustfs[("rustfs :9000<br/>file storage")]
init["rustfs-init<br/>creates buckets once"]
user --> heautou
user --> apps
heautou -. "Sign in with Heautou" .-> apps
apps --> pg
engrafo --> rustfs
init --> rustfs
personal-cloud.yml — show the compose file
# Cubic Echo — personal cloud
# heautou (sign-in), ethos, telos, philotes, eunomia, engrafo, and one shared
# Postgres. https://cubicecho.com/guides/personal-cloud/
#
# Set in the stack's environment (generate each with `openssl rand -hex 32`):
# PUBLIC_HOST this machine's LAN address or hostname, e.g. 192.168.1.10
# POSTGRES_PASSWORD
# ETHOS_AUTH_SECRET, TELOS_AUTH_SECRET, PHILOTES_AUTH_SECRET, ENGRAFO_AUTH_SECRET
# RUSTFS_PASSWORD engrafo's object storage
#
# Don't want an app? Delete its service (and its CREATE DATABASE line).
# Every port, URL and database URL below can be overridden the same way. Set an
# app's *_DATABASE_URL to use your own Postgres instead of the bundled one.
# Sign-in: pair each app with heautou using a setup URL (see the guide), or
# add OIDC_ISSUER / OIDC_CLIENT_ID / OIDC_CLIENT_SECRET to that app.
name: cubicecho-cloud
services:
heautou:
image: ghcr.io/cubicecho/heautou:latest
restart: unless-stopped
environment:
ISSUER_URL: ${HEAUTOU_ISSUER_URL:-http://${PUBLIC_HOST:-localhost}:${HEAUTOU_PORT:-3000}/oidc}
DATABASE_URL: ${HEAUTOU_DATABASE_URL:-} # empty: embedded PGlite in /data
SECRET_KEY: ${HEAUTOU_SECRET_KEY:-}
TRUST_PROXY: ${TRUST_PROXY:-false}
NODE_ENV: production
ports:
- "${HEAUTOU_PORT:-3000}:3000"
volumes:
- heautou-data:/data
ethos:
image: vantreeseba/ethos:latest
restart: unless-stopped
depends_on:
postgres: { condition: service_healthy }
environment:
DATABASE_URL: ${ETHOS_DATABASE_URL:-postgres://cubicecho:${POSTGRES_PASSWORD:?set POSTGRES_PASSWORD}@postgres:5432/ethos}
BETTER_AUTH_SECRET: ${ETHOS_AUTH_SECRET:?set ETHOS_AUTH_SECRET}
APP_URL: ${ETHOS_URL:-http://${PUBLIC_HOST:-localhost}:${ETHOS_PORT:-3010}}
MCP_ENABLED: ${ETHOS_MCP_ENABLED:-false}
SMTP_URL: ${SMTP_URL:-}
SMTP_FROM: ${SMTP_FROM:-}
SECURE_LOCAL_NET: ${SECURE_LOCAL_NET:-false}
TRUST_PROXY: ${TRUST_PROXY:-false}
NODE_ENV: production
PORT: 3000
ports:
- "${ETHOS_PORT:-3010}:3000"
telos:
image: vantreeseba/telos:latest
restart: unless-stopped
depends_on:
postgres: { condition: service_healthy }
environment:
DATABASE_URL: ${TELOS_DATABASE_URL:-postgres://cubicecho:${POSTGRES_PASSWORD}@postgres:5432/telos}
BETTER_AUTH_SECRET: ${TELOS_AUTH_SECRET:?set TELOS_AUTH_SECRET}
APP_URL: ${TELOS_URL:-http://${PUBLIC_HOST:-localhost}:${TELOS_PORT:-3011}}
AI_ENABLED: ${TELOS_AI_ENABLED:-}
SMTP_URL: ${SMTP_URL:-}
SMTP_FROM: ${SMTP_FROM:-}
SECURE_LOCAL_NET: ${SECURE_LOCAL_NET:-false}
TRUST_PROXY: ${TRUST_PROXY:-false}
NODE_ENV: production
PORT: 3001
ports:
- "${TELOS_PORT:-3011}:3001"
philotes:
image: vantreeseba/philotes:latest
restart: unless-stopped
depends_on:
postgres: { condition: service_healthy }
environment:
DATABASE_URL: ${PHILOTES_DATABASE_URL:-postgres://cubicecho:${POSTGRES_PASSWORD}@postgres:5432/philotes}
BETTER_AUTH_SECRET: ${PHILOTES_AUTH_SECRET:?set PHILOTES_AUTH_SECRET}
APP_URL: ${PHILOTES_URL:-http://${PUBLIC_HOST:-localhost}:${PHILOTES_PORT:-3012}}
SMTP_URL: ${SMTP_URL:-}
SMTP_FROM: ${SMTP_FROM:-}
SECURE_LOCAL_NET: ${SECURE_LOCAL_NET:-false}
TRUST_PROXY: ${TRUST_PROXY:-false}
NODE_ENV: production
ports:
- "${PHILOTES_PORT:-3012}:3000"
volumes:
- philotes-data:/data
eunomia:
image: ghcr.io/cubicecho/eunomia:latest
restart: unless-stopped
depends_on:
postgres: { condition: service_healthy }
environment:
DATABASE_URL: ${EUNOMIA_DATABASE_URL:-postgres://cubicecho:${POSTGRES_PASSWORD}@postgres:5432/eunomia}
BETTER_AUTH_SECRET: ${EUNOMIA_AUTH_SECRET:-} # generated if unset
BETTER_AUTH_URL: ${EUNOMIA_URL:-http://${PUBLIC_HOST:-localhost}:${EUNOMIA_PORT:-3013}}
DISABLE_SIGNUP: ${EUNOMIA_DISABLE_SIGNUP:-false}
ALLOWED_EMAILS: ${EUNOMIA_ALLOWED_EMAILS:-}
LLM_BASE_URL: ${EUNOMIA_LLM_BASE_URL:-} # any OpenAI-compatible endpoint
LLM_MODEL: ${EUNOMIA_LLM_MODEL:-}
LLM_API_KEY: ${EUNOMIA_LLM_API_KEY:-}
TZ: ${TZ:-UTC}
PORT: "4000"
ports:
- "${EUNOMIA_PORT:-3013}:4000"
engrafo:
image: vantreeseba/engrafo:latest
restart: unless-stopped
depends_on:
postgres: { condition: service_healthy }
rustfs-init: { condition: service_completed_successfully }
environment:
DATABASE_URL: ${ENGRAFO_DATABASE_URL:-postgres://cubicecho:${POSTGRES_PASSWORD}@postgres:5432/engrafo}
BETTER_AUTH_SECRET: ${ENGRAFO_AUTH_SECRET:?set ENGRAFO_AUTH_SECRET}
APP_URL: ${ENGRAFO_URL:-http://${PUBLIC_HOST:-localhost}:${ENGRAFO_PORT:-3014}}
S3_ENDPOINT: ${ENGRAFO_S3_ENDPOINT:-http://rustfs:9000}
S3_PUBLIC_ENDPOINT: ${ENGRAFO_S3_PUBLIC_ENDPOINT:-http://${PUBLIC_HOST:-localhost}:${RUSTFS_PORT:-9000}}
S3_BUCKET: ${ENGRAFO_S3_BUCKET:-engrafo}
S3_TEXT_BUCKET: ${ENGRAFO_S3_TEXT_BUCKET:-engrafo-text}
S3_ACCESS_KEY_ID: ${ENGRAFO_S3_ACCESS_KEY_ID:-engrafo}
S3_SECRET_ACCESS_KEY: ${ENGRAFO_S3_SECRET_ACCESS_KEY:-${RUSTFS_PASSWORD:?set RUSTFS_PASSWORD}}
OCR_ENABLED: ${ENGRAFO_OCR_ENABLED:-true}
OCR_LANGUAGES: ${ENGRAFO_OCR_LANGUAGES:-eng}
SECURE_LOCAL_NET: ${SECURE_LOCAL_NET:-false}
TRUST_PROXY: ${TRUST_PROXY:-false}
TZ: ${TZ:-UTC}
NODE_ENV: production
ports:
- "${ENGRAFO_PORT:-3014}:3004"
# One Postgres for every app, one database each. pgvector because engrafo
# needs it; it is plain Postgres for the others.
postgres:
image: pgvector/pgvector:pg17
restart: unless-stopped
environment:
POSTGRES_USER: cubicecho
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: cubicecho
configs:
- source: create-databases
target: /docker-entrypoint-initdb.d/create-databases.sql
volumes:
- postgres-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U cubicecho -d cubicecho"]
interval: 5s
timeout: 5s
retries: 10
# Object storage for engrafo, and a one-shot job that creates its buckets.
rustfs:
image: rustfs/rustfs:latest
restart: unless-stopped
environment:
RUSTFS_ACCESS_KEY: engrafo
RUSTFS_SECRET_KEY: ${RUSTFS_PASSWORD}
RUSTFS_CONSOLE_ENABLE: "true"
RUSTFS_CORS_ALLOWED_ORIGINS: "*"
ports:
- "${RUSTFS_PORT:-9000}:9000"
- "${RUSTFS_CONSOLE_PORT:-9001}:9001"
volumes:
- rustfs-data:/data
healthcheck:
test: ["CMD", "curl", "-fsS", "http://127.0.0.1:9000/health"]
interval: 10s
timeout: 5s
retries: 10
rustfs-init:
image: rustfs/rc:latest
depends_on:
rustfs: { condition: service_healthy }
environment:
RUSTFS_PASSWORD: ${RUSTFS_PASSWORD}
entrypoint: >
sh -c "rc alias set local http://rustfs:9000 engrafo \"$$RUSTFS_PASSWORD\" &&
rc bucket create --ignore-existing local/engrafo &&
rc bucket create --ignore-existing local/engrafo-text"
restart: "no"
# Runs once, when the Postgres volume is first created.
configs:
create-databases:
content: |
CREATE DATABASE ethos;
CREATE DATABASE telos;
CREATE DATABASE philotes;
CREATE DATABASE eunomia;
CREATE DATABASE engrafo;
volumes:
heautou-data:
philotes-data:
postgres-data:
rustfs-data:
1. Set up heautou #
Open http://<PUBLIC_HOST>:3000 within ten minutes of first start and the setup
page creates your admin account. Missed the window? The setup link
(…/setup#token=…) is in heautou's container logs.
2. Open an app #
Each app is on its own port, above. Until it is paired with heautou it offers
its own sign-in (email when SMTP_URL is set, or open on a trusted network
with SECURE_LOCAL_NET=true).
3. Pair it with heautou #
In heautou, go to Clients → Pair an app, pick which groups may sign in, and make a setup URL. Paste it into the app's Set up sign-in page (or its settings). The app registers itself with heautou and sign-in works — no client ID to copy, no restart. A setup URL works once, for ten minutes; make one per app.
If you would rather configure it by hand, add OIDC_ISSUER (heautou's
ISSUER_URL), OIDC_CLIENT_ID and OIDC_CLIENT_SECRET to that app's
environment:. Env vars win over pairing.
4. Optional: let agents in #
ethos, telos, eunomia and engrafo also serve an MCP endpoint at /mcp, behind
an API key you make in the app's settings (set ETHOS_MCP_ENABLED=true for
ethos; telos needs its AI features on). Once you have a few, Give your agents tools
covers putting them in front of a model.
Where to go next #
- symphony puts one UI over all of these apps: it talks to each one's GraphQL API, and you (or an agent) build its pages out of modules.
- Each app's README has the full settings, including email sign-in and S3 storage.
Projects in this guide
-
heautou
A minimal self-hosted OIDC provider — one sign-in for every app on your network.
site ↗ view → -
ethos
Just habits — cadence, completions, cues.
view → -
telos
A self-hostable todo board, and agents to work it if you want them.
site ↗ view → -
philotes
A personal CRM for the people who matter — not your pipeline.
site ↗ view → -
eunomia
A multiplatform activity tracker — what you used, for how long, on your own server.
site ↗ view → -
engrafo
A minimal self-hostable document archive — the short path through Paperless-ngx.
site ↗ view →