generated from qtrn-io/repo-template
feat(forgejo): choose the database at installation, SQLite (default) or PostgreSQL #12
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Need
The
forgejorecipe stores its database in SQLite, on the data volume. That is the right default for a small forge: nothing else to run, one volume to back up.It has limits a larger forge reaches:
ReadWriteOncevolume, so the forge can only ever run as one pod (Recreatestrategy): no rolling update, no second replica.Proposal
Make the database a choice at installation: SQLite (default) or PostgreSQL.
registry-hostorapex-packages) that setsFORGEJO__database__DB_TYPE=postgresand takes host, database name, user and password from the environment and a Secret.To decide
requires, or both. The first is the smallest step..tycho/recipes/k8s/forgejo/package.jsonexpresses "one of two modes" (component with itsenv, and thedataentry to back up: a volume in one mode, a database in the other).secrets-postgres.dist.yamltemplate, as for the object storage mode.Out of scope
forgejo dump/ restore into the other engine) is an operator procedure that deserves its own guide and issue.Acceptance
bun run validatepasses and the README (English and French) describes both modes and how to choose.