# yaml-language-server: $schema=https://schema.zeabur.app/template.json
apiVersion: zeabur.com/v1
kind: Template
metadata:
    name: LangBot
spec:
    description: A Large Language Model Chat Bot for Multi-platform
    icon: https://raw.githubusercontent.com/RockChinQ/LangBot/refs/heads/master/res/logo.png
    variables:
        - key: LangBot_DOMAIN
          type: DOMAIN
          name: LangBot Domain
          description: The domain name of LangBot.
    readme: "# LangBot\n\n\U0001F5C2️ \U0001F60EHighly stable, \U0001F9E9Plugin-supported, \U0001F984Multi-modal LLM Multi-platform / OneBot Robot / Agent Platform\n\nAfter the service deployment is completed, you need to modify the configuration files in the /app/data folder through file management. \nFor how to modify, please refer to the LangBot documentation: https://docs.langbot.app/insight/guide.html"
    services:
        - name: langbot
          icon: https://raw.githubusercontent.com/RockChinQ/LangBot/refs/heads/master/res/logo.png
          template: PREBUILT_V2
          spec:
            source:
                image: docker.io/rockchin/langbot:latest
            ports:
                - id: web
                  port: 5300
                  type: HTTP
                - id: wss
                  port: 2280
                  type: HTTP
            volumes:
                - id: data
                  dir: /app/data
                - id: plugins
                  dir: /app/plugins
            env:
                PLUGIN__RUNTIME_WS_URL:
                    default: ws://langbot-plugin.zeabur.internal:5400/control/ws
                    expose: false
                TZ:
                    default: Asia/Shanghai
                    expose: false
          domainKey: LangBot_DOMAIN
        - name: langbot-plugin
          icon: https://raw.githubusercontent.com/RockChinQ/LangBot/refs/heads/master/res/logo.png
          template: PREBUILT_V2
          spec:
            source:
                image: docker.io/rockchin/langbot:latest
                command:
                    - uv
                    - run
                    - -m
                    - langbot_plugin.cli.__init__
                    - rt
            ports:
                - id: pluginruntime
                  port: 5400
                  type: HTTP
            volumes:
                - id: data-plugins
                  dir: /app/data/plugins
            env:
                TZ:
                    default: Asia/Shanghai
                    expose: false
localization:
    zh-CN:
        description: 多平台大型语言模型聊天机器人
        readme: "# LangBot\n\n\U0001F4C4️ \U0001F60E高稳定、\U0001F9E9支持插件、\U0001F984多模态的 LLM 多平台 / OneBot 机器人 / Agent 平台\n\n当服务部署完成后需要通过文件管理修改/app/data文件夹下的配置文件\n如何修改请查看LangBot文档: https://docs.langbot.app/insight/guide.html"
    zh-TW:
        description: 多平台大型語言模型聊天機器人
        readme: "# LangBot\n\n\U0001F4C4️ \U0001F60E高穩定、\U0001F9E9支援插件、\U0001F984多模態的 LLM 多平台 / OneBot 機器人 / Agent 平台\n\n當服務部署完成後，需要通過文件管理修改/app/data資料夾下的配置文件\n如何修改請查看LangBot文檔: https://docs.langbot.app/insight/guide.html"
