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.

Add CPU-only Docker Compose for Mac and non-GPU users

LearningCircuit6b41f31ce3fe
diff --git a/README.md b/README.md
index 039c5506ae..6f500fd029 100644
--- a/README.md
+++ b/README.md
@@ -142,9 +142,13 @@ you can get up and running quickly.
#### Option 2a: Quick Start (One Command)
-**Prerequisites for GPU Support (Optional):**
+Choose the appropriate setup based on your system:
-If you have an NVIDIA GPU and want to use it with Ollama, you need to install the NVIDIA Container Toolkit first:
+##### **Option 2a-GPU: With NVIDIA GPU Acceleration (Linux only)**
+
+**Prerequisites:**
+
+Install the NVIDIA Container Toolkit first:
```bash
# Install NVIDIA Container Toolkit (for GPU support)
@@ -158,28 +162,47 @@ sudo apt-get install nvidia-container-toolkit -y
sudo systemctl restart docker
```
-**Note:** If you don't have an NVIDIA GPU or don't want GPU acceleration, you must remove the `deploy` section (lines 79-85) from the `ollama` service in `docker-compose.yml` before running docker compose.
+**Quick Start Command:**
+
+```bash
+curl -O https://raw.githubusercontent.com/LearningCircuit/local-deep-research/main/docker-compose.yml && docker compose up -d
+```
+
+**Use with a different model:**
+
+```bash
+MODEL=gemma:1b curl -O https://raw.githubusercontent.com/LearningCircuit/local-deep-research/main/docker-compose.yml && docker compose up -d
+```
+
+##### **Option 2a-CPU: CPU-Only (macOS, Windows, or Linux without GPU)**
+
+**Recommended for:**
+- macOS (M1/M2/M3/M4 or Intel)
+- Windows without NVIDIA GPU
+- Linux without NVIDIA GPU or nvidia-container-toolkit
**Quick Start Commands:**
-Linux:
+Linux/macOS:
```bash
-curl -O https://raw.githubusercontent.com/LearningCircuit/local-deep-research/main/docker-compose.yml && docker compose up -d
+curl -O https://raw.githubusercontent.com/LearningCircuit/local-deep-research/main/docker-compose-cpu.yml && docker compose -f docker-compose-cpu.yml up -d
```
Windows:
```bash
-curl.exe -O https://raw.githubusercontent.com/LearningCircuit/local-deep-research/main/docker-compose.yml; docker compose up -d
+curl.exe -O https://raw.githubusercontent.com/LearningCircuit/local-deep-research/main/docker-compose-cpu.yml; docker compose -f docker-compose-cpu.yml up -d
```
-Use with a different model:
+**Use with a different model:**
```bash
-MODEL=gemma:1b curl -O https://raw.githubusercontent.com/LearningCircuit/local-deep-research/main/docker-compose.yml && docker compose up -d
+MODEL=gemma:1b curl -O https://raw.githubusercontent.com/LearningCircuit/local-deep-research/main/docker-compose-cpu.yml && docker compose -f docker-compose-cpu.yml up -d
```
+---
+
Open http://localhost:5000 after ~30 seconds. This starts LDR with SearXNG and all dependencies.
#### Option 2b: DIY docker-compose
diff --git a/docker-compose-cpu.yml b/docker-compose-cpu.yml
new file mode 100644
index 0000000000..f1057ed4d9
--- /dev/null
+++ b/docker-compose-cpu.yml
@@ -0,0 +1,129 @@
+# ============================================================================
+# CPU-ONLY DOCKER COMPOSE (For Mac users and systems without NVIDIA GPU)
+# ============================================================================
+# This is identical to docker-compose.yml but with GPU acceleration removed.
+# Use this if you:
+# - Are on macOS (M1/M2/M3/M4 or Intel)
+# - Don't have an NVIDIA GPU
+# - Don't want to install nvidia-container-toolkit
+#
+# For GPU-accelerated setup, use docker-compose.yml instead.
+# ============================================================================
+
+services:
+ local-deep-research:
+ image: localdeepresearch/local-deep-research
+
+ networks:
+ - ldr-network
+
+ ports:
+ - "5000:5000"
+ environment:
+ # ============================================================================
+ # IMPORTANT: Almost all settings can be configured through the web interface.
+ #
+ # Environment variables FORCE settings and prevent ANY changes through the UI.
+ # These are NOT defaults - they are permanent overrides that lock the setting.
+ # Only use environment variables if you want to enforce specific settings
+ # that users should NEVER be able to change.
+ #
+ # After starting the container, configure your settings at:
+ # http://localhost:5000/settings
+ # ============================================================================
+
+ # ============================================================================
+ # DOCKER-SPECIFIC SETTINGS (Forced for good reasons!)
+ # These settings are forced to ensure proper Docker operation:
+ # - Prevents accidental misconfiguration that would break the container
+ # - Ensures consistency between Docker configuration and application settings
+ # - Users can still change ports via Docker's port mapping (see below)
+ # ============================================================================
+ - LDR_WEB_HOST=0.0.0.0 # Must bind to all interfaces for Docker networking
+ - LDR_WEB_PORT=5000 # Internal port must match Docker's expectation
+ - LDR_DATA_DIR=/data # Must match the volume mount point
+
+ # ============================================================================
+ # TO CHANGE PORTS: Use Docker port mapping, NOT the settings above!
+ # Example - to expose on port 8080 instead of 5000:
+ # ports:
+ # - "8080:5000" # Maps host port 8080 to container port 5000
+ #
+ # This is the Docker way and avoids configuration mismatches.
+ # ============================================================================
+
+ # ============================================================================
+ # DOCKER-COMPOSE SERVICE ENDPOINTS (Forced for proper container networking)
+ # These are required for containers to communicate with each other.
+ # Docker containers cannot use 'localhost' to reach other containers.
+ # These settings override UI configuration for Docker Compose deployments.
+ # Note: pip/local installs use localhost defaults and are unaffected.
+ # ============================================================================
+ - LDR_LLM_OLLAMA_URL=http://ollama:11434
+ - LDR_SEARCH_ENGINE_WEB_SEARXNG_DEFAULT_PARAMS_INSTANCE_URL=http://searxng:8080
+
+ # ============================================================================
+ # ADVANCED: Uncomment ONLY if you need to enforce/lock these settings
+ # WARNING: This will disable UI configuration for these settings!
+ # ============================================================================
+ # - LDR_LLM_PROVIDER=ollama # Lock the LLM provider
+ # - LDR_LLM_MODEL=gemma3:12b # Lock the model selection
+ # - LDR_LLM_OPENAI_API_KEY=sk-... # Lock OpenAI API key
+ # - LDR_LLM_ANTHROPIC_API_KEY=sk-ant-... # Lock Anthropic API key
+ volumes:
+ - ldr_data:/data
+ - ldr_scripts:/scripts
+ - ./local_collections/personal_notes:/local_collections/personal_notes/
+ - ./local_collections/project_docs:/local_collections/project_docs/
+ - ./local_collections/research_papers:/local_collections/research_papers/
+ restart: unless-stopped
+ depends_on:
+ ollama:
+ condition: service_healthy
+
+ searxng:
+ condition: service_started
+
+
+ ollama:
+ image: ollama/ollama:0.12.6
+ # Note: GPU acceleration disabled in this CPU-only variant
+ # For GPU support, use docker-compose.yml instead
+
+ container_name: ollama_service
+ entrypoint: "/scripts/ollama_entrypoint.sh ${MODEL:-gemma3:12b}"
+ healthcheck:
+ test: [ "CMD", "ollama", "show", "${MODEL:-gemma3:12b}" ]
+ interval: 10s
+ timeout: 5s
+ start_period: 10m
+ retries: 2
+ environment:
+ OLLAMA_KEEP_ALIVE: '30m'
+ volumes:
+ - ollama_data:/root/.ollama
+ - ldr_scripts:/scripts
+ networks:
+ - ldr-network
+
+
+ restart: unless-stopped
+
+ searxng:
+ image: searxng/searxng:2025.10.23-e363db970
+ container_name: searxng
+ networks:
+ - ldr-network
+
+ volumes:
+ - searxng_data:/etc/searxng
+ restart: unless-stopped
+
+
+volumes:
+ ldr_data:
+ ldr_scripts:
+ ollama_data:
+ searxng_data:
+networks:
+ ldr-network:
diff --git a/docker-compose.yml b/docker-compose.yml
index 39591a02ce..9bf5b943cd 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -1,3 +1,10 @@
+# ============================================================================
+# GPU-ACCELERATED DOCKER COMPOSE (Requires NVIDIA GPU + nvidia-container-toolkit)
+# ============================================================================
+# For macOS or systems without NVIDIA GPU, use docker-compose-cpu.yml instead:
+# docker compose -f docker-compose-cpu.yml up -d
+# ============================================================================
+
services:
local-deep-research:
image: localdeepresearch/local-deep-research