Move Gitea to its own LXC; keep a forwarder on stpvm
Test and deploy / test (push) Successful in 17s
Test and deploy / deploy (push) Successful in 2s

Gitea (git, Actions, the registry) now runs from gitea/docker-compose.yml
on a separate Proxmox LXC with its own Postgres, deployed by hand. The
stack's gitea service becomes an haproxy TCP forwarder from stpvm's 3000
and 2222 to the LXC (GITEA_UPSTREAM), under the same container name, so
Caddy, the backend feed, usaco, the runner, Renovate and every repo's CI
keep their addresses. Webhooks from the LXC reach Caddy over the LAN.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
2026-11-24 15:42:44 +00:00
co-authored by Claude Opus 5.5
parent aa4c3b1a67
commit 10606f4c77
13 changed files with 381 additions and 148 deletions
+3 -1
View File
@@ -111,7 +111,9 @@ check-compose:
echo "docker compose -f docker-compose.yml config -q"; \
docker compose --project-directory "$$pd" -f docker-compose.yml config -q; \
echo "docker compose -f docker-compose.yml -f docker-compose.dev.yml config -q"; \
docker compose --project-directory "$$pd" -f docker-compose.yml -f docker-compose.dev.yml config -q
docker compose --project-directory "$$pd" -f docker-compose.yml -f docker-compose.dev.yml config -q; \
echo "docker compose -f gitea/docker-compose.yml config -q (the Gitea LXC, against gitea/.env.example)"; \
docker compose -f gitea/docker-compose.yml --env-file gitea/.env.example config -q
# The edge config is validated by the image build itself (the last RUN in
# caddy/Dockerfile runs `caddy validate` for the production and dev sites), so