chore: use NODE_TYPE to determine node type

This commit is contained in:
JustSong
2023-06-22 20:39:17 +08:00
parent 7497f24daa
commit b090e50f72
4 changed files with 13 additions and 10 deletions

View File

@@ -16,8 +16,10 @@ services:
- REDIS_CONN_STRING=redis://redis
- SESSION_SECRET=random_string # 修改为随机字符串
- TZ=Asia/Shanghai
# - SYNC_FREQUENCY=60 # 多机部署时从节点取消注释该行
# - NODE_TYPE=slave # 多机部署时从节点取消注释该行
# - SYNC_FREQUENCY=60 # 需要定期从数据库加载数据时取消注释该行
# - FRONTEND_BASE_URL=https://openai.justsong.cn # 多机部署时从节点取消注释该行
depends_on:
- redis
healthcheck: