Skip to content

Commit

Permalink
robot 部分 docker compose配置补充预设值
Browse files Browse the repository at this point in the history
  • Loading branch information
sliots committed Mar 1, 2025
1 parent 1b182f8 commit 9edfb46
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 26 deletions.
26 changes: 14 additions & 12 deletions examples/compose/Kanban.GPT/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,45 +1,47 @@
version: "3"
services:
apiserver:
image: littlefishtentears/cngalwebsitekanbangpt:latest
image: littlefishtentears/cngalwebsitekanbangpt:${IMAGE_TAG:-latest}
container_name: kanbangpt
environment:
- TZ=${TZ}
- TZ=${TZ:-Asia/Shanghai}
# 事件总线 主机名称
- EventBus_HostName=${EventBus_HostName}
# 事件总线 端口
- EventBus_Port=${EventBus_Port}
- EventBus_Port=${EventBus_Port:-5672}
# 事件总线 用户名
- EventBus_UserName=${EventBus_UserName}
# 事件总线 密码
- EventBus_Password=${EventBus_Password}
# GPT API KEY
- ChatGPTApiKey=${ChatGPTApiKey}
# 1分钟所有用户调用次数限制
- ChatGPTLimit_1_Minute=${ChatGPTLimit_1_Minute}
- ChatGPTLimit_1_Minute=${ChatGPTLimit_1_Minute:-30}
# 1天所有用户调用次数限制
- ChatGPTLimit_1_Day=${ChatGPTLimit_1_Day}
- ChatGPTLimit_1_Day=${ChatGPTLimit_1_Day:-1000}
# GPT 模型
- ChatGPTModel=${ChatGPTModel}
- ChatGPTModel=${ChatGPTModel:-gpt-3.5-turbo-0125}
# GPT API url
- ChatGPTApiUrl=${ChatGPTApiUrl}
# GPT 提示词
- ChatGPT_SystemMessageTemplate=${ChatGPT_SystemMessageTemplate}
# GPT 单次对话长度限制
- ChatGPTLimit_Length=${ChatGPTLimit_Length}
- ChatGPTLimit_Length=${ChatGPTLimit_Length:-30}
# GPT 对话示例,用户部分
- ChatGPT_Sample_User=${ChatGPT_Sample_User}
# GPT 对话示例,看板娘部分
- ChatGPT_Sample_Kanban=${ChatGPT_Sample_Kanban}
# GPT 最大递归调用深度
- MaxRecursionDepth=${MaxRecursionDepth}
- MaxRecursionDepth=${MaxRecursionDepth:-10}
# CnGal API 路径
- WebApiPath=${WebApiPath}
- WebApiPath=${WebApiPath:-https://api.cngal.org/}
# 是否启用函数调用 启用后不能使用r1模型
- EnableFunctionCalling=${EnableFunctionCalling}
- EnableFunctionCalling=${EnableFunctionCalling:-true}
hostname: kanbangpt
restart: always
deploy:
resources:
limits:
memory: ${resources_limits_memory}
memory: ${RESOURCES_LIMITS_MEMORY:-100m}
labels:
# watchtower
- com.centurylinklabs.watchtower.enable=${WATCHTOWER_ENABLE:-true}
45 changes: 31 additions & 14 deletions examples/compose/RobotClientX/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
services:
robotclientx:
image: littlefishtentears/cngalwebsiterobotclientx:latest
image: littlefishtentears/cngalwebsiterobotclientx:${IMAGE_TAG:-latest}
container_name: robotclientx
environment:
- TZ=${TZ}
- TZ=${TZ:-Asia/Shanghai}
# 账号
- QQ=${QQ}
# 称呼
- RobotName=${RobotName}
- RobotName=${RobotName:-看板娘}
# 接收预警的QQ群
- WarningQQGroup=${WarningQQGroup}
# Mirai Url
Expand All @@ -21,22 +21,22 @@ services:
# QQ频道 AppKey
- ChannelAppKey=${ChannelAppKey}
# CnGal资料站 API
- WebApiPath=${WebApiPath}
- WebApiPath=${WebApiPath:-https://api.cngal.org/}
# 网站名称
- WebSiteName=${WebSiteName}
- WebSiteName=${WebSiteName:-看板娘在这里哦}
# 网站背景图
- WebSiteImage=${WebSiteImage}
- WebSiteImage=${WebSiteImage:-https://res.cngal.org/_content/CnGalWebSite.Shared/images/game_head.png}
# 网站主题颜色
- WebSiteTheme=${WebSiteTheme}
- WebSiteTheme=${WebSiteTheme:-#f06292}
# 事件总线
- EventBus_HostName=${EventBus_HostName}
- EventBus_Port=${EventBus_Port}
- EventBus_Port=${EventBus_Port:-5672}
- EventBus_UserName=${EventBus_UserName}
- EventBus_Password=${EventBus_Password}
# 群聊历史记录最大条数
- GroupHistoryMax=${GroupHistoryMax}
- GroupHistoryMax=${GroupHistoryMax:-30}
# 群聊历史记录达到最大条数后,保留最近N条消息
- GroupHistoryMin=${GroupHistoryMin}
- GroupHistoryMin=${GroupHistoryMin:-10}
hostname: robotclientx
restart: always
healthcheck:
Expand All @@ -48,9 +48,26 @@ services:
deploy:
resources:
limits:
memory: ${resources_limits_memory}
memory: ${RESOURCES_LIMITS_MEMORY:-200m}
ports:
- "2004:8080"
- ${PORT:-2004}:8080
volumes:
- ${MNT_DIR}/robotclientx/DataProtection-Keys:/root/.aspnet/DataProtection-Keys
- ${MNT_DIR}/robotclientx/Data:/app/wwwroot/Data
- drawingbed-DataProtection-Keys:/home/app/.aspnet/DataProtection-Keys
- ${MNT_DIR:-/mnt/docker}/robotclientx/Data:/app/wwwroot/Data
labels:
# traefik
- traefik.enable=true
- traefik.docker.network=web
- traefik.http.routers.robotclientx.rule=Host(`${HOST:-robotclientx.localhost}`)
- traefik.http.services.robotclientx.loadbalancer.server.port=8080
# watchtower
- com.centurylinklabs.watchtower.enable=${WATCHTOWER_ENABLE:-true}
networks:
- web

volumes:
drawingbed-DataProtection-Keys:

networks:
web:
external: true

0 comments on commit 9edfb46

Please sign in to comment.