Prerequisites
- Ubuntu on ThinkCentre; you are on the home network (or Tailscale)
- Docker Engine + Compose plugin
- LUKS (or equivalent) on data volume — see SAAS-Lifebot/runbooks/pre-invite-security-gate
- Private git remote with SAAS-Lifebot code
- Clerk application; Tailscale and/or Cloudflare Tunnel
Steps
git clone <remote> SAAS-Lifebot && cd SAAS-Lifebot- Copy
.env.example→.env(mode600). Set: -CLERK_SECRET_KEY,NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY-APP_SECRET(≥32 random bytes, hex/base64) -DATABASE_URL=postgres://lifebot:...@db:5432/lifebot-NEXT_PUBLIC_APP_URL=https://<your-host> docker compose up -d --build- Confirm:
docker compose pshealthy; open app URL - Clerk dashboard: add production URL to allowed origins / redirect URLs
- Expose:
- Tailscale: install tailscale; share MagicDNS HTTPS or Serve
- Cloudflare Tunnel: point hostname at
http://127.0.0.1:3000 - Run SAAS-Lifebot/runbooks/pre-invite-security-gate
- Create your account; complete vault + consent; optional demo seed
Verification
- HTTPS or Tailscale only (no plain LAN HTTP for real data)
- Login works; Health unlocks after vault password
docker compose exec db psql …shows ciphertext in sealed columns
Rollback
docker compose down (add -v only if you intend to wipe DB). Restore from encrypted backup if needed.
Compiled from
wiki/projects/SAAS-Lifebot/runbooks/home-server-deploy.md · git is the source of truth