From a9beb66aef4f098713cd5fe47effcd64365cf6fb Mon Sep 17 00:00:00 2001 From: Junyan Qin Date: Fri, 12 Sep 2025 22:58:51 +0800 Subject: [PATCH] chore: move docker-compose.yaml for plugin edition --- docker-compose.yaml | 27 ++++----------------------- docker/docker-compose.yaml | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+), 23 deletions(-) create mode 100644 docker/docker-compose.yaml diff --git a/docker-compose.yaml b/docker-compose.yaml index 107a9e26..e1231d66 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -1,21 +1,7 @@ +# This file is deprecated, and will be replaced by docker/docker-compose.yaml in next version. version: "3" services: - - langbot_plugin_runtime: - image: rockchin/langbot:latest - 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 container_name: langbot @@ -26,11 +12,6 @@ services: environment: - TZ=Asia/Shanghai ports: - - 5300:5300 # For web ui - - 2280-2290:2280-2290 # For platform webhook - networks: - - langbot_network - -networks: - langbot_network: - driver: bridge + - 5300:5300 # 供 WebUI 使用 + - 2280-2290:2280-2290 # 供消息平台适配器方向连接 + # 根据具体环境配置网络 \ No newline at end of file diff --git a/docker/docker-compose.yaml b/docker/docker-compose.yaml new file mode 100644 index 00000000..107a9e26 --- /dev/null +++ b/docker/docker-compose.yaml @@ -0,0 +1,36 @@ +version: "3" + +services: + + langbot_plugin_runtime: + image: rockchin/langbot:latest + 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 + container_name: langbot + volumes: + - ./data:/app/data + - ./plugins:/app/plugins + restart: on-failure + environment: + - TZ=Asia/Shanghai + ports: + - 5300:5300 # For web ui + - 2280-2290:2280-2290 # For platform webhook + networks: + - langbot_network + +networks: + langbot_network: + driver: bridge