Move Gitea to its own LXC; keep a forwarder on stpvm
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:
+3
-3
@@ -17,15 +17,15 @@
|
||||
# it to re-seed, which loses any UI-made settings).
|
||||
#
|
||||
# WHEN IT RUNS
|
||||
# Container start. docker-compose.yml overrides gitea's entrypoint to
|
||||
# Container start. gitea/docker-compose.yml overrides gitea's entrypoint to
|
||||
# ["/usr/bin/dumb-init", "--", "/etc/gitea/entrypoint.sh"], keeping dumb-init
|
||||
# as PID 1 for signal handling exactly as the stock image does, and inserting
|
||||
# this script ahead of Gitea's own docker-entrypoint.sh.
|
||||
#
|
||||
# WHERE THE SECRETS ACTUALLY COME FROM
|
||||
# Not from the template. docker-compose.yml passes GITEA__section__KEY
|
||||
# Not from the template. gitea/docker-compose.yml passes GITEA__section__KEY
|
||||
# environment variables (database credentials, LFS_JWT_SECRET,
|
||||
# INTERNAL_TOKEN, OAUTH2 JWT_SECRET) sourced from ./.env; Gitea applies those
|
||||
# INTERNAL_TOKEN, OAUTH2 JWT_SECRET) sourced from gitea/.env; Gitea applies those
|
||||
# over whatever app.ini says. That is why the template can safely ship with
|
||||
# those fields empty.
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user