Deployment
Everything is Docker Compose + Caddy. No cluster.
Layout
Section titled “Layout”~/sphere-dashboard/├── compose.yaml # all services├── Caddyfile # path routing├── certs/ # self-signed (gitignored)├── dashboard/ # static landing│ ├── Dockerfile # nginx:alpine│ └── site/├── whitepaper/dist/ # built from ~/sphere-whitepaper├── docs/dist/ # built from ~/sphere-docs└── demos/dist/ # built from ~/sphere-demosPath routing
Section titled “Path routing”| Path | Service |
|---|---|
/ | dashboard |
/landing | dashboard |
/whitepaper/* | whitepaper (nginx static) |
/docs/* | docs (nginx static) |
/demos/* | demos (nginx static) |
Build cycle
Section titled “Build cycle”# Whitepapercd ~/sphere-whitepaper && npm run buildrsync -a --delete dist/ ~/sphere-dashboard/whitepaper/dist/
# Docscd ~/sphere-docs && npm run buildrsync -a --delete dist/ ~/sphere-dashboard/docs/dist/
# Demoscd ~/sphere-demos && ./build.shrsync -a --delete dist/ ~/sphere-dashboard/demos/dist/
# Reload Caddy + (re)build static containerscd ~/sphere-dashboard && sg docker -c "docker compose up -d --build"(See ~/sphere-dashboard/scripts/deploy.sh once that exists.)