Feat/vector db pgvector (#3879)

This commit is contained in:
LiuVaayne 2024-05-10 17:20:30 +08:00 committed by GitHub
commit 875249eb00
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 316 additions and 9 deletions

View file

@ -0,0 +1,24 @@
version: '3'
services:
# Qdrant vector store.
pgvector:
image: pgvector/pgvector:pg16
restart: always
environment:
PGUSER: postgres
# The password for the default postgres user.
POSTGRES_PASSWORD: difyai123456
# The name of the default postgres database.
POSTGRES_DB: dify
# postgres data directory
PGDATA: /var/lib/postgresql/data/pgdata
volumes:
- ./volumes/pgvector/data:/var/lib/postgresql/data
# uncomment to expose db(postgresql) port to host
ports:
- "5433:5432"
healthcheck:
test: [ "CMD", "pg_isready" ]
interval: 1s
timeout: 3s
retries: 30