From 4da83a1e3c6a903f66f1d01fcd10367145dab50b Mon Sep 17 00:00:00 2001 From: Waleed Latif Date: Mon, 28 Apr 2025 22:46:34 -0700 Subject: [PATCH] update README --- README.md | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index bbd065825e..6f76a56838 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ Discord Twitter PRs welcome - support + Documentation

@@ -94,6 +94,28 @@ To use local models with Sim Studio, follow these steps: The application will now be configured to use your local models. You can access it at [http://localhost:3000/w/](http://localhost:3000/w/). +#### Connecting to Existing Ollama Instance + +If you already have an Ollama instance running on your host machine, you can connect to it using one of these methods: + +```bash +# Method 1: Use host networking (simplest approach) +docker compose up --profile local-cpu -d --build --network=host +``` + +Or modify your docker-compose.yml: + +```yaml +# Method 2: Add host.docker.internal mapping +services: + simstudio: + # ... existing configuration ... + extra_hosts: + - "host.docker.internal:host-gateway" + environment: + - OLLAMA_HOST=http://host.docker.internal:11434 +``` + ### Option 2: Dev Containers 1. Open VS Code or your favorite VS Code fork (Cursor, Windsurf, etc.)