Stage 18 — prod contour deploy (two-host registry rollout, rolling + auto-rollback) #103
Reference in New Issue
Block a user
Delete Branch "feature/prod-contour-deploy"
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?
Stage 18 — prod contour deploy (machinery)
Two-host production deploy: main (
erudit-game.ru, full stack + ACME) and tg (bot only, native Bot API, no VPN). The first live cutover is pending theerudit-game.ruDNS delegation (ACME needs it); everything else is built and verified.What's here
deploy/ansible/(idempotent): docker, a non-sudodeployuser with the CI key, key-only sshd, default-deny ufw, fail2ban. Already run + verified on both hosts.vpn+botgated to atelegram-localprofile (the test deploy now passes--profile telegram-local);docker-compose.prod.yml(main overlay: publish 80/443/9443,GOMAXPROCS=2, trimmed limits, 7d retention for the 2 vCPU / 1.9 GiB host);docker-compose.bot.yml(standalone tg bot);node_exporter+ a Prometheus scrape for host-memory monitoring..gitea/workflows/prod-deploy.yaml(manualworkflow_dispatchfrommaster,confirm=deploy) builds + pushes to the registry, ships over SSH, thendeploy/prod-deploy.shrolls the main stack one service at a time in dependency order, health-gated, auto-rollback to the previous tag; a schema migration adds a maintenance window + consistentpg_dump.PROD_set is in Gitea.deploy/README.md(prod runbook), PLAN Stage 18, PRERELEASE TX/AG.Notes
node_exporter.