# yaml-language-server: $schema=https://schema.zeabur.app/template.json
apiVersion: zeabur.com/v1
kind: Template
metadata:
    name: Stash
spec:
    description: |
        Stash is a self-hosted web application for organising and browsing your media collection. It scrapes metadata from the internet, supports tagging, filtering, and provides detailed statistics — all backed by an embedded SQLite database.
    coverImage: https://raw.githubusercontent.com/stashapp/stash/develop/docs/readme_assets/demo_image.png
    icon: https://raw.githubusercontent.com/stashapp/stash/develop/ui/v2.5/public/apple-touch-icon.png
    variables:
        - key: PUBLIC_DOMAIN
          type: DOMAIN
          name: Domain
          description: The domain to access Stash
    tags:
        - Tool
        - Media
    readme: |
        # Stash

        A self-hosted media organiser that indexes your video and image library, scrapes metadata from the internet, and provides powerful tagging, filtering, and browsing — all through a modern web UI.

        ## What You Can Do After Deployment

        1. **Visit your domain** — the setup wizard walks you through initial configuration (paths, credentials)
        2. **Point to your media** — the `/data` volume is where your media files live; Stash scans and indexes them automatically
        3. **Browse and tag** — use the web UI to view, tag, filter, and organise your library by performers, studios, tags, and more
        4. **Scrape metadata** — Stash pulls metadata from community-maintained scrapers for a wide range of sources
        5. **Install plugins** — extend functionality with community plugins for enhanced matching, tagging, and automation

        ## Key Features

        - Modern, responsive web UI with gallery and video player
        - Automatic metadata scraping from community-maintained sources
        - Rich tagging, filtering, and search across your entire library
        - Performer, studio, and tag management with statistics
        - Plugin and scraper ecosystem for extensibility
        - Embedded SQLite database — no external database required
        - Multi-format support for video and image files

        ## Volumes

        - `/root/.stash` — configuration, database, and generated content (thumbnails, transcodes)
        - `/data` — your media library (videos, images)

        ## License

        AGPL-3.0 — [GitHub](https://github.com/stashapp/stash)
    services:
        - name: stash
          icon: https://raw.githubusercontent.com/stashapp/stash/develop/ui/v2.5/public/apple-touch-icon.png
          template: PREBUILT_V2
          spec:
            id: stash
            source:
                image: stashapp/stash:v0.30.1
            ports:
                - id: web
                  port: 9999
                  type: HTTP
            volumes:
                - id: config
                  dir: /root/.stash
                - id: data
                  dir: /data
            env:
                STASH_PORT:
                    default: "9999"
            healthCheck:
                type: HTTP
                port: web
                http:
                    path: /
          domainKey: PUBLIC_DOMAIN
localization:
    es-ES:
        description: |
            Stash es una herramienta autoalojada para organizar y explorar tu colección multimedia. Extrae metadatos de internet, soporta etiquetas, filtros y estadísticas, con base de datos SQLite integrada.
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: Dominio
              description: El dominio para acceder a Stash
        readme: |
            # Stash

            Organizador multimedia autoalojado que indexa tu biblioteca de vídeos e imágenes, extrae metadatos y ofrece etiquetado, filtrado y navegación a través de una interfaz web moderna.

            ## Qué puedes hacer después del despliegue

            1. **Visita tu dominio** — el asistente de configuración te guía en la instalación inicial
            2. **Apunta a tus archivos** — el volumen `/data` almacena tus archivos multimedia
            3. **Navega y etiqueta** — usa la interfaz web para organizar tu colección
            4. **Extrae metadatos** — Stash obtiene información de fuentes mantenidas por la comunidad
            5. **Instala plugins** — amplía funcionalidades con plugins comunitarios

            ## Características

            - Interfaz web moderna con galería y reproductor de vídeo
            - Extracción automática de metadatos
            - Etiquetado, filtrado y búsqueda
            - Base de datos SQLite integrada
            - Ecosistema de plugins y scrapers

            ## Licencia

            AGPL-3.0 — [GitHub](https://github.com/stashapp/stash)
    id-ID:
        description: |
            Stash adalah alat manajemen media self-hosted untuk mengorganisir dan menjelajahi koleksi video dan gambar. Mendukung scraping metadata, tagging, filtering, dengan database SQLite bawaan.
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: Domain
              description: Domain untuk mengakses Stash
        readme: |
            # Stash

            Pengorganisir media self-hosted yang mengindeks perpustakaan video dan gambar, mengambil metadata, dan menyediakan tagging, filtering, serta browsing melalui web UI modern.

            ## Apa yang bisa dilakukan setelah deploy

            1. **Buka domain** — wizard setup memandu konfigurasi awal
            2. **Arahkan ke media** — volume `/data` menyimpan file media, Stash memindai otomatis
            3. **Jelajahi dan beri tag** — gunakan web UI untuk mengatur koleksi
            4. **Ambil metadata** — dari sumber yang dipelihara komunitas
            5. **Pasang plugin** — perluas fungsionalitas dengan plugin komunitas

            ## Fitur

            - Web UI modern dengan galeri dan pemutar video
            - Pengambilan metadata otomatis
            - Tagging, filtering, dan pencarian
            - Database SQLite bawaan
            - Ekosistem plugin dan scraper

            ## Lisensi

            AGPL-3.0 — [GitHub](https://github.com/stashapp/stash)
    ja-JP:
        description: |
            Stashはセルフホストのメディア管理ツールです。動画・画像コレクションの整理・閲覧、メタデータの自動取得、タグ付け・フィルタリングをサポート。SQLiteデータベース内蔵。
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: ドメイン
              description: Stashにアクセスするためのドメイン
        readme: |
            # Stash

            セルフホストのメディア管理ツール。動画・画像ライブラリをインデックスし、メタデータを自動取得。モダンなWeb UIでタグ付け、フィルタリング、ブラウジングが可能。

            ## デプロイ後にできること

            1. **ドメインにアクセス** — セットアップウィザードが初期設定をガイド
            2. **メディアを配置** — `/data` ボリュームにメディアファイルを配置、自動スキャン
            3. **閲覧とタグ付け** — Web UIでコレクションを管理
            4. **メタデータ取得** — コミュニティのスクレイパーから自動取得
            5. **プラグイン導入** — コミュニティプラグインで機能拡張

            ## 主な機能

            - モダンなWeb UI（ギャラリー・動画プレーヤー）
            - メタデータ自動取得
            - タグ・フィルタリング・検索
            - SQLiteデータベース内蔵
            - プラグイン・スクレイパーエコシステム

            ## ライセンス

            AGPL-3.0 — [GitHub](https://github.com/stashapp/stash)
    ko-KR:
        description: |
            Stash는 셀프호스팅 미디어 관리 도구로, 동영상 및 이미지 컬렉션을 정리하고 탐색할 수 있습니다. 메타데이터 스크래핑, 태그, 필터링을 지원하며 SQLite 데이터베이스가 내장되어 있습니다.
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: 도메인
              description: Stash에 접속할 도메인
        readme: |
            # Stash

            셀프호스팅 미디어 관리 도구. 동영상 및 이미지 라이브러리를 인덱싱하고 메타데이터를 자동 수집하며, 태그, 필터링, 브라우징 기능을 제공합니다.

            ## 배포 후 할 수 있는 것

            1. **도메인 접속** — 설정 마법사가 초기 구성을 안내
            2. **미디어 지정** — `/data` 볼륨에 미디어 파일 배치, 자동 스캔
            3. **탐색 및 태그** — 웹 UI에서 컬렉션 관리
            4. **메타데이터 수집** — 커뮤니티 유지 소스에서 자동 수집
            5. **플러그인 설치** — 커뮤니티 플러그인으로 기능 확장

            ## 주요 기능

            - 모던 웹 UI (갤러리 및 비디오 플레이어)
            - 자동 메타데이터 수집
            - 태그, 필터링, 검색
            - SQLite 데이터베이스 내장
            - 플러그인 및 스크래퍼 생태계

            ## 라이선스

            AGPL-3.0 — [GitHub](https://github.com/stashapp/stash)
    th-TH:
        description: |
            Stash เป็นเครื่องมือจัดการสื่อแบบ self-hosted สำหรับจัดระเบียบและเรียกดูคอลเลกชันวิดีโอและรูปภาพ รองรับการดึงเมตาดาต้า แท็ก ฟิลเตอร์ พร้อมฐานข้อมูล SQLite ในตัว
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: โดเมน
              description: โดเมนสำหรับเข้าถึง Stash
        readme: |
            # Stash

            เครื่องมือจัดการสื่อแบบ self-hosted ทำดัชนีคลังวิดีโอและรูปภาพ ดึงเมตาดาต้า และให้ฟีเจอร์แท็ก ฟิลเตอร์ และเรียกดูผ่าน Web UI สมัยใหม่

            ## สิ่งที่ทำได้หลังจากติดตั้ง

            1. **เข้าสู่โดเมน** — วิซาร์ดตั้งค่าช่วยกำหนดค่าเริ่มต้น
            2. **ชี้ไปที่สื่อ** — โวลุ่ม `/data` เก็บไฟล์สื่อ สแกนอัตโนมัติ
            3. **เรียกดูและแท็ก** — ใช้ Web UI จัดการคอลเลกชัน
            4. **ดึงเมตาดาต้า** — จากแหล่งที่ชุมชนดูแล
            5. **ติดตั้งปลั๊กอิน** — ขยายฟังก์ชันด้วยปลั๊กอินชุมชน

            ## ฟีเจอร์หลัก

            - Web UI สมัยใหม่ (แกลเลอรีและเครื่องเล่นวิดีโอ)
            - ดึงเมตาดาต้าอัตโนมัติ
            - แท็ก ฟิลเตอร์ และค้นหา
            - ฐานข้อมูล SQLite ในตัว
            - ระบบนิเวศปลั๊กอินและสเครปเปอร์

            ## สัญญาอนุญาต

            AGPL-3.0 — [GitHub](https://github.com/stashapp/stash)
    zh-CN:
        description: |
            Stash 是自托管的媒体管理工具，可整理浏览你的视频与图片收藏。支持元数据抓取、标签分类、筛选搜索，内置 SQLite 数据库。
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: 域名
              description: 访问 Stash 的域名
        readme: |
            # Stash

            自托管媒体管理工具，索引视频与图片库，抓取元数据，提供标签、筛选与浏览功能。

            ## 部署后可以做什么

            1. **打开域名** — 设置向导引导完成初始配置
            2. **指向媒体文件** — `/data` 存储卷存放媒体文件，Stash 自动扫描索引
            3. **浏览与标记** — 通过 Web 界面查看、标记、筛选和整理收藏
            4. **抓取元数据** — 从社区维护的来源自动抓取
            5. **安装插件** — 通过社区插件扩展功能

            ## 主要功能

            - 现代化 Web 界面，支持图库与视频播放
            - 自动元数据抓取
            - 标签、筛选与搜索
            - 内置 SQLite 数据库
            - 插件与抓取器生态

            ## 授权

            AGPL-3.0 — [GitHub](https://github.com/stashapp/stash)
    zh-TW:
        description: |
            Stash 是自架的媒體管理工具，可整理並瀏覽你的影片與圖片收藏。支援從網路抓取元資料、標籤分類、篩選搜尋，內建 SQLite 資料庫無需額外設定。
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: 網域
              description: 存取 Stash 的網域
        readme: |
            # Stash

            自架的媒體管理工具，可索引影片與圖片庫、從網路抓取元資料，並透過現代化 Web 介面提供標籤、篩選與瀏覽功能。

            ## 部署後可以做什麼

            1. **開啟網域** — 設定精靈引導你完成初始設定
            2. **指向媒體檔案** — `/data` 磁碟區存放你的媒體檔案，Stash 會自動掃描索引
            3. **瀏覽與標記** — 透過 Web 介面檢視、標記、篩選並整理收藏
            4. **抓取元資料** — Stash 從社群維護的來源自動抓取元資料
            5. **安裝外掛** — 透過社群外掛擴展功能

            ## 主要功能

            - 現代化 Web 介面，支援圖庫與影片播放
            - 自動從社群來源抓取元資料
            - 標籤、篩選與搜尋功能
            - 內建 SQLite 資料庫，無需額外設定
            - 外掛與抓取器生態系統

            ## 授權

            AGPL-3.0 — [GitHub](https://github.com/stashapp/stash)
