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
- Review the current inventory and state, then have the owner run
sudo bash infra/bootstrap/bootstrap-ubuntu-24.04.shfrom 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-targetonly on a replacement host; it refuses the known production host identity. - Install the approved repository checkout at
/opt/akyldash/currentand configure/etc/akyldash/production.envplus/etc/akyldash/review_secretoutside Git. The secret file must be root-readable only. - Confirm DNS points through Cloudflare to this origin, then have the owner
review firewall rules and open only TCP
80and443in 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. - Create and verify the first backup before starting services. Load and
validate the OpenSearch index, create the initial admin interactively, and
verify
/reviewover 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.