--- type: Decision purpose: Record why Gitea stores its state in SQLite. answers: - "Which database backs Gitea: SQLite or PostgreSQL?" cites: - compose.yml:GITEA__database__DB_TYPE=sqlite3 status: live reversible: Migrate to PostgreSQL later via gitea dump plus restore. --- # 002 — SQLite as Gitea's database SQLite. It is right-sized for personal use, needs no extra container or RAM, and makes the backup one data directory. PostgreSQL would add a container for no gain at this scale. Consequence: Gitea must be stopped while its data is copied ([guides/10](../guides/10-backup-manual.md), [guides/11](../guides/11-backup-automated.md)).