Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

docs(docker): clarify Windows/WSL2/Mac networking — drop --network host, use host.docker.internal (#3925)

LearningCircuit5bd717d022f2
diff --git a/README.md b/README.md
index 68a4eccab2..437b84bb44 100644
--- a/README.md
+++ b/README.md
@@ -64,6 +64,8 @@ docker run -d -p 5000:5000 --network host \
localdeepresearch/local-deep-research
```
+> **Mac / Windows / WSL2 users:** `--network host` only works on native Linux. On Docker Desktop it silently fails to publish port 5000 *and* leaves `localhost` pointing at the LDR container itself (so it can't reach Ollama/SearXNG). Use **Option 2** below, or see the [Windows/WSL2 FAQ entry](docs/faq.md#port-5000-not-accessible-on-windows) for a working `docker run` recipe.
+
**Option 2: Docker Compose**
CPU-only (all platforms):
diff --git a/docs/faq.md b/docs/faq.md
index c1306605bb..bc1714ed79 100644
--- a/docs/faq.md
+++ b/docs/faq.md
@@ -383,15 +383,30 @@ Common issues:
### Port 5000 not accessible on Windows
-Windows Docker issue. Modify docker-compose.yml:
-```yaml
-services:
- local-deep-research:
- # ... other config ...
- extra_hosts:
- - "host.docker.internal:host-gateway"
+This usually means you copied a `docker run … --network host …` recipe from the Linux quick-start. `--network host` is a Linux-only feature: on Docker Desktop (Mac, Windows, WSL2) it silently drops the `-p 5000:5000` publish, so the WebUI looks unreachable. As a side effect, `localhost` inside the container also stops resolving to your host's Ollama / SearXNG ports, so once you remove `--network host` the container can no longer reach them on `localhost`.
+
+**Easiest fix:** use Docker Compose instead. The bundled `docker-compose.yml` wires SearXNG and Ollama via service names (`http://searxng:8080`, `http://ollama:11434`) so nothing on the host needs `localhost`/`host.docker.internal` swapping:
+
+```bash
+curl -O https://raw.githubusercontent.com/LearningCircuit/local-deep-research/main/docker-compose.yml
+docker compose up -d
+```
+
+**If you want to stay on `docker run`:** drop `--network host`, keep `-p 5000:5000`, and point Ollama/SearXNG at `host.docker.internal` instead of `localhost`. Either set the URLs in **Settings → LLM** and **Settings → Search → SearXNG** after first login, or pass them as env vars on launch:
+
+```bash
+docker run -d -p 5000:5000 \
+ --name local-deep-research \
+ --add-host=host.docker.internal:host-gateway \
+ --volume 'deep-research:/data' \
+ -e LDR_DATA_DIR=/data \
+ -e LDR_LLM_OLLAMA_URL=http://host.docker.internal:11434 \
+ -e LDR_SEARCH_ENGINE_WEB_SEARXNG_DEFAULT_PARAMS_INSTANCE_URL=http://host.docker.internal:8080 \
+ localdeepresearch/local-deep-research
```
+Note: env vars passed on `docker run` always win over values you later change in the Settings UI (the env-var override is checked on every read), so if you plan to manage URLs from the UI, leave the `-e LDR_...` lines off.
+
### "Database is locked" errors
Stop all containers and restart:
diff --git a/docs/installation.md b/docs/installation.md
index 62c02411b5..82cf348ffe 100644
--- a/docs/installation.md
+++ b/docs/installation.md
@@ -73,7 +73,9 @@ For Cookiecutter setup, environment variables, and troubleshooting, see the [Doc
## Docker
-Run each container individually for a minimal setup:
+Run each container individually for a minimal setup.
+
+**Linux (native Docker Engine):**
```bash
# Step 1: Pull and run SearXNG for optimal search results
@@ -91,6 +93,28 @@ docker run -d -p 5000:5000 --network host \
localdeepresearch/local-deep-research
```
+**Mac / Windows / WSL2 (Docker Desktop):**
+
+`--network host` doesn't work on Docker Desktop — it silently drops the port publish, and `localhost` inside the LDR container no longer reaches the Ollama/SearXNG containers. Drop `--network host`, keep `-p 5000:5000`, and point Ollama and SearXNG at `host.docker.internal` via env vars:
+
+```bash
+# Steps 1 and 2 (SearXNG + Ollama) are the same as above.
+
+# Step 3: Pull and run Local Deep Research
+docker run -d -p 5000:5000 \
+ --name local-deep-research \
+ --add-host=host.docker.internal:host-gateway \
+ --volume 'deep-research:/data' \
+ -e LDR_DATA_DIR=/data \
+ -e LDR_LLM_OLLAMA_URL=http://host.docker.internal:11434 \
+ -e LDR_SEARCH_ENGINE_WEB_SEARXNG_DEFAULT_PARAMS_INSTANCE_URL=http://host.docker.internal:8080 \
+ localdeepresearch/local-deep-research
+```
+
+(`--add-host` is a no-op on Mac/Windows where `host.docker.internal` is already auto-injected, but makes the same recipe work on Linux Docker Desktop.)
+
+If you'd rather not pass env vars, you can launch without them and then change the URLs after first login under **Settings → LLM → Ollama URL** and **Settings → Search → SearXNG → Instance URL**. For most users on these platforms, [Docker Compose](#docker-compose-recommended) is simpler — it wires the URLs up automatically via service names.
+
Open http://localhost:5000 after ~30 seconds.
## Python Package (pip)
diff --git a/docs/troubleshooting.md b/docs/troubleshooting.md
index 914a735a49..82014fe2c4 100644
--- a/docs/troubleshooting.md
+++ b/docs/troubleshooting.md
@@ -132,13 +132,13 @@ This guide covers common issues and their solutions.
```
2. **Check URL configuration:**
- ```
- search.engine.searxng.url = http://localhost:8080
- ```
+ - Settings UI: **Settings → Search → SearXNG → Instance URL**
+ - Setting key: `search.engine.web.searxng.default_params.instance_url`
+ - Env var: `LDR_SEARCH_ENGINE_WEB_SEARXNG_DEFAULT_PARAMS_INSTANCE_URL`
3. **Ensure JSON format is enabled** in SearXNG settings
-4. **Docker networking:** Same as Ollama - use proper host references
+4. **Docker networking:** From inside the LDR container, `localhost` is the container itself, not your host. Use `http://searxng:8080` if SearXNG is a sibling service in Docker Compose, or `http://host.docker.internal:8080` if SearXNG runs on the host (Mac/Windows/WSL2 — see the [Windows/WSL2 FAQ entry](faq.md#port-5000-not-accessible-on-windows) for the full recipe).
### API Key Issues for Search Engines