# yaml-language-server: $schema=https://schema.zeabur.app/template.json
apiVersion: zeabur.com/v1
kind: Template
metadata:
    name: Umami
spec:
    description: Umami is a simple, fast, privacy-focused alternative to Google Analytics.
    coverImage: https://zeabur.com/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2Fintro.5b73c4f8.png&w=3840&q=75
    icon: https://umami.is/favicon.ico
    variables:
        - key: PUBLIC_DOMAIN
          type: DOMAIN
          name: Domain
          description: What is the domain you want for your Umami?
    tags:
        - Tool
        - Analytics
    readme: |-
        # Umami
        Umami is a simple, fast, privacy-focused alternative to Google Analytics. It provides a lightweight and efficient way to track website visitors without compromising user privacy.

        ## Features
        - **Privacy-focused**: No cookies, no tracking, no data collection.
        - **Fast**: Minimal JavaScript, optimized for performance.
        - **Open Source**: Fully customizable and extensible.
    services:
        - name: Umami
          icon: https://umami.is/favicon.ico
          template: PREBUILT
          spec:
            id: umami
            source:
                image: ghcr.io/umami-software/umami:postgresql-latest
            ports:
                - id: web
                  port: 3000
                  type: HTTP
            env:
                APP_SECRET:
                    default: replace-me-with-a-random-string
                DATABASE_TYPE:
                    default: postgresql
                DATABASE_URL:
                    default: postgresql://umami:umami@db:5432/umami
          domainKey: PUBLIC_DOMAIN
        - name: PostgreSQL
          icon: https://raw.githubusercontent.com/zeabur/service-icons/main/marketplace/postgresql.svg
          template: PREBUILT
          spec:
            id: postgresql
            source:
                image: postgres:15-alpine
            ports:
                - id: database
                  port: 5432
                  type: TCP
            volumes:
                - id: data
                  dir: /var/lib/postgresql/data
            env:
                POSTGRES_DB:
                    default: umami
                POSTGRES_PASSWORD:
                    default: umami
                POSTGRES_USER:
                    default: umami
localization:
    zh-CN:
        description: Umami 是一个简单、快速、注重隐私的 Google Analytics 替代方案。
        variables:
            - key: PUBLIC_DOMAIN
              type: DOMAIN
              name: 域名
              description: 你想将 Umami 绑定在哪个域名上？
        readme: |-
            # Umami
            Umami 是一个简单、快速、注重隐私的 Google Analytics 替代方案。它提供了一种轻量级且高效的方式来跟踪网站访问者，而不会损害用户隐私。

            ## 功能
            - **注重隐私**: 无 Cookie，无跟踪，无数据收集。
            - **快速**: 最小化的 JavaScript，优化性能。
            - **开源**: 完全可定制和可扩展。
