# yaml-language-server: $schema=https://schema.zeabur.app/template.json
apiVersion: zeabur.com/v1
kind: Template
metadata:
    name: RustFS
spec:
    description: RustFS is a high-performance distributed object storage software built using Rust
    icon: https://cdn.zeabur.com/templates/icon/rustfs-logo-square.png
    variables:
        - key: RUSTFS_API_DOMAIN
          type: DOMAIN
          name: API Domain
          description: What is the API domain of your RustFS?
        - key: RUSTFS_CONSOLE_DOMAIN
          type: DOMAIN
          name: Console Domain
          description: What is the console domain of your RustFS?
    tags:
        - storage
        - s3
    readme: |
        # RustFS

        RustFS is a high-performance distributed object storage software built using Rust, one of the most popular languages worldwide. Along with MinIO, it shares a range of advantages such as simplicity, S3 compatibility, open-source nature, support for data lakes, AI, and big data. Furthermore, it has a better and more user-friendly open-source license in comparison to other storage systems, being constructed under the Apache license. As Rust serves as its foundation, RustFS provides faster speed and safer distributed features for high-performance object storage.

        ## Ports

        - `9000`: hosting RustFS's S3-compatible API
        - `9001`: hosting RustFS's console

        ## Configuration

        See <https://docs.rustfs.com/installation/docker/>.

        ## Screenshots

        ![Screenshots](https://i.imgur.com/7fNUhoG.png)
    services:
        - name: RustFS
          icon: https://cdn.zeabur.com/templates/icon/rustfs-logo-square.png
          template: PREBUILT
          spec:
            source:
                image: rustfs/rustfs:latest
            ports:
                - id: web
                  port: 9000
                  type: HTTP
                - id: console
                  port: 9001
                  type: HTTP
            volumes:
                - id: data
                  dir: /data
            instructions:
                - title: Default Username (S3 Access Key ID)
                  content: ${RUSTFS_USERNAME}
                - title: Default Password (S3 Secret Access Key)
                  content: ${RUSTFS_PASSWORD}
            env:
                RUSTFS_ACCESS_KEY:
                    default: rustfs
                RUSTFS_PASSWORD:
                    default: ${RUSTFS_SECRET_KEY}
                    expose: true
                RUSTFS_SECRET_KEY:
                    default: ${PASSWORD}
                RUSTFS_USERNAME:
                    default: ${RUSTFS_ACCESS_KEY}
                    expose: true
          domainKey:
            - port: web
              variable: RUSTFS_API_DOMAIN
            - port: console
              variable: RUSTFS_CONSOLE_DOMAIN
localization:
    zh-CN:
        description: RustFS 是一个使用 Rust 构建的高性能分布式对象存储软件
        readme: |
            # RustFS

            RustFS 是一款使用全球最受欢迎的编程语言之一 Rust 构建的高性能分布式对象存储软件。它与 MinIO 共享多项优势，例如简单易用、S3 兼容、开源性质，以及对数据湖、AI 和大数据的支持。此外，与其他存储系统相比，它拥有更优秀且用户友好的开源许可——基于 Apache 许可构建。由于以 Rust 为基础，RustFS 为高性能对象存储提供了更快的速度和更安全的分布式特性。

            ## 端口

            - `9000`：托管 RustFS 的 S3 兼容 API
            - `9001`：托管 RustFS 的控制台

            ## 配置

            请参阅 <https://docs.rustfs.com/zh/installation/docker/>。

            ## 截图

            ![Screenshots](https://i.imgur.com/7fNUhoG.png)
    zh-TW:
        description: RustFS 是一個使用 Rust 構建的高效能分散式物件儲存軟體
        readme: |-
            # RustFS

            RustFS 是一款使用全球最受歡迎的程式語言之一 Rust 建構的高效能分散式物件儲存軟體。它與 MinIO 共享多項優勢，例如簡單易用、S3 相容、開源性質，以及對資料湖、AI 和巨量資料的支援。此外，與其他儲存系統相比，它擁有更優秀且使用者友善的開源授權——基於 Apache 授權建構。由於以 Rust 為基礎，RustFS 為高效能物件儲存提供了更快的速度和更安全的分散式特性。

            ## 連接埠

            - `9000`：託管 RustFS 的 S3 相容 API
            - `9001`：託管 RustFS 的控制台

            ## 設定

            請參閱 <https://docs.rustfs.com/zh/installation/docker/>。

            ## 螢幕截圖

            ![Screenshots](https://i.imgur.com/7fNUhoG.png)
