# yaml-language-server: $schema=https://schema.zeabur.app/template.json
apiVersion: zeabur.com/v1
kind: Template
metadata:
    name: KeeWeb
spec:
    description: Browser and desktop password manager for KeePass-compatible kdbx vaults. Open existing databases or create new vaults.
    coverImage: https://raw.githubusercontent.com/keeweb/keeweb/master/img/screenshot.png
    icon: https://avatars.githubusercontent.com/u/18244763?s=48&v=4
    variables:
        - key: PUBLIC_DOMAIN
          type: DOMAIN
          name: Domain
          description: The domain you want to bind to your KeeWeb instance.
    tags:
        - Security
        - Password
        - Tool
    readme: |-
        # KeeWeb

        This template runs the official **[KeeWeb](https://github.com/keeweb/keeweb)** Docker image on Zeabur. KeeWeb is a cross-platform password manager that works with **KeePass-compatible `.kdbx`** files in the browser (and has desktop builds upstream).

        ## Features

        - Open existing vaults or create new ones
        - Compatible with KeePass, KeePassXC, and other kdbx tools
        - Optional cloud sync (Dropbox, Google Drive, OneDrive) — see upstream docs
    services:
        - name: keeweb
          icon: https://avatars.githubusercontent.com/u/18244763?s=48&v=4
          template: PREBUILT
          spec:
            id: keeweb
            source:
                image: ghcr.io/keeweb/keeweb:latest
            ports:
                - id: web
                  port: 80
                  type: HTTP
            volumes:
                - id: config
                  dir: /config
            env:
                PGID:
                    default: "1000"
                PORT_HTTP:
                    default: "80"
                PORT_HTTPS:
                    default: "443"
                PUID:
                    default: "1000"
                TZ:
                    default: Etc/UTC
          domainKey: PUBLIC_DOMAIN
localization:
    zh-CN:
        description: 支持 KeePass 兼容 kdbx 库的浏览器/桌面密码管理器，可打开现有数据库或创建新保险库。
        variables:
            - key: PUBLIC_DOMAIN
              type: DOMAIN
              name: 域名
              description: 要绑定在 KeeWeb 上的域名。
        readme: |-
            # KeeWeb

            本模板在 Zeabur 上运行官方 **[KeeWeb](https://github.com/keeweb/keeweb)** Docker 镜像。KeeWeb 是跨平台密码管理器，可在浏览器中使用（上游亦提供桌面版），并兼容 **KeePass 系 `.kdbx`** 文件。

            ## 功能特色

            - 打开已有保险库或新建保险库
            - 兼容 KeePass、KeePassXC 及其他 kdbx 工具
            - 可选云同步（Dropbox、Google Drive、OneDrive）— 详见上游文档
    zh-TW:
        description: 支援 KeePass 相容 kdbx 金庫的瀏覽器／桌面密碼管理器，可開啟現有資料庫或建立新金庫。
        variables:
            - key: PUBLIC_DOMAIN
              type: DOMAIN
              name: 網域
              description: 要綁定在 KeeWeb 上的網域。
        readme: |-
            # KeeWeb

            本模板在 Zeabur 上部署官方 **[KeeWeb](https://github.com/keeweb/keeweb)** Docker 映像。KeeWeb 是跨平台密碼管理工具，可在瀏覽器中使用（上游亦提供桌面版），並與 **KeePass 相容的 `.kdbx`** 檔案互通。

            ## 功能特色

            - 開啟既有金庫或建立新金庫
            - 與 KeePass、KeePassXC 及其他 kdbx 工具相容
            - 可選雲端同步（Dropbox、Google Drive、OneDrive）— 請參考上游說明
