# yaml-language-server: $schema=https://schema.zeabur.app/template.json
apiVersion: zeabur.com/v1
kind: Template
metadata:
    name: Moondream Station
spec:
    description: The world's most efficient grounded Vision AI. Moondream Station is free, open-source, and works offline. Deploy your own visual reasoning server with blazing speed. Requires GPU-enabled node.
    coverImage: https://docs.moondream.ai/img/md_logo.svg
    icon: https://docs.moondream.ai/img/md_logo.svg
    variables:
        - key: PUBLIC_DOMAIN
          type: DOMAIN
          name: Domain
          description: Bind a domain for the HTTP endpoint (e.g. moondream.yourdomain.com)
    tags:
        - AI
        - Computer Vision
        - Python
        - Vision AI
        - Open Source
    readme: |-
        # Moondream Station on Zeabur

        Deploy [Moondream Station](https://moondream.ai/) - the world's most efficient grounded Vision AI. Free, open-source, and works offline.

        ## Features

        - **Blazing Fast**: State-of-the-art visual understanding with unmatched efficiency
        - **Free & Open Source**: No cost, fully under your control
        - **Offline Capable**: Works completely offline, no external dependencies
        - **Python & Node Clients**: Works with official Python and Node.js clients
        - **GPU Accelerated**: Requires GPU-enabled node

        ## What You Get

        - Install from PyPI at container start
        - HTTP server on port 2020
        - Persistent storage for models and cache
        - **GPU Required**: GPU-enabled node is required

        ## Use Cases

        - Generate media tags and make images/videos searchable
        - Smart robotics with natural language vision prompts
        - UI automation and testing with semantic understanding
        - Enterprise automation and visual intelligence

        Docs: https://docs.moondream.ai
    services:
        - name: moondream-station
          icon: https://docs.moondream.ai/img/md_logo.svg
          template: PREBUILT
          spec:
            source:
                image: python:3.11-slim
            ports:
                - id: web
                  port: 2020
                  type: HTTP
            volumes:
                - id: data
                  dir: /app/.moondream
            env:
                LOGGING_ENABLED:
                    default: "true"
                    expose: true
                QUEUE_SIZE:
                    default: "64"
                    expose: true
                SERVER_PORT:
                    default: "2020"
                    expose: true
                USE_GPU:
                    default: "true"
                    expose: true
                WORKERS:
                    default: "2"
                    expose: true
            gpu:
                enabled: true
          domainKey: PUBLIC_DOMAIN
