# yaml-language-server: $schema=https://schema.zeabur.app/template.json
apiVersion: zeabur.com/v1
kind: Template
metadata:
    name: Remark42
spec:
    description: Remark42 is a privacy-focused lightweight commenting engine that can be embedded into blogs, articles or any other place where readers add comments.
    variables:
        - key: WEB_URL
          type: DOMAIN
          name: What is your domain for Remark42?
          description: Used to expose Remark42 to the public web
        - key: SITE
          type: STRING
          name: What is your site name for Remark42?
          description: Used to identify the site
    tags:
        - blog
        - comments
        - privacy
    readme: |
        [Remark42](https://remark42.com) is a privacy-focused lightweight commenting engine that allows you to have a self-hosted, simple yet functional comment system that doesn't spy on users.
    services:
        - name: Remark42
          icon: https://cdn.zeabur.com/prebuilt.svg
          template: PREBUILT_V2
          spec:
            source:
                image: umputun/remark42:latest
            ports:
                - id: web
                  port: 8080
                  type: HTTP
            volumes:
                - id: remark42-data
                  dir: /srv/var
            env:
                REMARK_URL:
                    default: ${ZEABUR_WEB_URL}
                    expose: true
                SECRET:
                    default: ${PASSWORD}
                    expose: true
                SITE:
                    default: ${SITE}
                    expose: true
          domainKey: WEB_URL
