* Partial implementation of phase-0 * Partial implementation of phase-1 * add report * add postgress * Revert "add postgress" This reverts commit 27778dc6bb3906b5220dd386e47fe32ca7415332. * remove junk * Cleaned up annd setup docs * update docs * moved report * Updated load_markdown_files function: Now returns tuples with (content, title, relative_path) instead of just (content, title) * fixes to load docs script and more env variables for llm configuration * update prod values * update docs * apolo docs support with linking * update docs to reflect url conventions and mapping with docs * Adds ingress and forwardAuth configurations Adds ingress configuration to expose the application. Adds forwardAuth configuration to enable user authentication. Includes middleware to strip headers. * Adds ingress and forward authentication middleware support
81 lines
No EOL
2 KiB
YAML
81 lines
No EOL
2 KiB
YAML
version: '3.8'
|
|
|
|
# Development & Testing Stack
|
|
# All file-based storage (NetworkX + NanoVector + JSON)
|
|
# Best for: Local development, testing, small deployments
|
|
|
|
services:
|
|
# LightRAG Application (File-based storage only)
|
|
lightrag:
|
|
image: ghcr.io/hkuds/lightrag:latest
|
|
container_name: lightrag-dev
|
|
env_file:
|
|
- .env
|
|
environment:
|
|
# Development Storage Configuration (All file-based)
|
|
LIGHTRAG_GRAPH_STORAGE: NetworkXStorage
|
|
LIGHTRAG_VECTOR_STORAGE: NanoVectorDBStorage
|
|
LIGHTRAG_KV_STORAGE: JsonKVStorage
|
|
LIGHTRAG_DOC_STATUS_STORAGE: JsonDocStatusStorage
|
|
|
|
# Development settings
|
|
MAX_ASYNC: 2
|
|
MAX_TOKENS: 16384
|
|
ENABLE_LLM_CACHE: true
|
|
ENABLE_LLM_CACHE_FOR_EXTRACT: false
|
|
LOG_LEVEL: DEBUG
|
|
|
|
# No external database connections needed
|
|
ports:
|
|
- "9621:9621"
|
|
volumes:
|
|
- ./data/inputs:/app/inputs
|
|
- ./data/rag_storage:/app/rag_storage
|
|
# Mount additional volumes for file-based storage persistence
|
|
- ./data/dev-storage:/app/dev-storage
|
|
networks:
|
|
- lightrag-dev-network
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:9621/health"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
|
|
# Optional: Lightweight file browser for development
|
|
filebrowser:
|
|
image: filebrowser/filebrowser:latest
|
|
container_name: lightrag-dev-filebrowser
|
|
environment:
|
|
- FB_BASEURL=/files
|
|
ports:
|
|
- "8080:80"
|
|
volumes:
|
|
- ./data:/srv/data
|
|
networks:
|
|
- lightrag-dev-network
|
|
restart: unless-stopped
|
|
profiles:
|
|
- tools
|
|
|
|
# Optional: Lightweight monitoring for development
|
|
portainer:
|
|
image: portainer/portainer-ce:latest
|
|
container_name: lightrag-dev-portainer
|
|
ports:
|
|
- "9000:9000"
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
- portainer_data:/data
|
|
networks:
|
|
- lightrag-dev-network
|
|
restart: unless-stopped
|
|
profiles:
|
|
- tools
|
|
|
|
volumes:
|
|
portainer_data:
|
|
|
|
networks:
|
|
lightrag-dev-network:
|
|
driver: bridge |