# yaml-language-server: $schema=https://schema.zeabur.app/template.json
apiVersion: zeabur.com/v1
kind: Template
metadata:
    name: Postgresus
spec:
    description: Postgresus is a free, open source and self-hosted tool to backup PostgreSQL.
    icon: https://postgresus.com/logo.svg
    variables:
        - key: PUBLIC_DOMAIN
          type: DOMAIN
          name: Public Domain
          description: The public domain of the Postgresus instance.
    readme: |
        Postgresus is a free, open source and self-hosted tool to backup PostgreSQL. Make backups with different storages (S3, Google Drive, FTP, etc.) and notifications about progress (Slack, Discord, Telegram, etc.).
        [Learn more →](https://postgresus.com/)
    services:
        - name: postgresus
          icon: https://postgresus.com/logo.svg
          template: PREBUILT_V2
          spec:
            source:
                image: rostislavdugin/postgresus:v2.10.0
            ports:
                - id: web
                  port: 4005
                  type: HTTP
            volumes:
                - id: data
                  dir: /postgresus-data
          domainKey: PUBLIC_DOMAIN
