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.

  1. Stop the running stack with docker compose down. This keeps all named volumes intact—never pass -v unless you intend to delete the instance.
  2. Back up all five volumes together before pulling changes.
  3. Check out the target release in Git.
  4. Rebuild and start the stack with docker compose up -d --build.
  5. Inspect docker compose ps and docker 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.