Skip to content

Add production deployment script for Ubuntu 22 + Docker#14

Merged
ChesnoTech merged 1 commit intodevelopfrom
feature/deploy-script
Mar 26, 2026
Merged

Add production deployment script for Ubuntu 22 + Docker#14
ChesnoTech merged 1 commit intodevelopfrom
feature/deploy-script

Conversation

@ChesnoTech
Copy link
Copy Markdown
Owner

Summary

One-command installer for deploying KeyGate on Ubuntu 22 VMs (Proxmox, cloud, bare metal).

Branch Type

  • feature/ — New feature (→ develop)

Changes

  • deploy/install.sh: Full automated installer

What It Does

  1. Installs Docker if missing
  2. Clones repo from GitHub
  3. Generates .env with secure random passwords
  4. Creates self-signed SSL cert
  5. Builds and starts Docker stack (4 containers)
  6. Creates admin user with super_admin role
  7. Verifies health endpoint
  8. Prints access URLs + credentials

Usage

curl -fsSL https://raw.githubusercontent.com/ChesnoTech/KeyGate/main/deploy/install.sh | sudo bash

Testing Checklist

  • Script has proper error handling (set -e)
  • Pre-flight checks (root, OS version)
  • Idempotent (safe to run twice)
  • Needs live test on Ubuntu 22 VM

One-command installer for Proxmox/Ubuntu VMs:
- Auto-installs Docker if missing
- Clones KeyGate from GitHub
- Generates .env with secure random passwords
- Creates self-signed SSL cert
- Builds and starts Docker stack
- Creates admin user with super_admin role
- Verifies health endpoint
- Prints access URLs and credentials

Usage: curl -fsSL https://raw.githubusercontent.com/.../install.sh | sudo bash
@ChesnoTech ChesnoTech merged commit d235c99 into develop Mar 26, 2026
4 checks passed
@ChesnoTech ChesnoTech deleted the feature/deploy-script branch March 26, 2026 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant