community[patch]: Add pgvector to docker compose and update settings used in integration test (#18815)

This commit is contained in:
Eugene Yurtsev
2024-03-08 14:39:28 -05:00
committed by GitHub
parent ad29806255
commit 1f50274df7
2 changed files with 33 additions and 4 deletions

View File

@@ -52,6 +52,28 @@ services:
retries: 60
volumes:
- postgres_data:/var/lib/postgresql/data
pgvector:
# postgres with the pgvector extension
image: ankane/pgvector
environment:
POSTGRES_DB: langchain
POSTGRES_USER: langchain
POSTGRES_PASSWORD: langchain
ports:
- "6024:5432"
command: |
postgres -c log_statement=all
healthcheck:
test:
[
"CMD-SHELL",
"psql postgresql://langchain:langchain@localhost/langchain --command 'SELECT 1;' || exit 1",
]
interval: 5s
retries: 60
volumes:
- postgres_data_pgvector:/var/lib/postgresql/data
volumes:
postgres_data:
postgres_data_pgvector: