# yaml-language-server: $schema=https://schema.zeabur.app/template.json
apiVersion: zeabur.com/v1
kind: Template
metadata:
    name: Flowise
spec:
    description: Drag & drop UI to build your customized LLM flow
    icon: https://avatars.githubusercontent.com/u/128289781
    variables:
        - key: PUBLIC_DOMAIN
          type: DOMAIN
          name: Flowise Domain
          description: The domain to access the Flowise UI.
    tags:
        - Tool
        - ChatGPT
    readme: |-
        # Flowise

        Drag & drop UI to build your customized LLM flow.

        ## Login Information

        You can see the username and password in the Instruction tab. These will be the credentials to login to the Flowise UI.
    services:
        - name: Flowise
          icon: https://avatars.githubusercontent.com/u/128289781
          template: PREBUILT
          spec:
            source:
                image: flowiseai/flowise:latest
                command:
                    - flowise
                args:
                    - start
            ports:
                - id: web
                  port: 3000
                  type: HTTP
            volumes:
                - id: data
                  dir: /root/.flowise
            instructions:
                - title: Flowise Username
                  content: ${FLOWISE_USERNAME}
                - title: Flowise Password
                  content: ${FLOWISE_PASSWORD}
            env:
                FLOWISE_PASSWORD:
                    default: ${PASSWORD}
                FLOWISE_USERNAME:
                    default: flowise
          domainKey: PUBLIC_DOMAIN
