Keep the pre-move Gitea in .deprecated/gitea as the rollback
The old stpvm service is kept as a compose override with its state mounts pointed at .deprecated/gitea/, where the pre-move data now lives (gitignored), so rolling back is one layered 'up' rather than a revert. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -49,3 +49,28 @@ host, valid until 2027-01-20.
|
||||
|
||||
To bring them back: revert the commit that moved them here and then `daa2a46`;
|
||||
DEPLOYMENT.md §7 ("Roll back to nginx") has the commands.
|
||||
|
||||
## gitea/
|
||||
|
||||
Gitea as it ran inside this stack on stpvm until 2026-11-24, when it moved to
|
||||
its own Proxmox LXC (`stpgit`, `gitea/docker-compose.yml`) and stpvm's
|
||||
`gitea` service became a forwarder to it.
|
||||
|
||||
- `docker-compose.gitea.yml` — the old service, with its state mounts
|
||||
repointed at this directory.
|
||||
- `data/` and `config/app.ini` (gitignored, on stpvm only) — the pre-move
|
||||
copy of the repositories and the live config, moved here from `gitea/`.
|
||||
Gitea's pre-move database is still the `gitea` database in stpvm's `db`.
|
||||
|
||||
To bring it back on stpvm: stop Gitea on stpgit, copy anything pushed since
|
||||
the move back (its `gitea/data`, and a `pg_dump` of `gitea-db` restored into
|
||||
`db`'s `gitea` database), then
|
||||
`docker compose -f docker-compose.yml -f .deprecated/gitea/docker-compose.gitea.yml up -d gitea`.
|
||||
The service still reads `POSTGRES_GITEA_DB` and the three `GITEA_*`
|
||||
secrets from `.env`; stpvm's `.env` still has them, so keep them there until
|
||||
this copy is deleted. Delete `data/`, `config/app.ini` and the old database once the LXC has run
|
||||
cleanly for a few weeks (from about 2026-12-08).
|
||||
|
||||
The laptop's own leftovers (an old dev `gitea/data` and `app.ini`, and a
|
||||
stale `gitea-runner/.runner`) are under `dev-leftovers/` here, also
|
||||
gitignored, and can simply be deleted.
|
||||
|
||||
Reference in New Issue
Block a user