Hostinger Black Friday deal: VPS hosting up to 70% off
Ad

Try describing what you need:

Local Deep Research logo

Local Deep Research

★ 9.7k
MIT LicenseOpen Source — No Paywall3 Containers — 3 containers — light hosting footprintDocker · Compose · PackageNo external DB8 documented maintainers

About

Local Deep Research is an AI-powered research assistant designed for users who want to run agentic research on their own machines. It can search the web, academic sources, and a user’s own documents,...

Community Ratings

No ratings yet

Features

  • Deep research automation
  • Web, academic, and document search
  • Cited report generation
  • Searchable knowledge base
  • LangGraph agent strategy
  • Encrypted per-user databases
  • Private-only egress scope
  • Document download and indexing
  • PDF export

Details

Last Updated
Nov 27, 2026
Created
Feb 9, 2025
Install Methods
dockerdocker-composepackage-manager
Requirements
Ollama or any OpenAI-compatible LLM endpointSearXNGAVX-capable CPUNVIDIA GPU (optional for GPU setup)Pango (for PDF export on Windows)
Default Port
5000web UI
Authentication
local
API
REST
Backup & Export
file-backup
Runtime / Stack
DockerPython
Privacy & Independence
Cloud: OptionalOffline Capable
User Model
Multi-User
Deployment

Deployment: Docker Compose ✓3 Containers — light hosting footprintRuns as 3 containers

Run Local Deep Research yourself

Pick how much you want to manage.

3 more ways to host

Some links earn us a commission. netcup pays us one and is our preferred VPS host. Hostinger is a paid sponsor and is listed first.

Is this your project? Sponsor a listing

Run Local Deep Research with Docker Compose

Compose file from the Local Deep Research project repository.

3 services · 2 unclassified (ollama, searxng)

no resource limits declared

needs persistent storage (4 volumes)

docker-compose.yml · @ 2b1b589 · scanned Nov 3, 2026

# ============================================================================
# DOCKER COMPOSE BASE CONFIGURATION (CPU-only, works on all platforms)
# ============================================================================
# This base configuration works on:
#   - macOS (M1/M2/M3/M4 Apple Silicon and Intel)
#   - Windows
#   - Linux (with or without GPU)
#   - Unraid (via Docker Compose Manager plugin)
#
# To add NVIDIA GPU acceleration:
#   docker compose -f docker-compose.yml -f docker-compose.gpu.override.yml up -d
#
# See docker-compose.gpu.override.yml for GPU setup details.
# Future: docker-compose.amd.override.yml will support AMD GPUs.
#
# For Unraid users: See docs/deployment/unraid.md for complete setup guide
# ============================================================================

services:
  local-deep-research:
    image: localdeepresearch/local-deep-research:latest

    networks:
      - ldr-network

    # Enable host.docker.internal on Linux (already works on Mac/Windows)
    # This allows containers to reach services on the host machine (e.g., LM Studio)
    extra_hosts:
      - "host.docker.internal:host-gateway"

    ports:
      - "5000:5000"
    environment:
      # ============================================================================
      # Full configuration reference: docs/CONFIGURATION.md
      # ============================================================================
      # 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.
      # Env-locking the SearXNG URL also marks it operator-provisioned, which
      # satisfies the private-engine-URL protection (v1.10.3+). pip/local
      # installs using the localhost default must approve it instead, e.g.
      # LDR_SEARCH_PRIVATE_ENGINE_URL_ALLOWLIST=http://localhost:8080 —
      # see docs/SearXNG-Setup.md.
      # ============================================================================
      - LDR_LLM_OLLAMA_URL=http://ollama:11434
      - LDR_SEARCH_ENGINE_WEB_SEARXNG_DEFAULT_PARAMS_INSTANCE_URL=http://searxng:8080

      # ============================================================================
      # SECURITY: Disable user registration (recommended for public deployments)
      # When set to false, no new accounts can be created through the web UI.
      # Register your initial account FIRST, then set this to false.
      # ============================================================================
      # - LDR_APP_ALLOW_REGISTRATIONS=false

      # ============================================================================
      # 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=<your-api-key>        # Lock OpenAI API key
      # - LDR_LLM_ANTHROPIC_API_KEY=<your-api-key> # Lock Anthropic API key

      # ============================================================================
      # OPENROUTER CONFIGURATION
      # To use OpenRouter (100+ models via one API), uncomment these lines:
      # Get your API key from https://openrouter.ai/
      # Browse models at https://openrouter.ai/models
      # ============================================================================
      # - LDR_LLM_PROVIDER=openai_endpoint
      # - LDR_LLM_OPENAI_ENDPOINT_URL=https://openrouter.ai/api/v1
      # - LDR_LLM_OPENAI_ENDPOINT_API_KEY=<your-api-key>
      # - LDR_LLM_MODEL=anthropic/claude-3.5-sonnet  # or any OpenRouter model

      # ============================================================================
      # OTHER OPENAI-COMPATIBLE APIS
      # The same pattern works for any OpenAI-compatible service:
      # ============================================================================
      # - LDR_LLM_PROVIDER=openai_endpoint
      # - LDR_LLM_OPENAI_ENDPOINT_URL=https://your-provider.com/v1
      # - LDR_LLM_OPENAI_ENDPOINT_API_KEY=<your-api-key>
      # - LDR_LLM_MODEL=<your-model-name>

      # ============================================================================
      # LM STUDIO (Running on Host Machine)
      # If using LM Studio on your host, use host.docker.internal to reach it.
      # The extra_hosts setting above enables this on Linux.
      # ============================================================================
      # - LDR_LLM_PROVIDER=lmstudio
      # - LDR_LLM_LMSTUDIO_URL=http://host.docker.internal:1234
      # - LDR_LLM_LMSTUDIO_API_KEY=<api-key-if-required>   # optional; leave out for unauth instances
      # - LDR_LLM_MODEL=<your-loaded-model-name>
    volumes:
      - ldr_data:/data
      - ldr_scripts:/scripts
      # ============================================================================
      # NOTE: Do NOT add resource limits (deploy.resources.limits) here.
      # Resource needs vary by deployment (RAM, CPU, workload). Deployers should
      # use docker-compose.override.yml to set limits for their environment.
      # ============================================================================
      # NOTE: Local document collections are managed via the Collections UI,
      # not via Docker volume mounts. Do not add local_collections mounts here.
      # ============================================================================
    # Allow SQLCipher mlock() without noisy kernel warnings
    ulimits:
      memlock:
        soft: -1
        hard: -1
    # ============================================================================
    # CONTAINER SECURITY — Principle of Least Privilege
    # ============================================================================
    # The entrypoint (scripts/ldr_entrypoint.sh) runs as root to fix Docker
    # volume ownership, then drops to ldruser (UID 1000) via setpriv before
    # starting the application. The privilege timeline is:
    #
    #   1. Root phase (brief): mkdir, chmod, chown on /data and /home/ldruser
    #   2. setpriv exec: irreversible switch to ldruser (empty capability set)
    #   3. App phase: runs as ldruser with zero capabilities
    #
    # We drop ALL capabilities, then add back only what the root phase needs.
    # no-new-privileges prevents re-escalation after setpriv drops privileges.
    #
    # WARNING: Removing cap_add entries will break container startup — the
    # entrypoint will fail with "Operation not permitted" on chown/chmod.
    # This is especially visible in restricted environments (Proxmox LXC).
    #
    # KEEP IN SYNC: README.md's Security section advertises this hardening
    # (cap_drop: ALL, no-new-privileges, non-root runtime, digest-pinned
    # images). If you change any of those here, update that section to match.
    # ============================================================================
    security_opt:
      - "no-new-privileges:true"
    cap_drop:
      - ALL
    cap_add:
      - CHOWN        # chown -R ldruser:ldruser /data
      - FOWNER       # chmod on files not owned by root (after chown to ldruser)
      - DAC_OVERRIDE # mkdir in /home/ldruser (.config dir, mode 755 = no write for others)
      - SETUID       # setpriv setuid() syscall to switch to ldruser
      - SETGID       # setpriv setgid() syscall to switch group
    restart: unless-stopped
    depends_on:
      ollama:
        condition: service_healthy

      searxng:
        condition: service_started


  ollama:
    image: ollama/ollama:latest@sha256:8850b8b33936b9fb246e7b3e02849941f1151ea847e5fb15511f17de9589aea1
    # Note: GPU acceleration disabled by default (CPU-only base)
    # For NVIDIA GPU support, use docker-compose.gpu.override.yml
    # For AMD GPU support (future), use docker-compose.amd.override.yml

    container_name: ollama_service
    # No custom entrypoint — uses the upstream image default (`ollama serve`).
    # Considered-and-rejected: pre-pulling ${MODEL:-gemma3:12b} via
    # scripts/ollama_entrypoint.sh on container start. That had three
    # problems: (a) wasted ~5-10 min and ~7-8 GB on every fresh boot,
    # (b) penalised users running LM Studio / OpenAI / llama.cpp who don't
    # use ollama at all, and (c) coupled the compose to an opinionated
    # default model. Users who choose ollama pull their model explicitly
    # (`docker exec ollama_service ollama pull <model>`) or let LDR pull on
    # first use. Healthcheck below probes the daemon (model-agnostic, #3885).
    healthcheck:
      test: [ "CMD", "ollama", "list" ]
      interval: 10s
      timeout: 5s
      start_period: 30s
      retries: 5
    environment:
      OLLAMA_KEEP_ALIVE: '30m'
    volumes:
      - ollama_data:/root/.ollama
    networks:
      - ldr-network
    security_opt:
      - "no-new-privileges:true"
    cap_drop:
      - ALL
    # WARNING: Do NOT add ports: - "11434:11434" — Ollama has no authentication.
    # Access is intentionally restricted to the ldr-network internal network.
    restart: unless-stopped

  searxng:
    image: searxng/searxng:latest@sha256:6dd0dffc05a75d92bbacd858953b4e93b8f709403c3fb1fb8a33ca8fd02e40a4
    container_name: searxng
    networks:
      - ldr-network
    security_opt:
      - "no-new-privileges:true"
    # Note: no cap_drop here — upstream removed cap_drop: ALL from their
    # official compose in searxng/searxng-docker@31acd45 ("[fix] remove
    # security cap", 2025-05-20), and the new container template at
    # searxng/searxng/container/docker-compose.yml ships with no cap_drop /
    # cap_add at all. The searxng entrypoint runs as root, copies config
    # into the volume, and drops to the searxng user — chasing the exact
    # cap_add list across uWSGI→Granian and future entrypoint changes is
    # not worth the maintenance cost. no-new-privileges and the pinned
    # digest are the meaningful guardrails. See #3874.
    healthcheck:
      test: ["CMD", "wget", "-qO-", "http://localhost:8080/healthz"]
      interval: 30s
      timeout: 10s
      start_period: 30s
      retries: 3
    volumes:
      - searxng_data:/etc/searxng
    restart: unless-stopped


volumes:
  ldr_data:
  ldr_scripts:
  ollama_data:
  searxng_data:
networks:
  ldr-network:

This file may be out of date. Check the Local Deep Research documentation for current setup steps.

Track your self-hosted stack

Bookmark software to try, rate tools you've used, and keep your collection in one place.

Metadata extracted from README on Nov 5, 2026

Alternatives to Local Deep Research

Vane logo

Vane

38.3k
Vane is a privacy-focused AI answering engine that runs on your own hardware and combines web search with local or cloud LLMs to deliver cited answers.
Artificial IntelligencePermissive LicenseGenerative AI+6
Details
Perplexica logo

Perplexica

38.3k
Vane is a privacy-focused AI answering engine that runs on your own hardware and returns cited answers from web search and local or cloud LLMs.
Artificial IntelligencePermissive LicenseSelf Hosting Solutions+4
Details
odysseus logo

odysseus

96.0k
Odysseus is a self-hosted AI workspace for chat, agents, research, documents, email, notes, calendar, and local model workflows.
Artificial IntelligenceAI AgentsAI Interfaces+3
4 Containers
Details
Open Notebook logo

Open Notebook

42.3k
Open Notebook is a private, self-hosted, multi-model alternative to Google NotebookLM for organizing content, chatting with it, and generating podcasts.
Note Taking AppsKnowledge ManagementArtificial Intelligence+5
Details

Related Software

Sosse logo

Sosse

2
Selenium based search engine and crawler with offline archiving.
Search EnginesDigital ArchivingCopyleft License+3
Details
NanoClaw logo

NanoClaw

31.2k
An AI assistant that runs agents in isolated containers and can be customized through Claude Code skills.
Claws & ClankersAI AgentsAI Coding Assistant+2
Details
LLMKube logo

LLMKube

271
Kubernetes operator for LLM inference with pluggable runtimes (llama.cpp, vLLM, TGI, Ollama, vllm-swift), multi-GPU sharding, NVIDIA CUDA + Apple Silicon Metal support, and OpenAI-compatible API.
Artificial IntelligenceLocal LLMsInference Serving+2
Details
OpenPlanter logo

OpenPlanter

2.9k
OpenPlanter is a recursive investigation agent with a desktop GUI and terminal interface for analyzing heterogeneous datasets and surfacing evidence-backed connections.
AI AgentsKnowledge ManagementAI Tooling+1
Single Container
Details
rowboat logo

rowboat

18.3k
Rowboat is an open-source personal AI assistant that organizes work into a knowledge graph and provides tools for email, notes, meetings, coding, and team collaboration.
AI AgentsKnowledge ManagementAI Coding Assistant+2
Fully FOSS
Details
Digisteps logo

Digisteps

1
Simple application for creating online educational paths (documentation in French).
Miscellaneous ToolsCopyleft LicenseLearning Management+3
Details
Nirvati logo

Nirvati

Easily 1-click spin up popular apps from a convenient web interface.
Self Hosting SolutionsCopyleft LicensePlatform as a Service+1
Details
private-gpt logo

private-gpt

57.7k
PrivateGPT is an open-source API layer that turns local models into production AI applications.
Artificial IntelligenceAI RAG SystemsPermissive License+2
Details
HomelabOS logo

HomelabOS

1.3k
Offline privacy-centric data-center. Deploy over 100 services with a few commands.
Self Hosting SolutionsPermissive LicenseAutomation Tools
Details
Digibunch logo

Digibunch

3
Create bunches of links to share with your learners or colleagues.
Bookmark ManagementLearning ManagementCopyleft License+2
Details