# AnythingLLM + Ollama + Qdrant: stack recipe from https://archestack.com/stacks/anything-llm-ollama-qdrant/
# Started and checked 2026-11-19 on ubuntu-lan (x86-64, CPU only, Docker 29.9.2, Compose v5.6.1). Images are pinned: bump them on purpose.
services:
  ollama:
    image: ollama/ollama:0.40.16
    restart: unless-stopped
    volumes:
      - ollama:/root/.ollama
    healthcheck:
      test: ["CMD", "ollama", "list"]
      interval: 10s
      retries: 12
  qdrant:
    image: qdrant/qdrant:v1.20.2
    restart: unless-stopped
    volumes:
      - qdrant:/qdrant/storage
  anythingllm:
    image: mintplexlabs/anythingllm:1.20.0
    restart: unless-stopped
    cap_add:
      - SYS_ADMIN
    depends_on:
      ollama:
        condition: service_healthy
      qdrant:
        condition: service_started
    ports:
      - "127.0.0.1:3001:3001"
    environment:
      STORAGE_DIR: /app/server/storage
      JWT_SECRET: ${JWT_SECRET:?run the .env line first}
      LLM_PROVIDER: ollama
      OLLAMA_BASE_PATH: http://ollama:11434
      VECTOR_DB: qdrant
      QDRANT_ENDPOINT: http://qdrant:6333
      DISABLE_TELEMETRY: "true"
    volumes:
      - anythingllm:/app/server/storage
volumes:
  ollama:
  qdrant:
  anythingllm:
