LightRAG/docker-compose.minimal.yml
Taddeus 148a764d38
Phase 1: Pin LightRAG version to 1.3.8 as new version introduces bug (#5)
* 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 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

* Adds ingress and forward authentication middleware support

* Enables vector extension initialization in PostgreSQL container

Mounts initialization scripts in the PostgreSQL service to automate enabling the vector extension on startup.

This ensures the vector extension is available without manual setup, improving developer experience and consistency across environments.

* Pins application image version to 1.3.8
2025-06-30 18:05:32 +03:00

56 lines
No EOL
1.5 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
- ./init-db:/docker-entrypoint-initdb.d
healthcheck:
test: ["CMD-SHELL", "pg_isready -U lightrag_user -d lightrag"]
interval: 10s
timeout: 5s
retries: 5
lightrag:
image: ghcr.io/hkuds/lightrag:1.3.8
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