# yaml-language-server: $schema=https://schema.zeabur.app/template.json
apiVersion: zeabur.com/v1
kind: Template
metadata:
    name: Homarr Dashboard
spec:
    description: A simple, yet powerful dashboard for your server
    coverImage: https://raw.githubusercontent.com/homarr-labs/homarr/refs/heads/dev/docs/img/screenshot.png
    icon: https://homarr.dev/img/logo.png
    variables:
        - key: PUBLIC_DOMAIN
          type: DOMAIN
          name: Domain
          description: Domain to access your Homarr dashboard (e.g. homarr.example.com)
        - key: SECRET_ENCRYPTION_KEY
          type: STRING
          name: Secret Encryption Key
          description: 64-character hex string used to encrypt secrets in Homarr’s database
    tags:
        - Tool
        - Dashboard
    readme: "# Homarr\n\nHomarr is a modern, easy-to-use dashboard for your server. It puts all of your\napps and services in one place with a clean, widget-based UI.\n\n\U0001F449 For the latest version of this template, visit:  \n**https://github.com/wari-sul/homarr-zeabur/**\n\nThis template deploys the official Docker image:\n\n- Image: `ghcr.io/homarr-labs/homarr:latest`\n- Port: `7575` (HTTP, TLS is handled by Zeabur)\n- Persistent config stored in `/appdata`\n\n## Required environment\n\nHomarr **requires** a `SECRET_ENCRYPTION_KEY` – a 64-character hex string used\nto encrypt secrets in its database. If this is missing, Homarr will exit with an error.\n\nYou can generate one with:\n\n```bash\nopenssl rand -hex 32\n```\n\nSave this key somewhere safe; losing it means losing access to encrypted secrets.\n\n## Notes about Docker integration\n\nThe upstream Docker example mounts `/var/run/docker.sock` so Homarr can inspect local containers.\nZeabur does **not** expose Docker to containers, so this mount is intentionally omitted.\n\n## Access\n\nAfter deployment, your dashboard will be available at:\n\n- `https://<your-domain>/`\n"
    services:
        - name: homarr
          icon: https://homarr.dev/img/logo.png
          template: PREBUILT
          spec:
            id: homarr
            source:
                image: ghcr.io/homarr-labs/homarr:latest
            ports:
                - id: web
                  port: 7575
                  type: HTTP
            volumes:
                - id: appdata
                  dir: /appdata
            instructions:
                - title: Homarr Dashboard
                  content: https://${PUBLIC_DOMAIN}/
                - title: Secret Encryption Key
                  content: ${SECRET_ENCRYPTION_KEY}
            env:
                SECRET_ENCRYPTION_KEY:
                    default: ${SECRET_ENCRYPTION_KEY}
          domainKey: PUBLIC_DOMAIN
