Files
akyldash/docs/operations/DEPLOYMENT.md
T
agent 16f97d5f73
CI / tests-and-images (pull_request) Has been cancelled
Guard recovery bootstrap from production host
2026-10-11 19:16:54 +03:00

2.1 KiB

Deployment

Current status

Production deployment is not enabled or tested on the VPS. An isolated local Compose smoke test passed; the VPS has no Docker, Git, application data, proxy, registry pull configuration, backup process, or restricted deploy-helper. Do not deploy until the owner has completed the root bootstrap, provided a protected secret file and a reviewed proxy/firewall configuration, and a backup and restore have been tested.

First host preparation

  1. Review the current inventory and state, then have the owner run sudo bash infra/bootstrap/bootstrap-ubuntu-24.04.sh from a verified copy of this branch on the VPS. The script installs Docker Engine/Compose and Git, sets Docker log rotation, and creates root-owned paths. It refuses other OS versions and does not change SSH, UFW, sudoers, or user groups. Use --recovery-target only on a replacement host; it refuses the known production host identity.
  2. Install the approved repository checkout at /opt/akyldash/current and configure /etc/akyldash/production.env plus /etc/akyldash/review_secret outside Git. The secret file must be root-readable only.
  3. Confirm DNS points through Cloudflare to this origin, then have the owner review firewall rules and open only TCP 80 and 443 in addition to the existing SSH access. The Compose Caddy service obtains and renews its HTTPS certificate automatically; Cloudflare Full (strict) still needs owner-side verification.
  4. Create and verify the first backup before starting services. Load and validate the OpenSearch index, create the initial admin interactively, and verify /review over HTTPS.

The remaining steps are intentionally manual until a restricted deploy-helper, registry permissions, a live Gitea runner, and the backup path are tested.

CI

.gitea/workflows/ci.yaml runs the Python unit suites and builds both production images on pull requests and pushes to main. It does not publish an image or deploy production. Gitea Actions is enabled at repository level, but a successful workflow run has not yet confirmed that a compatible runner is online.