CCCPaste

docker compose

services:
  open-webui:
    image: ghcr.io/open-webui/open-webui:main
    container_name: open-webui
    restart: unless-stopped
    ports:
      - "3000:8080"
    volumes:
      - open-webui:/app/backend/data
      # Change the left side to your ACTUAL Mac path
      - /Users/yourname/Documents/AI_Knowledge:/data/docs:ro
    environment:
      # General Settings
      - WEBUI_NAME=Lumi Control Center
      - WEBUI_AUTH=True
      - WEBUI_SECRET_KEY=generate_a_random_string_here  # Critical for session persistence
      
      # Connection to your native llama-server (Port 11436)
      - OPENAI_API_BASE_URL=http://host.docker.internal:11436/v1
      - OPENAI_API_KEY=none
      
      # RAG & Document Settings
      - DOCUMENTS_DIR=/data/docs
      - ENABLE_RAG=True
      - RAG_TOP_K=15
      
      # Privacy / Security
      - ENABLE_SIGNUP=False
    extra_hosts:
      - "host.docker.internal:host-gateway"
    # Optional: Limits to prevent Docker from getting too greedy with your 256GB RAM
    deploy:
      resources:
        limits:
          memory: 8G

volumes:
  open-webui: