Commit 52f9801
feat(self-host): improve on-premises deployment for homelabbers (#1737)
* feat(self-host): improve on-premises deployment for homelabbers
- Publish images to Docker Hub (switchbacktech/compass-{backend,web,mongo})
with semver tags (X.Y.Z, X.Y, latest) via new publish-images.yml workflow
- Switch docker-compose.yml from local builds to Hub image references;
keep commented-out build blocks for users who need custom builds
- Add compass_backend_logs and compass_mongo_configdb named volumes so all
writable paths are on volumes; add read_only: true + tmpfs on backend and web
- Run backend and web containers as non-root compass user (uid 1001);
no extra Linux capabilities required
- Simplify install.sh from 947 to ~270 lines: replace git/archive download
with curl for docker-compose.yml and compass helper; no --build on startup
- Update compass helper: COMPOSE_FILE now at $INSTALL_DIR/docker-compose.yml,
update command uses docker compose pull instead of git fetch + build
- Rename COMPASS_REF to COMPASS_VERSION throughout; add secret generation
hints to .env.example
- Add docs/Self-Hosting/environment-variables.md: full env var reference
derived from backend and web Zod schemas
- Document health endpoint in Self-Hosting README
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* docs: removed advanced-manual doc
* docs(self-host): restructure env vars and monitoring docs
- Convert environment-variables.md to markdown tables
- Remove intro copy/secret-generation lines from environment-variables.md
- Extract health endpoint into standalone monitoring.md
- Remove env vars and health endpoint links from README, add monitoring link
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* refactor(self-host): derive project name from install directory
Remove COMPOSE_PROJECT_NAME env var. Docker Compose project name is now
derived from basename of the install directory in both install.sh and the
compass helper, so --project-name stays consistent without requiring an
explicit env var. Users who need a second install use a different directory.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* chore(self-host): remove .env.example, point to backend example file
The installer auto-generates .env so a separate template adds no value.
Update self-host/README.md and environment-variables.md to reference
packages/backend/.env.local.example instead.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* fix(self-host): clean up compose comment style and env vars doc reference
* docs: remove outdated deploy.md
* docs: add CI-CD section, move cli commands doc into it
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* docs(ci-cd): simplify publish-images docs and remove outdated build-args section
---------
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 950103e commit 52f9801
17 files changed
Lines changed: 462 additions & 691 deletions
File tree
- .github/workflows
- docs
- CI-CD
- development
- self-hosting
- self-host
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
File renamed without changes.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
44 | | - | |
| 43 | + | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
| 76 | + | |
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| |||
This file was deleted.
0 commit comments