* 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
55 lines
No EOL
1.4 KiB
YAML
55 lines
No EOL
1.4 KiB
YAML
version: '3.8'
|
|
|
|
services:
|
|
postgres:
|
|
image: pgvector/pgvector:pg16
|
|
container_name: lightrag-postgres-minimal
|
|
environment:
|
|
POSTGRES_DB: lightrag
|
|
POSTGRES_USER: lightrag_user
|
|
POSTGRES_PASSWORD: lightrag_pass
|
|
ports:
|
|
- "5432:5432"
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql/data
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U lightrag_user -d lightrag"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
|
|
lightrag:
|
|
image: ghcr.io/hkuds/lightrag:latest
|
|
container_name: lightrag-minimal
|
|
env_file:
|
|
- .env
|
|
environment:
|
|
# Pass API key from host
|
|
OPENAI_API_KEY: ${OPENAI_API_KEY}
|
|
LLM_BINDING_API_KEY: ${OPENAI_API_KEY}
|
|
EMBEDDING_BINDING_API_KEY: ${OPENAI_API_KEY}
|
|
# Use mixed storage - PostgreSQL for vectors and KV, NetworkX for graph
|
|
LIGHTRAG_KV_STORAGE: PGKVStorage
|
|
LIGHTRAG_VECTOR_STORAGE: PGVectorStorage
|
|
LIGHTRAG_DOC_STATUS_STORAGE: PGDocStatusStorage
|
|
LIGHTRAG_GRAPH_STORAGE: NetworkXStorage
|
|
POSTGRES_HOST: postgres
|
|
POSTGRES_PORT: 5432
|
|
POSTGRES_USER: lightrag_user
|
|
POSTGRES_PASSWORD: lightrag_pass
|
|
POSTGRES_DATABASE: lightrag
|
|
ports:
|
|
- "9621:9621"
|
|
depends_on:
|
|
postgres:
|
|
condition: service_healthy
|
|
volumes:
|
|
- ./data/inputs:/app/inputs
|
|
- ./data/rag_storage:/app/rag_storage
|
|
|
|
volumes:
|
|
postgres_data:
|
|
|
|
networks:
|
|
default:
|
|
name: lightrag-minimal-network |