You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 9f13dd7
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: apps/docs/content/docs/platform/self-hosting/architecture.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -74,7 +74,7 @@ The chart can also render the optional `copilot` service, its separate PostgreSQ
74
74
|**Secrets**|`ENCRYPTION_KEY`, `API_ENCRYPTION_KEY`, `BETTER_AUTH_SECRET`, `INTERNAL_API_SECRET`, `CRON_SECRET`| Secret manager and separate recovery copies |
75
75
76
76
<Callouttype="error">
77
-
The production Compose file keeps local uploads in the `sim_uploads` volume on its host; the Helm chart mounts no volume for them, so without cloud storage or your own volume, recreating an app pod loses those files. Local files are also invisible to other replicas. Configure [object storage](/platform/self-hosting/object-storage) before storing durable files or scaling.
77
+
Without object storage, uploads are local: Compose keeps them in the `sim_uploads` volume on one host, and the Helm chart keeps them on each pod, lost when it is recreated. Configure [object storage](/platform/self-hosting/object-storage) before storing durable files or scaling.
Copy file name to clipboardExpand all lines: apps/docs/content/docs/platform/self-hosting/docker.mdx
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -69,13 +69,13 @@ Set `CRON_SECRET` for scheduled work. Without it, the cron service prints instru
69
69
70
70
### 2. Configure durable uploads
71
71
72
-
Without object storage, the app stores uploads in `/app/apps/sim/uploads`. The production Compose file mounts the `sim_uploads` volume there, so files survive container recreation and updates. The volume is still local to this host: it is not shared across hosts or app replicas, and it needs its own backup. A one-shot `uploads-init` service makes the volume writable by the app user before the app starts.
72
+
Without object storage, the app stores uploads in the `sim_uploads` volume, so they survive container recreation and updates. It stays on this hostand needs its own backup. A one-shot `uploads-init` service makes it writable by the app user.
73
73
74
74
Follow [Object storage](/platform/self-hosting/object-storage) for AWS S3, Azure Blob, or Google Cloud Storage.
75
75
76
76
#### Existing installs: keep uploads from before the volume
77
77
78
-
Compose files from before `sim_uploads`stored local uploads inside the app container, and recreating it discards them. Copy them out before you switch to the new Compose file or run`npx sim-setup update`, then copy them into the volume:
78
+
If your install predates the `sim_uploads`volume, uploads live inside the app container and recreating it discards them. Copy them out before switching to the new Compose file or running`npx sim-setup update`, then copy them in:
Route `/socket.io` to realtime on 3002 and other requests to the app on 3000. The 250 MB decimal Caddy limit clears the configured 220 MiB deployed-chat cap, but the app's current Next.js proxy buffer still limits matching requests to 10 MiB. See [Request size limits](/platform/self-hosting/networking#request-size-limits) before increasing payload sizes. `flush_interval -1` explicitly disables response buffering; Caddy already flushes SSE immediately. It also keeps the upstream request running if the client disconnects. See [Caddy streaming behavior](https://caddyserver.com/docs/caddyfile/directives/reverse_proxy#streaming).
135
135
136
-
When the proxy runs on the same host, set `SIM_APP_PUBLISH=127.0.0.1:3000` and `SIM_REALTIME_PUBLISH=127.0.0.1:3002` in `.env` so the app and realtime are reachable only through it. Change only the bind address, not the ports:`sim-setup` checks the app on 3000 and realtime on 3002.
136
+
When the proxy runs on the same host, set `SIM_APP_PUBLISH=127.0.0.1:3000` and `SIM_REALTIME_PUBLISH=127.0.0.1:3002` in `.env` so the app and realtime are reachable only through it. Keep the ports;`sim-setup` checks 3000 and 3002.
137
137
138
138
This example assumes Caddy runs on the Docker host. A containerized proxy needs reachable Compose service addresses instead of its own `localhost`. For Nginx, Traefik, cloud load balancers, or separate socket hosts, see [Networking](/platform/self-hosting/networking).
Copy file name to clipboardExpand all lines: apps/docs/content/docs/platform/self-hosting/environment-variables.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -236,7 +236,7 @@ Most enterprise features read their settings from the organization that owns a w
236
236
237
237
## File storage
238
238
239
-
By default Sim writes uploads to local disk. Production Compose keeps them in the `sim_uploads` volume on its host; the default Helm chart mounts no upload directory, so configure cloud storage or a persistent local layout there before retaining files. See [Object storage](/platform/self-hosting/object-storage) for the full setup, bucket layout, and IAM policy.
239
+
By default Sim writes uploads to local disk. See [Object storage](/platform/self-hosting/object-storage) for the setup, bucket layout, and IAM policy.
Copy file name to clipboardExpand all lines: apps/docs/content/docs/platform/self-hosting/index.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,7 +50,7 @@ These are sizing suggestions, not enforced minimums or capacity guarantees. The
50
50
- Verify [background jobs](/platform/self-hosting/background-jobs), including the scheduler's `CRON_SECRET`.
51
51
52
52
<Callouttype="warn">
53
-
Local uploads live on the Docker host (the `sim_uploads` volume on Compose) and are not shared across hosts; on Kubernetes without object storage, recreating an app pod loses them. Losing an encryption key makes the data encrypted with it unreadable. A database backup does not replace file storage or key backups.
53
+
A database backup does not cover local uploads or encryption keys; back them up separately. Losing an encryption key makes the data encrypted with it unreadable.
54
54
</Callout>
55
55
56
56
Run [Verify your install](/platform/self-hosting/verify) before opening the deployment to your team and after upgrades or restores.
Copy file name to clipboardExpand all lines: apps/docs/content/docs/platform/self-hosting/upgrades.mdx
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,8 +27,6 @@ ghcr.io/simstudioai/migrations
27
27
Keep `app`, `realtime`, and `migrations` on the same release. They share a schema; mismatched versions can expect missing columns or incompatible behavior. An application-only rollback needs verified compatibility with the migrated schema.
28
28
</Callout>
29
29
30
-
The production Compose file's app healthcheck calls `/api/health`, which images have served since v0.6.1. An install pinned to an older `SIM_VERSION` never reports healthy with it: upgrade, or keep the Compose file you already run.
Inspect the result with `npx sim-setup logs`, which targets whichever Compose file the install uses.
176
174
175
+
If your install predates the `sim_uploads` volume, copy its uploads out first: see [keep uploads from before the volume](/platform/self-hosting/docker#existing-installs-keep-uploads-from-before-the-volume). `sim-setup update` stops and asks before recreating an app container that still holds uploads.
176
+
177
177
`docker-compose.prod.yml` requires `POSTGRES_PASSWORD`. If you manage the file yourself and Compose stops with `required variable POSTGRES_PASSWORD is missing a value`, confirm which password initialized the existing database volume. If it was never set, the old default was `postgres`; restore that value first, then see [Postgres on Compose](/platform/self-hosting/security#postgres-on-compose) to rotate it.
178
178
179
179
Before updating a pinned production install, replace `SIM_VERSION` in `.env` with the chosen release tag. The update command pulls that configured tag; it does not automatically advance a pin.
180
180
181
-
The CLI detects only those two files. A stack started with the `docker-compose.ollama.yml` overlay is detected as a`docker-compose.prod.yml`install, and `update`upgrades its Sim services through that file alone, keeping `OLLAMA_URL` from`.env`. It does not touch the Ollama container. To refresh the Ollama image as well, run the update with both files:
181
+
The CLI detects installs by those two files. For a stack started with more files, such as the`docker-compose.ollama.yml`overlay, `update`applies every file the stack was started with and saves the set as `COMPOSE_FILE` in`.env`, so it still applies after `docker compose down`. Compose does not record profiles, so the profile-scoped Ollama service is updated only when `.env` sets `COMPOSE_PROFILES` (for example `COMPOSE_PROFILES=gpu`). Otherwise refresh it by hand:
182
182
183
183
```bash
184
184
# The Ollama service is profile-scoped, so pass the profile you installed
Expect `simstudio`, `realtime`, `db`, `redis`, and `cron` to be running, with `migrations` completed successfully. Without `CRON_SECRET`, the cron service exits instead of running schedules.
102
+
Expect `simstudio`, `realtime`, `db`, `redis`, and `cron` to be running, with `migrations`and `uploads-init`completed successfully. Without `CRON_SECRET`, the cron service exits instead of running schedules.
0 commit comments