WP-21: one-box Sepolia deploy under infra/ (Caddy + qBittorrent + Kubo + seed + registrar + indexer) - #26
Merged
Conversation
Caddy (auto HTTPS) reverse-proxies seed1/registrar/index, with qBittorrent swarm 6881, Kubo swarm 4001, and seed-api/registrar/indexer on the compose network only. PGlite volumes by default. Bootstrap is a compose profile. Co-authored-by: Jeff Lau <jefflau@users.noreply.github.com>
Idempotent rsync+compose deploy over BatchMode SSH. Remote bootstrap runs enspack-bootstrap plan/run in the bootstrap profile. Nightly workflow curls the three /v1/health endpoints and skips without INFRA_BASE_DOMAIN. Co-authored-by: Jeff Lau <jefflau@users.noreply.github.com>
@enspack/infra is a workspace package with check. Tests parse compose (seven services, published ports, healthchecks, env vars, no keys), bash -n both scripts, and parse the nightly workflow YAML. No Docker. Co-authored-by: Jeff Lau <jefflau@users.noreply.github.com>
Minimal env plumbing so the one-box volume can hold resume state. Service Dockerfiles copy infra/package.json so pnpm workspace installs still resolve. Root README points at infra/README.md. Co-authored-by: Jeff Lau <jefflau@users.noreply.github.com>
Co-authored-by: Jeff Lau <jefflau@users.noreply.github.com>
Co-authored-by: Jeff Lau <jefflau@users.noreply.github.com>
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.
infra/per MVP.md §1 ("docker compose, deploy notes") so the Sepolia MVP services run on one Docker VM.docker-compose.yml: caddy (automatic HTTPS forseed1.,registrar.,index.<DOMAIN>), qbittorrent (6881 tcp/udp), kubo (swarm 4001 published; API internal), seed-api, registrar (PGlite volume,DATABASE_URLoptional), indexer (Ponder :42069, PGlite volume); healthchecks, restart policies, resource notes; all secrets viainfra/.env(.env.exampledocuments every variable).deploy.sh <user@host>: rsync (no node_modules/dist/.git/.env logs),docker compose up -d --build, waits for the three health endpoints;bootstrap-remote.sh <user@host> [--tier] [--limit]runs the bootstrap runner on the box against the same env (state persisted via newENSPACK_BOOTSTRAP_STATE)..github/workflows/nightly-health.ymlcurls the three health endpoints (skips withoutINFRA_BASE_DOMAIN).COPY infra/package.jsonfor the new workspace member; no TypeScript changes in services.Acceptance → tests (
infra/test/*.test.ts, 13)${VAR}documented in.env.example, no key/token-looking values.bash -non both scripts, host-arg guard, no secret echo; workflow YAML parses.Proof
Root
pnpm checkafter rebase ontomaster: all green (infra 13, bootstrap 14, plus all prior suites). Unproven (no Docker here or in CI, no box yet): image builds /compose up, ACME issuance, qBittorrent first-boot password flow, live bootstrap on the box.SPEC.md/schema/*untouched.