fix: missing pgvector in CLI

Fixes https://github.com/langchain-ai/langgraph/issues/3164
This commit is contained in:
Tat Dat Duong
2025-01-23 15:27:39 +01:00
parent 4165d479e9
commit 6ce9354ee4
2 changed files with 7 additions and 2 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",
+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: