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

650 B

type, purpose, answers, cites, status, reversible
type purpose answers cites status reversible
Decision Record why Gitea stores its state in SQLite.
Which database backs Gitea: SQLite or PostgreSQL?
compose.yml:GITEA__database__DB_TYPE=sqlite3
live 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/11).