add pg vector and embed

This commit is contained in:
2025-08-22 19:34:54 +07:00
parent 21567a0a7c
commit b77beb2d85
27 changed files with 5273 additions and 216 deletions

25
docker-compose.yml Normal file
View File

@@ -0,0 +1,25 @@
services:
# PostgreSQL Database with pgvector extension
postgres:
image: pgvector/pgvector:pg15
container_name: claim-guard-postgres
restart: unless-stopped
environment:
POSTGRES_DB: claim_guard
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres123
ports:
- '5432:5432'
volumes:
- postgres_data:/var/lib/postgresql/data
- ./docker/postgres/init:/docker-entrypoint-initdb.d
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U postgres -d claim_guard']
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
volumes:
postgres_data:
driver: local