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.

Adds plain docker-compose to readme. (#517)

Micah Zoltu486b24646c79
diff --git a/README.md b/README.md
index c8a26094e7..b690b227c4 100644
--- a/README.md
+++ b/README.md
@@ -50,7 +50,18 @@ docker run -d -p 5000:5000 --name local-deep-research --volume 'deep-research:/i
LDR uses Docker compose to bundle the web app and all it's dependencies so
you can get up and running quickly.
-### Prerequisites
+#### Option 2a: DIY docker-compose
+See [docker-compose.yml](./docker-compose.yml) for a docker-compose file with reasonable defaults to get up and running with ollama, searxng, and local deep research all running locally.
+
+Things you may want/need to configure:
+* Ollama GPU driver
+* Ollama context length (depends on available VRAM)
+* Ollama keep alive (duration model will stay loaded into VRAM and idle before getting unloaded automatically)
+* Deep Research model (depends on available VRAM and preference)
+
+#### Option 2b: Use Cookie Cutter to tailor a docker-compose to your needs:
+
+##### Prerequisites
- [Docker](https://docs.docker.com/engine/install/)
- [Docker Compose](https://docs.docker.com/compose/install/)
@@ -63,7 +74,7 @@ git clone https://github.com/LearningCircuit/local-deep-research.git
cd local-deep-research
```
-### Configuring with Docker Compose
+##### Configuring with Docker Compose
In the LDR repository, run the following command
to do generate the compose file:
diff --git a/docker-compose.yml b/docker-compose.yml
new file mode 100644
index 0000000000..01035cd1b3
--- /dev/null
+++ b/docker-compose.yml
@@ -0,0 +1,43 @@
+name: 'local-ai'
+
+services:
+
+ ollama:
+ image: 'ollama/ollama:latest'
+ deploy:
+ resources:
+ reservations:
+ devices:
+ - driver: nvidia
+ count: 1
+ capabilities: [gpu]
+ environment:
+ OLLAMA_KEEP_ALIVE: '30m'
+ volumes:
+ - type: 'volume'
+ source: 'ollama'
+ target: '/root/.ollama'
+
+ searxng:
+ image: 'ghcr.io/searxng/searxng:latest'
+
+ deep-research:
+ image: 'localdeepresearch/local-deep-research:latest'
+ ports:
+ - target: '5000' # port bound by app inside container
+ published: '5000' # port bound on the docker host
+ protocol: 'tcp'
+ environment:
+ LDR_LLM_PROVIDER: 'ollama'
+ LDR_LLM_OLLAMA_URL: 'http://ollama:11434'
+ # change model depending on preference and available VRAM
+ LDR_LLM_MODEL: 'gemma3:12b'
+ LDR_SEARCH_ENGINE_WEB_SEARXNG_DEFAULT_PARAMS_INSTANCE_URL: 'http://searxng:8080'
+ volumes:
+ - type: 'volume'
+ source: 'deep-research'
+ target: '/install/.venv/lib/python3.13/site-packages/data/'
+
+volumes:
+ ollama:
+ deep-research: