diff --git a/backend/src/main/resources/application.yml b/backend/src/main/resources/application.yml index 3b1be9a..bb404e1 100644 --- a/backend/src/main/resources/application.yml +++ b/backend/src/main/resources/application.yml @@ -4,7 +4,7 @@ spring: name: RapidDataChat-backend datasource: - url: jdbc:postgresql://192.168.3.14:5432/RapidDataChat_db + url: jdbc:postgresql://pgvector:5432/RapidDataChat_db username: root password: root driver-class-name: org.postgresql.Driver @@ -32,7 +32,7 @@ spring: enabled: true # 启用Spring DevTools自动重启功能 server: - port: 8081 # 服务器端口号 + port: 8080 # 服务器端口号 error: include-message: always # 错误信息包含在响应中 include-binding-errors: always # 绑定错误信息包含在响应中 @@ -61,7 +61,7 @@ springdoc: # 自定义配置 embedding: api: - url: http://192.168.3.14:9997/v1/embeddings # 嵌入API的URL + url: http://xinference:9997/v1/embeddings # 嵌入API的URL mybatis-plus: type-handlers-package: com.RapidDataChat.backend.typehandler # MyBatis Plus类型处理器包路径 diff --git a/base/docker-compose.yml b/base/docker-compose.yml index d0b897a..3fbf354 100644 --- a/base/docker-compose.yml +++ b/base/docker-compose.yml @@ -31,3 +31,14 @@ services: POSTGRES_PASSWORD: root volumes: - ./data/pgdata:/var/lib/postgresql/data + + rapiddatachat: + image: a18863076056050/rapiddatachat + restart: always + container_name: rapiddatachat + ports: + - "8080:8080" + environment: + TZ: Asia/Shanghai # 设置时区 + volumes: + - ./data/pgdata:/var/lib/postgresql/data