# yaml-language-server: $schema=https://schema.zeabur.app/template.json
apiVersion: zeabur.com/v1
kind: Template
metadata:
    name: Beszel
spec:
    description: Lightweight server monitoring with historical data, Docker stats, and alerts.
    coverImage: https://repository-images.githubusercontent.com/825470378/2710c6db-f934-4a8b-a2c4-7a0abbcd2ad6
    icon: https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/beszel-light.png
    variables:
        - key: PUBLIC_DOMAIN
          type: DOMAIN
          name: Domain
          description: The domain name for your Beszel dashboard
    tags:
        - monitoring
    readme: |-
        # Beszel

        Beszel is a lightweight server monitoring platform with Docker statistics, historical data, and alerts. It uses a **hub-and-agent architecture** — the hub provides a web dashboard (powered by PocketBase) while agents run on the systems you want to monitor.

        ## Features

        - **Docker / Podman** — tracks CPU, memory, and network usage per container
        - **Alerts** — configurable for CPU, memory, disk, bandwidth, temperature, load average, and system status
        - **Multi-user** — per-user system management with admin sharing controls
        - **OAuth / OIDC** — supports multiple providers with optional password-free login
        - **Automatic backups** — to disk or S3-compatible storage
        - **REST API** — read and update data via scripts

        ## Getting Started

        After deployment, open the dashboard at your configured domain and create an admin account. Click **Add System** to connect your first agent — either via a local Unix socket or a remote agent binary / Docker container.

        ## Links

        - Documentation: https://beszel.dev/
        - GitHub: https://github.com/henrygd/beszel
    resourceUsage:
        cpu: 100
        memory: 256
    resourceRequirement:
        minConfig:
            cpu: 1
            ram: 1
        recommendedConfig:
            cpu: 1
            ram: 1
    services:
        - name: Beszel
          icon: https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/beszel-light.png
          template: PREBUILT_V2
          spec:
            source:
                image: ghcr.io/henrygd/beszel/beszel:0.18.6
            ports:
                - id: http
                  port: 8090
                  type: HTTP
            volumes:
                - id: data
                  dir: /beszel_data
            healthCheck:
                type: HTTP
                port: http
                http:
                    path: /
          domainKey: PUBLIC_DOMAIN
localization:
    zh-CN:
        description: 轻量级服务器监控，支持 Docker 统计、历史数据与告警通知。
        variables:
            - key: PUBLIC_DOMAIN
              type: DOMAIN
              name: 域名
              description: 你想将 Beszel 监控面板绑定到哪个域名上？
        readme: |-
            # Beszel

            Beszel 是一个轻量级的服务器监控平台，提供 Docker 统计信息、历史数据与告警功能。采用 **Hub-Agent 架构**——Hub 提供基于 PocketBase 的网页面板，Agent 部署在被监控的系统上。

            ## 功能特性

            - **Docker / Podman** — 追踪每个容器的 CPU、内存与网络用量
            - **告警通知** — 可针对 CPU、内存、磁盘、带宽、温度、负载及系统状态设置告警
            - **多用户** — 各用户管理自己的系统，管理员可跨用户共享系统
            - **OAuth / OIDC** — 支持多种 OAuth2 提供者，可选择免密码登录
            - **自动备份** — 备份至本地磁盘或 S3 兼容存储
            - **REST API** — 通过脚本读取与更新数据

            ## 快速开始

            部署完成后，前往配置的域名打开面板并创建管理员账号。点击 **添加系统** 来连接第一个 Agent——可通过本地 Unix Socket 或远程 Agent（二进制文件 / Docker 容器）进行连接。

            ## 相关链接

            - 官方文档：https://beszel.dev/
            - GitHub：https://github.com/henrygd/beszel
    zh-TW:
        description: 輕量級伺服器監控，支援 Docker 統計、歷史資料與警示通知。
        variables:
            - key: PUBLIC_DOMAIN
              type: DOMAIN
              name: 網域
              description: 你想將 Beszel 監控儀表板綁在哪個網域上？
        readme: |-
            # Beszel

            Beszel 是一個輕量級的伺服器監控平台，提供 Docker 統計資訊、歷史資料與警示功能。採用 **Hub-Agent 架構**——Hub 提供以 PocketBase 為基礎的網頁儀表板，Agent 則部署在受監控的系統上。

            ## 功能特色

            - **Docker / Podman** — 追蹤每個容器的 CPU、記憶體與網路用量
            - **警示通知** — 可針對 CPU、記憶體、磁碟、頻寬、溫度、負載及系統狀態設定警報
            - **多使用者** — 各使用者管理自己的系統，管理員可跨使用者共享系統
            - **OAuth / OIDC** — 支援多種 OAuth2 提供者，可選擇免密碼登入
            - **自動備份** — 備份至本機磁碟或 S3 相容儲存空間
            - **REST API** — 透過腳本讀取與更新資料

            ## 開始使用

            部署完成後，前往設定的網域開啟儀表板並建立管理員帳號。點選 **新增系統** 來連接第一個 Agent——可透過本機 Unix Socket 或遠端 Agent（二進位檔 / Docker 容器）進行連接。

            ## 相關連結

            - 官方文件：https://beszel.dev/
            - GitHub：https://github.com/henrygd/beszel
