Files
akyldash/docs/operations/DEPLOYMENT.md
T
2026-10-11 18:27:15 +03:00

1.8 KiB

Deployment

Current status

Production deployment is not enabled or tested. 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.
  2. Install the 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. Review DNS and certificate issuance, choose and configure the reverse proxy, then ask the owner to open only the required ports after confirming current firewall rules.
  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.