切换到新数据库设置,使用更强大的pgvector!

This commit is contained in:
张建平 2025-03-04 11:23:25 +08:00
parent 833b1fc60f
commit 2d2668fd46
3 changed files with 25 additions and 1 deletions

1
.gitignore vendored
View File

@ -15,3 +15,4 @@ db.sqlite3
#pr_agent/
static/admin/
config.local.ini
pg

View File

@ -9,5 +9,5 @@ DEFAULT = pg
DB_NAME = pr_manager
DB_USER = admin
DB_PASSWORD = admin123456
DB_HOST = 110.40.30.95
DB_HOST = prpg
DB_PORT = 5432

View File

@ -1,7 +1,27 @@
services:
# 数据库
prpg:
image: pgvector/pgvector:pg17
container_name: prpg
restart: always
environment:
- POSTGRES_DB=pr_manager
- POSTGRES_USER=admin
- POSTGRES_PASSWORD=admin123456
ports:
- "10007:5432"
volumes:
- ./db:/var/lib/postgresql/data
logging:
driver: "json-file"
options:
max-size: "50M"
max-file: "1"
# nginx
nginx:
image: nginx:latest
container_name: prnginx
restart: always
depends_on:
- backend
ports:
@ -18,6 +38,9 @@ services:
backend:
image: pr_manager:latest
container_name: backend
restart: always
depends_on:
- prpg
command: sh start.sh
ports:
- "18000:18000"