Repository navigation
Add one-command VPS deploy and diagnostic script for opencode-hub - #1712
cramelolo291-bot wants to merge 17 commits into
Conversation
Installing on a fresh VPS still meant cloning the repo, hand-editing .env and hashing a password before Caddy would serve the domain. Add deploy/install.sh (Docker + .env + basic auth + compose), deploy/bootstrap.sh for a one-line curl install, and an auth.caddy snippet imported by the Caddyfile so the domain is not openly usable. The opencode image now installs the real npm package (opencode-ai) and runs `opencode web`, so the deployed root shows the actual opencode UI instead of the API-only server. 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
When the domain does not answer, the useful facts are spread across DNS, listening ports, container states and Caddy's certificate store, and the README only lists symptoms. Add a read-only doctor.sh that checks all of them in one run and prints a fix suggestion for each failure, so a deploy can be triaged on the VPS without guessing or reading logs first. 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
PR checks passedTitle, description and scope all look right. A maintainer |
Sync public snapshot from freebuff-private
|
This PR doesn't fit here. It adds a whole new subsystem — Beyond scope, the content raises real red flags:
If the goal is to deploy |
Summary
Adds a one-command VPS deployment and a diagnostic script for
opencode-hub, plus the supporting Docker/Caddy stack and documentation.What changed
opencode-hub/deploy/— Docker Compose + Caddy stack (HTTPS via Let's Encrypt/ZeroSSL),.env.example,Caddyfile, and detailedREADME.mdcovering DNS, verification, backup, and troubleshooting.install.sh/bootstrap.sh— one-command install on a fresh VPS: clones the repo, installs Docker, fills.env, creates the login, and starts all containers.doctor.sh— diagnostic script to inspect a deployedopencode-hub.Dockerfile.hub,Dockerfile.opencode,Dockerfile.hermesfor the hub/data server, opencode agent, and optional Hermes agent..dockerignore/.gitignore— exclude runtime data, secrets, and local state from build context.README.mdupdates — documents the permanent VPS deployment path with a custom domain.Why
The hub previously only ran in ephemeral sandboxes. This makes it deployable to a real VPS with a stable HTTPS URL and automatic certificates, while keeping opencode and Hermes on the internal compose network.
Fixes none (new feature).