feat: update docker launch method

This commit is contained in:
Junyan Qin
2025-08-24 11:10:05 +08:00
parent 118ebddae6
commit fd9d1c4acc
3 changed files with 26 additions and 6 deletions

View File

@@ -1,8 +1,23 @@
version: "3"
services:
langbot_plugin_runtime:
image: rockchin/langbot:refactor-new-plugin-system
container_name: langbot_plugin_runtime
volumes:
- ./data/plugins:/app/data/plugins
ports:
- 5401:5401
restart: on-failure
environment:
- TZ=Asia/Shanghai
command: ["uv", "run", "-m", "langbot_plugin.cli.__init__", "rt"]
networks:
- langbot_network
langbot:
image: rockchin/langbot:latest
image: rockchin/langbot:refactor-new-plugin-system
container_name: langbot
volumes:
- ./data:/app/data
@@ -11,6 +26,11 @@ services:
environment:
- TZ=Asia/Shanghai
ports:
- 5300:5300 # 供 WebUI 使用
- 2280-2290:2280-2290 # 供消息平台适配器方向连接
# 根据具体环境配置网络
- 5300:5300 # For web ui
- 2280-2290:2280-2290 # For platform webhook
networks:
- langbot_network
networks:
langbot_network:
driver: bridge

View File

@@ -50,7 +50,7 @@ dependencies = [
"pre-commit>=4.2.0",
"uv>=0.7.11",
"mypy>=1.16.0",
"langbot-plugin==0.1.1b2",
"langbot-plugin==0.1.1b3",
]
keywords = [
"bot",

View File

@@ -19,5 +19,5 @@ system:
expire: 604800
secret: ''
plugin:
runtime_ws_url: 'ws://plugin-runtime:5400/control/ws'
runtime_ws_url: 'ws://langbot_plugin_runtime:5400/control/ws'
cloud_service_url: 'https://space.langbot.app'