feat: 添加 accounts.json 卷挂载

- 确保 Docker 重启后能加载最新的多账号配置
- 使用 :ro 只读挂载,配置文件由 sync-accounts.sh 管理
This commit is contained in:
empty
2025-12-27 12:55:06 +08:00
parent d3fe5dc92a
commit dd58dec1f5

View File

@@ -22,6 +22,8 @@ services:
volumes:
# 可选持久化auth.json以保存刷新的tokens
- ./data:/app/data
# 多账号配置文件(由 sync-accounts.sh 同步)
- ./accounts.json:/app/accounts.json:ro
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:3000/"]