Skip to content

Commit

Permalink
初始化
Browse files Browse the repository at this point in the history
  • Loading branch information
qixing-ai committed Sep 6, 2024
1 parent e39232f commit 34d91ef
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
6 changes: 3 additions & 3 deletions backend/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -32,7 +32,7 @@ spring:
enabled: true # 启用Spring DevTools自动重启功能

server:
port: 8081 # 服务器端口号
port: 8080 # 服务器端口号
error:
include-message: always # 错误信息包含在响应中
include-binding-errors: always # 绑定错误信息包含在响应中
Expand Down Expand Up @@ -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类型处理器包路径
11 changes: 11 additions & 0 deletions base/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 34d91ef

Please sign in to comment.