# yaml-language-server: $schema=https://schema.zeabur.app/template.json
apiVersion: zeabur.com/v1
kind: Template
metadata:
    name: Tolgee
spec:
    description: An open-source localization platform developers enjoy working with.
    icon: https://docs.tolgee.io/img/tolgeeLogo.svg
    variables:
        - key: PUBLIC_DOMAIN
          type: DOMAIN
          name: Domain
          description: What is the domain you want for your Tolgee?
    tags:
        - localization
        - i18n
        - Tool
    readme: |-
        # Tolgee
        Tolgee is an open source, easy to use, and extensible localization platform.
        It's a self-hosted solution that you can install on your own infrastructure.
        For more details about configuration, please refer to the [official documentation](https://docs.tolgee.io/platform/self_hosting/configuration).
    services:
        - name: tolgee
          icon: https://docs.tolgee.io/img/tolgeeLogo.svg
          template: PREBUILT_V2
          spec:
            source:
                image: docker.io/tolgee/tolgee:latest
            ports:
                - id: http
                  port: 8080
                  type: HTTP
            volumes:
                - id: data
                  dir: /data/
            instructions:
                - title: User to connect to your Tolgee
                  content: ${TOLGEE_AUTHENTICATION_INITIAL_USERNAME}
                - title: Password to connect to your Tolgee
                  content: ${TOLGEE_AUTHENTICATION_INITIAL_PASSWORD}
            env:
                TOLGEE_AUTHENTICATION_ENABLED:
                    default: "true"
                    expose: true
                TOLGEE_AUTHENTICATION_INITIAL_PASSWORD:
                    default: admin
                    expose: true
                TOLGEE_AUTHENTICATION_INITIAL_USERNAME:
                    default: admin
                    expose: true
            configs: []
          domainKey: PUBLIC_DOMAIN
