Skip to content

fix(self-hosting): durable uploads, compose overlays, and setup fixes for Docker Compose - #10765

Merged
waleedlatif1 merged 6 commits into
stagingfrom
waleed/selfhost-compose-fixes
Dec 4, 2026
Merged

waleedlatif1 merged 6 commits into
stagingfrom
waleed/selfhost-compose-fixes

Conversation

@waleedlatif1

@waleedlatif1 waleedlatif1 commented Dec 4, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Uploads survive container recreation: the app image creates apps/sim/uploads owned by the app user, Compose mounts a sim_uploads volume, and a one-shot uploads-init service fixes ownership so older pinned images stay writable
  • sim-setup lifecycle and wizard apply the same Compose file set the stack was started with (recorded files, then COMPOSE_FILE, then base + docker-compose.override.yml), so documented overlays are no longer dropped on start/update; stale or unrelated files are skipped with a warning; reset still only wipes Sim's own volumes
  • Wizard: --url flag and a Custom-mode public URL prompt write NEXT_PUBLIC_APP_URL; printed sign-up links use it
  • Ollama on Compose is wired to host.docker.internal, with the Linux bind note
  • doctor: CRON_SECRET required when the production file runs; POSTGRES_PASSWORD checked only where the file needs it (no random autofix); the realtime socket warning only fires for an unproxied :3000 origin
  • sim-setup add sandbox no longer offers Kubernetes on Compose
  • Healthchecks hit /api/health every 15s so up -d no longer looks hung for minutes; SIM_APP_PUBLISH/SIM_REALTIME_PUBLISH let a same-host proxy bind the ports to loopback (defaults unchanged)
  • Self-hosting docs: Node 20+ and npx sim-setup, durable uploads + migration steps for existing installs, /api/health needs v0.6.1+
  • Intentional docs code-example changes (bunx → npx, new uploads and Ollama snippets): the compatibility baseline records their new hashes in apps/docs/scripts/fixtures/content-baseline.json

Type of Change

  • Bug fix

Testing

  • packages/sim-setup: 133 tests pass (new regression tests for file-set resolution, stale/unrelated files, Windows separator, doctor gating, --url, Kubernetes hidden on Compose — each red against the pre-fix code); type-check clean
  • docker compose config -q on the prod and local files
  • biome, comment hygiene

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing (new tests pass the test-audit authoring gate)
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

@vercel

vercel Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
docs Skipped Skipped Dec 4, 2026 10:31pm UTC

Request Review

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 34 files

Reply with feedback, questions, or to request a fix.

Turn on auto-fix | Re-trigger cubic

Comment thread packages/sim-setup/src/steps.ts Resolved
Comment thread packages/sim-setup/src/lifecycle.ts Resolved
@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@waleedlatif1 I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 36 files

Reply with feedback, questions, or to request a fix.

Turn on auto-fix | Re-trigger cubic

Comment thread packages/sim-setup/src/checks.ts Resolved
@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@waleedlatif1 I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 36 files

Reply with feedback, questions, or to request a fix.

Turn on auto-fix | Re-trigger cubic

Comment thread packages/sim-setup/src/checks.ts Resolved
@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@waleedlatif1 I have started the AI code review. It will take a few minutes to complete.

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@waleedlatif1 I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 37 files

Reply with feedback, questions, or to request a fix.

Turn on auto-fix | Re-trigger cubic

Comment thread packages/sim-setup/src/lifecycle.ts Resolved
@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@waleedlatif1 I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 37 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

You've manually re-run cubic several times on this PR. Each manual re-review checks the full PR again and counts toward your usage quota. To preserve your usage limits, we recommend letting cubic automatically review new commits.

Turn on auto-fix | Re-trigger cubic

@waleedlatif1
waleedlatif1 merged commit 8adc2b5 into staging Dec 4, 2026
95 checks passed
@waleedlatif1
waleedlatif1 deleted the waleed/selfhost-compose-fixes branch December 5, 2026 00:48

This branch was previously deployed

1 inactive deployment
Preview — ef1d86d5 Deployed Dec 4, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant