Repository navigation
Add one-command VPS deploy and diagnostic script for opencode-hub - #1712
Open
cramelolo291-bot wants to merge 10 commits into
Open
cramelolo291-bot wants to merge 10 commits into
cramelolo291-bot wants to merge 10 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>
Contributor
PR checks passedTitle, description and scope all look right. A maintainer |
cramelolo291-bot
marked this pull request as ready for review
November 24, 2026 21:17
cramelolo291-bot
marked this pull request as draft
November 24, 2026 21:17
cramelolo291-bot
marked this pull request as ready for review
November 24, 2026 21:17
Sync public snapshot from freebuff-private
cramelolo291-bot
marked this pull request as draft
November 24, 2026 21:38
cramelolo291-bot
marked this pull request as ready for review
November 24, 2026 21:38
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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).