From 148a764d38bf8a239ccb63e52872cb96793b5ecf Mon Sep 17 00:00:00 2001 From: Taddeus <8607097+taddeusb90@users.noreply.github.com> Date: Mon, 30 Jun 2025 18:05:32 +0300 Subject: [PATCH] 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 --- docker-compose.minimal.yml | 3 ++- docker-compose.yml | 4 ++-- init-db/01-init.sql | 2 ++ k8s-deploy/lightrag-minimal/values.yaml | 2 +- k8s-deploy/lightrag/values.yaml | 2 +- 5 files changed, 8 insertions(+), 5 deletions(-) create mode 100644 init-db/01-init.sql diff --git a/docker-compose.minimal.yml b/docker-compose.minimal.yml index c040ef89..b02a3097 100644 --- a/docker-compose.minimal.yml +++ b/docker-compose.minimal.yml @@ -12,6 +12,7 @@ services: - "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 @@ -19,7 +20,7 @@ services: retries: 5 lightrag: - image: ghcr.io/hkuds/lightrag:latest + image: ghcr.io/hkuds/lightrag:1.3.8 container_name: lightrag-minimal env_file: - .env diff --git a/docker-compose.yml b/docker-compose.yml index da71faf8..1d724949 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,12 +1,12 @@ services: lightrag: container_name: lightrag - image: ghcr.io/hkuds/lightrag:latest + image: ghcr.io/hkuds/lightrag:1.3.8 build: context: . dockerfile: Dockerfile tags: - - ghcr.io/hkuds/lightrag:latest + - ghcr.io/hkuds/lightrag:1.3.8 ports: - "${PORT:-9621}:9621" volumes: diff --git a/init-db/01-init.sql b/init-db/01-init.sql new file mode 100644 index 00000000..00ed2d08 --- /dev/null +++ b/init-db/01-init.sql @@ -0,0 +1,2 @@ +-- Enable the vector extension for pgvector +CREATE EXTENSION IF NOT EXISTS vector; \ No newline at end of file diff --git a/k8s-deploy/lightrag-minimal/values.yaml b/k8s-deploy/lightrag-minimal/values.yaml index 2bc66662..43aa8f87 100644 --- a/k8s-deploy/lightrag-minimal/values.yaml +++ b/k8s-deploy/lightrag-minimal/values.yaml @@ -5,7 +5,7 @@ replicaCount: 1 image: repository: ghcr.io/hkuds/lightrag - tag: latest + tag: 1.3.8 pullPolicy: IfNotPresent nameOverride: "" diff --git a/k8s-deploy/lightrag/values.yaml b/k8s-deploy/lightrag/values.yaml index 6cf013e2..0c5a819c 100644 --- a/k8s-deploy/lightrag/values.yaml +++ b/k8s-deploy/lightrag/values.yaml @@ -2,7 +2,7 @@ replicaCount: 1 image: repository: ghcr.io/hkuds/lightrag - tag: latest + tag: 1.3.8 pullPolicy: IfNotPresent nameOverride: ""