mithlond-public/OKF/decisions/R-002-sqlite.md
Lukasz Boryn c12604ebb4 feat(template): publish the Mithlond self-hosted Gitea template
A spare-machine Gitea forge, hardened, backed up and with CI, as a template.
Personal values are placeholders listed in the README.
2026-10-16 15:04:18 +02:00

18 lines
650 B
Markdown

---
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)).