Skip to content

fix: 将 Docker 数据持久化到当前目录 - #4

Merged
CoderDoubleflower merged 1 commit into
mainfrom
chore/persist-data-local
Sep 4, 2026
Merged

fix: 将 Docker 数据持久化到当前目录#4
CoderDoubleflower merged 1 commit into
mainfrom
chore/persist-data-local

Conversation

@CoderDoubleflower

Copy link
Copy Markdown
Owner

变更

  • 将 Docker Compose 的 named volume sub2api-auditer-data:/data 改为当前项目目录下的 ./data:/data
  • 配置文件将实际保存在 ./data/config.json
  • .gitignore 已经忽略 /data/,避免上游 API Key 被误提交
  • 补齐 .env.example 中已有但 Compose 之前未传入容器的首次启动上游配置变量:UPSTREAM_BASE_URLUPSTREAM_API_KEYUPSTREAM_MODELUPSTREAM_TIMEOUT_SECONDSUPSTREAM_MAX_TOKENSAUDIT_PROMPT

注意:最近 100 条处理日志和统计当前仍是进程内存数据,容器重启后会清空;本次持久化的是网页保存的运行配置。

Copilot AI lite review requested due to automatic review settings September 4, 2026 03:00

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@CoderDoubleflower
CoderDoubleflower merged commit b8ba7b6 into main Sep 4, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants