diff --git a/docker-compose.yaml b/docker-compose.yaml index 6f75e85d..f53f205d 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -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 diff --git a/pyproject.toml b/pyproject.toml index 096da14e..d06f0643 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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", diff --git a/templates/config.yaml b/templates/config.yaml index dd35e39c..c26c86df 100644 --- a/templates/config.yaml +++ b/templates/config.yaml @@ -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' \ No newline at end of file