# yaml-language-server: $schema=https://schema.zeabur.app/template.json
apiVersion: zeabur.com/v1
kind: Template
metadata:
    name: GoatCounter
spec:
    description: GoatCounter is an open source web analytics platform available as a free donation-supported hosted service or self-hosted app.
    icon: https://image.pseudoyu.com/images/goatcounter-icon.svg
    variables:
        - key: WEB_URL
          type: DOMAIN
          name: What is your domain for the GoatCounter?
          description: Used for expose the GoatCounter to the public web.
    tags:
        - blog
        - analytics
    readme: |
        [GoatCounter](https://github.com/arp242/goatcounter) is an open source web analytics platform available as a free donation-supported hosted service or self-hosted app.
    services:
        - name: GoatCounter
          icon: https://image.pseudoyu.com/images/goatcounter-icon.svg
          template: PREBUILT_V2
          spec:
            source:
                image: pseudoyu/goatcounter:latest
            ports:
                - id: web
                  port: 8080
                  type: HTTP
            volumes:
                - id: goatcounter-data
                  dir: /data
            env:
                GOATCOUNTER_DB:
                    default: sqlite3://data/goatcounter.sqlite3
                    expose: true
                PORT:
                    default: "8080"
                    expose: true
          domainKey: WEB_URL
