fix: missing pgvector in CLI (#3165)

Fixes https://github.com/langchain-ai/langgraph/issues/3164
This commit is contained in:
David Duong
2025-01-25 04:27:42 +01:00
committed by GitHub
4 changed files with 13 additions and 4 deletions
+2 -1
View File
@@ -170,13 +170,14 @@ def compose_as_dict(
# Add Postgres service before langgraph-api if it is needed
if include_db:
services["langgraph-postgres"] = {
"image": "postgres:16",
"image": "pgvector/pgvector:pg16",
"ports": ['"5433:5432"'],
"environment": {
"POSTGRES_DB": "postgres",
"POSTGRES_USER": "postgres",
"POSTGRES_PASSWORD": "postgres",
},
"command": ["postgres", "-c", "shared_preload_libraries=vector"],
"volumes": ["langgraph-data:/var/lib/postgresql/data"],
"healthcheck": {
"test": "pg_isready -U postgres",
+1 -1
View File
@@ -1,6 +1,6 @@
[tool.poetry]
name = "langgraph-cli"
version = "0.1.68"
version = "0.1.69"
description = "CLI for interacting with LangGraph API"
authors = []
license = "MIT"
+5 -1
View File
@@ -79,13 +79,17 @@ services:
timeout: 1s
retries: 5
langgraph-postgres:
image: postgres:16
image: pgvector/pgvector:pg16
ports:
- "5433:5432"
environment:
POSTGRES_DB: postgres
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
command:
- postgres
- -c
- shared_preload_libraries=vector
volumes:
- langgraph-data:/var/lib/postgresql/data
healthcheck:
+5 -1
View File
@@ -115,13 +115,17 @@ services:
timeout: 1s
retries: 5
langgraph-postgres:
image: postgres:16
image: pgvector/pgvector:pg16
ports:
- "5433:5432"
environment:
POSTGRES_DB: postgres
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
command:
- postgres
- -c
- shared_preload_libraries=vector
volumes:
- langgraph-data:/var/lib/postgresql/data
healthcheck: