Docs · Hosting

Laptop to production.

Docker Compose (recommended start)

cp .env.example .env   # fill only keys you use
docker compose -f docker-compose.prod.yml up -d --build
# API :8000 · console :3001 (compose profile console) · data in reflex-data volume

Public URL ($6 VPS + Caddy)

# DNS: api.memflex.dev → VPS IP, console.memflex.dev → VPS IP
# Caddyfile (auto-HTTPS):
api.memflex.dev { reverse_proxy localhost:8000 }
console.memflex.dev { reverse_proxy localhost:3001 }

Fly / Render / Railway

Deploy from repo; persistent disk at /data, REFLEX_DB_PATH=/data/reflex.db. Need scale? Add the compose db service (--profile pg) and set REFLEX_STORE=postgres + REFLEX_POSTGRES_DSN — same API, pgvector speed.

Ops signals

Backup = copy reflex.db nightly. Scale when /metrics p95 rises. Erasure: DELETE /reflexes/{id}. Full guide: repo docs/HOSTING.md.