Skip to content

Commit

Permalink
Merge pull request #47 from chatchat-space/feature/docker
Browse files Browse the repository at this point in the history
Feature/docker
  • Loading branch information
yuehua-s authored Nov 12, 2024
2 parents 9ba7ee4 + 3315a0b commit 4016b3a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ ENV PATH="/root/.local/bin:${PATH}"

# 添加 SSH 密钥(项目未公开前临时使用)
# 假设您已经将 SSH 密钥添加到 Docker build 的上下文中
COPY ../../.ssh/id_rsa /root/.ssh/id_rsa
COPY id_rsa /root/.ssh/id_rsa
RUN chmod 600 /root/.ssh/id_rsa
# 添加 GitHub 到已知主机
RUN ssh-keyscan github.com >> /root/.ssh/known_hosts
Expand Down
5 changes: 3 additions & 2 deletions docker/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ services:
# - "7861:7861"
# - "8501:8501"
network_mode: "host"
# 将本地路径(~/chatchat)挂载到容器默认数据路径($CHATCHAT_ROOT)中
# 将 LangGraph-Chatchat/docker/chatchat_data.tar.gz 下载到本地, 解压
# 比如说解压缩后目录为 /root/chatchat_data, 将本地路径(/root/chatchat_data)挂载到容器默认数据路径($CHATCHAT_ROOT)中
volumes:
- /root/chatchat:/root/chatchat_data
- /root/chatchat_data:/root/chatchat_data
# xinference:
# image: xprobe/xinference:v0.12.3
# restart: always
Expand Down
2 changes: 1 addition & 1 deletion libs/chatchat-server/chatchat/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ class ToolSettings(BaseFileSettings):
默认为 memory, 无法持久化,仅在程序运行期间用于获取历史消息。
如果设为 sqlite/postgres,则自动使用 SQLALCHEMY_DATABASE_URI
"""
GRAPH_MEMORY_TYPE: t.Literal["memory", "sqlite", "postgres"] = "sqlite"
GRAPH_MEMORY_TYPE: t.Literal["memory", "sqlite", "postgres"] = "memory"

# """本地知识库工具配置项"""
# search_local_knowledgebase: dict = {
Expand Down

0 comments on commit 4016b3a

Please sign in to comment.