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
+24 -4
View File
@@ -1,8 +1,23 @@
version: "3" version: "3"
services: 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: langbot:
image: rockchin/langbot:latest image: rockchin/langbot:refactor-new-plugin-system
container_name: langbot container_name: langbot
volumes: volumes:
- ./data:/app/data - ./data:/app/data
@@ -11,6 +26,11 @@ services:
environment: environment:
- TZ=Asia/Shanghai - TZ=Asia/Shanghai
ports: ports:
- 5300:5300 # 供 WebUI 使用 - 5300:5300 # For web ui
- 2280-2290:2280-2290 # 供消息平台适配器方向连接 - 2280-2290:2280-2290 # For platform webhook
# 根据具体环境配置网络 networks:
- langbot_network
networks:
langbot_network:
driver: bridge
+1 -1
View File
@@ -50,7 +50,7 @@ dependencies = [
"pre-commit>=4.2.0", "pre-commit>=4.2.0",
"uv>=0.7.11", "uv>=0.7.11",
"mypy>=1.16.0", "mypy>=1.16.0",
"langbot-plugin==0.1.1b2", "langbot-plugin==0.1.1b3",
] ]
keywords = [ keywords = [
"bot", "bot",
+1 -1
View File
@@ -19,5 +19,5 @@ system:
expire: 604800 expire: 604800
secret: '' secret: ''
plugin: 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' cloud_service_url: 'https://space.langbot.app'