Self-host
Upgrades and backups
Keep a self-hosted Comma instance current and recover cleanly if anything fails.
Upgrades
Always upgrade using the same Compose project name the instance started with; a different project name creates a new, empty set of volumes.
-
Stop the running stack with
docker compose down. This keeps all named volumes intact—never pass-vunless you intend to delete the instance. - Back up all five volumes together before pulling changes.
- Check out the target release in Git.
- Rebuild and start the stack with
docker compose up -d --build. -
Inspect
docker compose psanddocker compose logs migrate comma, then verify sign-in, saved conversations, a model reply and connected devices.
Backups
Stop the stack before taking a backup, then back up all five named volumes together—
config, postgres, objects,
clickhouse and redis—alongside the matching Git revision so
they restore to the same point in time.
Do not point an older image at a newer database schema without a documented downgrade path. Test restoration in an isolated Compose project before relying on a backup.
Never delete the config volume or regenerate an instance's secrets to
fix a start-up problem: data encrypted with those keys would become unreadable.