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 c27c233
Browse filesBrowse the repository at this point in the historyBrowse files
If you already have Ollama running on your host machine (outside Docker), you need to configure the `OLLAMA_URL` to use `host.docker.internal` instead of `localhost`:
95
+
96
+
```bash
97
+
# Docker Desktop (macOS/Windows)
98
+
OLLAMA_URL=http://host.docker.internal:11434 docker compose -f docker-compose.prod.yml up -d
99
+
100
+
# Linux (add extra_hosts or use host IP)
101
+
docker compose -f docker-compose.prod.yml up -d # Then set OLLAMA_URL to your host's IP
102
+
```
103
+
104
+
**Why?** When running inside Docker, `localhost` refers to the container itself, not your host machine. `host.docker.internal` is a special DNS name that resolves to the host.
105
+
106
+
For Linux users, you can either:
107
+
- Use your host machine's actual IP address (e.g., `http://192.168.1.100:11434`)
108
+
- Add `extra_hosts: ["host.docker.internal:host-gateway"]` to the simstudio service in your compose file
109
+
110
+
#### Using vLLM
111
+
112
+
Sim also supports [vLLM](https://docs.vllm.ai/) for self-hosted models with OpenAI-compatible API:
113
+
114
+
```bash
115
+
# Set these environment variables
116
+
VLLM_BASE_URL=http://your-vllm-server:8000
117
+
VLLM_API_KEY=your_optional_api_key # Only if your vLLM instance requires auth
118
+
```
119
+
120
+
When running with Docker, use `host.docker.internal` if vLLM is on your host machine (same as Ollama above).
121
+
92
122
### Self-hosted: Dev Containers
93
123
94
124
1. Open VS Code with the [Remote - Containers extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers)
@@ -190,6 +220,46 @@ Copilot is a Sim-managed service. To use Copilot on a self-hosted instance:
190
220
- Go to https://sim.ai → Settings → Copilot and generate a Copilot API key
191
221
- Set `COPILOT_API_KEY` environment variable in your self-hosted apps/sim/.env file to that value
192
222
223
+
## Environment Variables
224
+
225
+
Key environment variables for self-hosted deployments (see `apps/sim/.env.example` for full list):
226
+
227
+
| Variable | Required | Description |
228
+
|----------|----------|-------------|
229
+
|`DATABASE_URL`| Yes | PostgreSQL connection string with pgvector |
0 commit comments