mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-07-24 21:36:06 +00:00
feat: update docker launch method
This commit is contained in:
+24
-4
@@ -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
@@ -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",
|
||||||
|
|||||||
@@ -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'
|
||||||
Reference in New Issue
Block a user