Skip to content

Commit 4a74051

Browse files
authored
docs(self-hosting): collapse the self-hosting guide, generate the reference tables, and remove duplication (#10779)
* docs(self-hosting): collapse the self-hosting guide, generate the reference tables, and remove duplication * fix(docs): www links and stricter env-name declarations for the self-hosting lint
1 parent 98cee77 commit 4a74051

31 files changed

Lines changed: 1831 additions & 3535 deletions

‎README.md‎

Lines changed: 2 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
<p align="center">
99
<a href="https://deepwiki.com/simstudioai/sim" target="_blank" rel="noopener noreferrer"><img src="https://img.shields.io/badge/Ask-DeepWiki-E6E6E6?labelColor=C3C3C3&color=E6E6E6" alt="Ask DeepWiki"></a>
10-
<a href="https://cursor.com/link/prompt?text=Help%20me%20set%20up%20Sim%20locally.%20Follow%20these%20steps%3A%0A%0A1.%20First%2C%20verify%20Docker%20is%20installed%20and%20running%3A%0A%20%20%20docker%20--version%0A%20%20%20docker%20info%0A%0A2.%20Clone%20the%20repository%3A%0A%20%20%20git%20clone%20https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim.git%0A%20%20%20cd%20sim%0A%0A3.%20Generate%20required%20secrets%20%28the%20stack%20will%20not%20start%20without%20them%29%3A%0A%20%20%20cat%20%3E%20.env%20%3C%3C%20EOF%0A%20%20%20BETTER_AUTH_SECRET%3D%24%28openssl%20rand%20-hex%2032%29%0A%20%20%20ENCRYPTION_KEY%3D%24%28openssl%20rand%20-hex%2032%29%0A%20%20%20INTERNAL_API_SECRET%3D%24%28openssl%20rand%20-hex%2032%29%0A%20%20%20CRON_SECRET%3D%24%28openssl%20rand%20-hex%2032%29%0A%20%20%20POSTGRES_PASSWORD%3D%24%28openssl%20rand%20-hex%2024%29%0A%20%20%20EOF%0A%0A4.%20Start%20the%20services%20with%20Docker%20Compose%3A%0A%20%20%20docker%20compose%20-f%20docker-compose.prod.yml%20up%20-d%0A%0A5.%20Wait%20for%20all%20containers%20to%20be%20healthy%20%28this%20may%20take%201-2%20minutes%29%3A%0A%20%20%20docker%20compose%20-f%20docker-compose.prod.yml%20ps%0A%0A6.%20Verify%20the%20app%20is%20accessible%20at%20http%3A%2F%2Flocalhost%3A3000%0A%0AIf%20there%20are%20any%20errors%2C%20help%20me%20troubleshoot%20them.%20Common%20issues%3A%0A-%20Port%203000%20or%203002%20already%20in%20use%0A-%20Docker%20not%20running%0A-%20Insufficient%20memory%20%28needs%2012GB%2B%20RAM%29%0A%0AFor%20local%20AI%20models%20with%20bundled%20Ollama%2C%20add%20OLLAMA_URL%3Dhttp%3A%2F%2Follama%3A11434%20to%20.env%2C%20then%20use%20one%20of%20these%20instead%20of%20step%204%20%28gpu%20needs%20an%20NVIDIA%20GPU%29%3A%0A%20%20%20docker%20compose%20-f%20docker-compose.prod.yml%20-f%20docker-compose.ollama.yml%20--profile%20gpu%20up%20-d%0A%20%20%20docker%20compose%20-f%20docker-compose.prod.yml%20-f%20docker-compose.ollama.yml%20--profile%20cpu%20up%20-d%0APull%20the%20starter%20model%20once%20Ollama%20is%20running%3A%0A%20%20%20docker%20compose%20-f%20docker-compose.prod.yml%20-f%20docker-compose.ollama.yml%20--profile%20setup%20run%20--rm%20model-setup%0AThen%20check%20status%20in%20step%205%20with%20the%20profile%20you%20started%3A%0A%20%20%20docker%20compose%20-f%20docker-compose.prod.yml%20-f%20docker-compose.ollama.yml%20--profile%20gpu%20ps%0A%20%20%20docker%20compose%20-f%20docker-compose.prod.yml%20-f%20docker-compose.ollama.yml%20--profile%20cpu%20ps"><img src="https://img.shields.io/badge/Set%20Up%20with-Cursor-E6E6E6?logo=cursor&logoColor=1A1A1A&labelColor=C3C3C3&color=E6E6E6" alt="Set Up with Cursor"></a>
10+
<a href="https://cursor.com/link/prompt?text=Help%20me%20self-host%20Sim.%20Run%20npx%20sim-setup%2C%20and%20use%20https%3A%2F%2Fdocs.sim.ai%2Fplatform%2Fself-hosting%2Fdocker%20to%20fix%20anything%20that%20fails."><img src="https://img.shields.io/badge/Set%20Up%20with-Cursor-E6E6E6?logo=cursor&logoColor=1A1A1A&labelColor=C3C3C3&color=E6E6E6" alt="Set Up with Cursor"></a>
1111
</p>
1212

1313
<p align="center">
@@ -96,56 +96,7 @@ See the [MCP docs](https://docs.sim.ai/mcp/overview) for other clients and for s
9696

9797
## Self-hosting
9898

99-
**Requirements:** [Node.js 20+](https://nodejs.org/) and [Docker](https://www.docker.com/).
100-
101-
`npx sim-setup` is an interactive wizard that creates a small `sim/` deployment directory, provisions the database, generates secrets, writes `.env`, connects a Chat API key, and starts the published Sim images with Docker Compose. It does not clone the repository.
102-
103-
When it finishes, open [http://localhost:3000](http://localhost:3000).
104-
105-
Inside a cloned Sim repository, run `bun run sim-setup` to unlock the source-only local development and Kubernetes modes.
106-
107-
Reconfigure an optional capability without rerunning the full wizard:
108-
109-
```bash
110-
npx sim-setup config
111-
npx sim-setup add email
112-
npx sim-setup add storage
113-
npx sim-setup add sandbox
114-
npx sim-setup add jobs
115-
npx sim-setup add knowledge
116-
npx sim-setup add chat
117-
npx sim-setup add llm
118-
npx sim-setup add integration slack
119-
```
120-
121-
`npx sim-setup config` detects the effective local-dev, Docker Compose, or current-context
122-
Helm configuration and reports configured, missing, or invalid capabilities and OAuth
123-
integrations without printing credential values. This is separate from `npx sim-setup status`,
124-
which reports whether installed services are running and healthy.
125-
126-
Manage your install from its directory:
127-
128-
```bash
129-
npx sim-setup start | stop | restart # bring your install up / down / cycle
130-
npx sim-setup update # pull and apply Compose images
131-
npx sim-setup status # what's installed and healthy
132-
npx sim-setup logs # follow logs
133-
npx sim-setup doctor # diagnose configuration problems
134-
npx sim-setup down # remove containers (data kept)
135-
npx sim-setup reset # archive .env and wipe managed data
136-
```
137-
138-
The setup package detects how you're running and acts accordingly. Use `--dir <path>` to create or manage a deployment somewhere other than `./sim`.
139-
140-
Sim also supports local models via [Ollama](https://ollama.ai), [vLLM](https://docs.vllm.ai/), and [LiteLLM](https://docs.litellm.ai/). See the [self-hosting docs](https://docs.sim.ai/self-hosting/docker) for details.
141-
142-
## Chat API Keys
143-
144-
Chat is a Sim-managed service. `npx sim-setup` connects a Chat API key for you — sign in when it opens your browser and the key is stored automatically. To view, create, or revoke keys later, go to [sim.ai/selfhost/settings/chat-keys](https://sim.ai/selfhost/settings/chat-keys).
145-
146-
## Environment Variables
147-
148-
See the [environment variables reference](https://docs.sim.ai/self-hosting/environment-variables) for the full list, or [`apps/sim/.env.example`](apps/sim/.env.example) for defaults.
99+
`npx sim-setup` needs [Node.js 20+](https://nodejs.org/) and [Docker](https://www.docker.com/). It writes a `sim/` directory with the Compose file and a generated `.env`, connects a Chat API key, and starts Sim at [http://localhost:3000](http://localhost:3000). The [self-hosting guide](https://docs.sim.ai/platform/self-hosting) covers Kubernetes, configuration, local models, and upgrades.
149100

150101
## Tech Stack
151102

‎apps/docs/COPY_AUDIT.md‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,6 @@ Every row below represents a fully reviewed inventory entry. “Rewritten” inc
502502
| [platform/self-hosting/index.mdx](content/docs/platform/self-hosting/index.mdx) | rewritten | Replaced the drifting manual quick-start script with the setup wizard and Docker owner. Separated resource examples from enforced requirements and operational defaults. Placed key/file durability, public origin, email, scheduler, and verification before optional dependencies. Qualified enterprise behavior by billing mode and retained local embedding/remote image prerequisites. | Verified improvement. Reorders deployment choice, supported wizard, production hazards and dependencies; sizing becomes examples rather than user-count guarantees. Verified late fix: Quick start now places Bun and Node.js20 or newer before bunx sim-setup, alongside the preserved Docker and Compose2.24.0 prerequisites. Wizard output, manual setup links and production safeguards remain. Preserved: All deployment choices, resource examples, enterprise/org prerequisites, model/embedding/Chat/OAuth/remote dependencies and next steps retained. Removed raw5secret quickstart replaced by wizard plus full Docker manual setup. |
503503
| [platform/self-hosting/integrations-oauth.mdx](content/docs/platform/self-hosting/integrations-oauth.mdx) | rewritten | Created canonical Google, Microsoft, and Atlassian console setup sections for Search crosslinks. Preserved full Google Search member scopes/callbacks, all Microsoft resource scopes, full Confluence/Jira member scopes, API permissions/consent/distribution and reconnection distinctions. Added Intune, Ramp, and QuickBooks per-connection configuration; kept all prior provider exceptions/flows and hosted-only key constraints. Kept the complete GitHub App setup at its inbound anchor and removed both screenshots, retaining the correct six-permission table. Folded duplicate FAQ into setup/provider/troubleshooting sections and corrected Kubernetes secret modes. Used shared authored tabs with padded mixed content, wrapped prose, visible horizontal scrolling, and mobile touch targets. | Verified improvement. Adds complete Google/Microsoft/Atlassian member grants and distinction from Search service accounts; corrects secret-store deployment setup and scope-update/reconnect procedure. Verified late fix: GitHub App replacement now uses Credential Groups → Integrations → Update configurations. The migration affects existing provider options, preserves option IDs and retains all reconnect and secret handling consequences. Preserved: All original provider IDs/envcredentials/callbacks, GitHubAppsettings/readpermissions5variablesPEMrefresh/privateboundaries, Bitbucketexactpermissions,7providerextras, alternateInstagram/Shopify/Trelloflows, hostedkeycatalog/limits and nativeSlack requirements retained; current Ramp/Intune/QuickBooks added. Screenshots removed with full GitHub fields intact. |
504504
| [platform/self-hosting/kubernetes.mdx](content/docs/platform/self-hosting/kubernetes.mdx) | rewritten | Pinned published chart 1.11.8/appVersion v0.9.17 without claiming a live installation test or latest status. Replaced partial public-origin snippet with complete same-host/split-host routing, allowed origin and TLS Secret instructions. Separated inline, existing-Secret and ESO branches; documented env versus envDefaults and retained all core credentials. Labeled legacy ingress-nginx defaults and annotations honestly; did not choose/provision a controller or invent Gateway API support. Pinned cloud example source v0.9.17 and required review of certificate/IAM/storage/project placeholders; preserved database-name and key-loss upgrade caveats. Corrected cosign reference syntax and qualified registry mirroring of verification artifacts. | Verified improvement. Provides full3secretmode setup, working dual port-forward/public socket/TLS examples, same-releasepinnings, verification and safe retained-secret upgrades; scopes ingress retirement. Preserved: Every original OCI/classicrepo/cosign/attestation/cloud6domainoverride/ExternalDB/redis/migrations/cron/backupconversion/PVC consequence retained; code snippets now complete and pinned instead of abstract v1.2.3. |
505-
| [platform/self-hosting/platforms.mdx](content/docs/platform/self-hosting/platforms.mdx) | rewritten | Converted unsupported Railway template guarantees into concrete verification steps and exposed five-minute cron limits. Replaced the production convenience-script recommendation with official Docker installation and plugin prerequisites. Clarified provider-specific cloud placeholders and extension availability/activation. Labeled external DATABASE_URL scope and explained production Compose overrides. | Verified improvement. Removes unsupported live-template assumptions and adds minute-scheduler gap, maintained ingress requirement and externalDSN Compose limitation. Preserved: Railway/VPS/EKS/AKS/GKE/database providers, pgvector requirement, TLS/ManagedCertificate, resource sizing and externalDatabase setup remain; Railway badge replaced by usable linked template. |
506505
| [platform/self-hosting/verify.mdx](content/docs/platform/self-hosting/verify.mdx) | rewritten | Preserved all 12 checks and doctor file/journal/live-probe limitations, then separated core and feature checks. Corrected cloud/local multipart thresholds and cross-replica proof claims. Added namespace-consistent commands, avoided printing a Redis credential, and checked actual job success rather than schedules alone. Preserved credential restore checks, uppercase INFO logging/no-op behavior, and upgrade subset. | Verified improvement. Replaces presence-only health guarantees with actual data/recipient/completion results and crosspod requirement; corrects multipart localvscloud thresholds. Preserved: All12checks/failureactions, doctor5groups/repairlimits/journal/skippedprobes, domains, infra/Composecommands, loglevel and postupgrade/postrestore OAuth-key checks retained. |
507506

508507
### Self hosting operations (12)

‎apps/docs/content/docs/platform/enterprise/self-hosted.mdx‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ DATA_DRAINS_ENABLED=false
3030

3131
You can also leave the master switch unset and enable individual features. The [feature flag reference](#feature-flag-reference) lists them all.
3232

33+
The suite includes retention deletion. Review any retention windows your organizations have configured before turning it on, or set `DATA_RETENTION_ENABLED=false`.
34+
3335
## Choose an organization model
3436

3537
### One organization for the instance

0 commit comments

Comments
 (0)