# yaml-language-server: $schema=https://schema.zeabur.app/template.json
apiVersion: zeabur.com/v1
kind: Template
metadata:
    name: VvvebCMS
spec:
    description: Open-source CMS with drag & drop website builder.
    coverImage: https://camo.githubusercontent.com/216d38d4204d408fb26aaff50e478a4d6c2133e6986c17664014e072c90ba640/68747470733a2f2f7777772e76767665622e636f6d2f696d672f6461726b2d7468656d652e77656270
    icon: https://vvveb.com/favicon.ico
    variables:
        - key: PUBLIC_DOMAIN
          type: DOMAIN
          name: Domain
          description: The domain for your VvvebCMS instance
    tags:
        - CMS
        - Website
        - Tool
    readme: "# VvvebCMS\n\n**VvvebCMS** is an open-source content management system with a drag & drop website builder.  \nThis template includes both **MySQL** and **VvvebCMS** services.\n\n## Features\n- Drag and drop page builder\n- Multi site support\n- Localization and multi language support\n- Easy publishing with revisions, media management, multi user access and advanced role permissions\n- Advanced ecommerce features\n- One page checkout\n- Subscriptions\n- Digital assets support\n- Vouchers, coupons\n- Product options, attributes, variants, reviews, QA etc\n- Product variants\n- Themes and plugins marketplace with one click install from admin dashboard\n- Flexible with custom fields, custom posts and custom products support\n- Manual and automatic backup\n- Import/export for easy migration\n- Easily extendable through plugins with a powerful event system\n- Built in contact forms plugin with storage and email support\n- Very fast, with cache enabled as fast as a static website\n- Low resource footprint serving hundreds of requests per second on free shared hosting\n- Hybrid Headless CMS - can be used both as a traditional CMS and a Headless CMS with GraphQL and REST API\n- Bundled advanced SEO plugin with support for schema, open graph, href langs, sitemaps etc\n- Advanced security with brute force protection, SQL injection protection, hidden admin login page\n- Easy installation without setup\n- Secure install with only one php file exposed to public minimizing attack surface\n\n## Installation\nWhen you first open your domain, you will see the installation form (database settings).  \nSince this template has already preconfigured the database, **you do not need to modify anything**.  \n\nSimply:\n1. Check **\"I agree to AGPL 3 license terms\"**\n2. Click **\"Continue install\"**\n\nThen follow the on-screen setup to finish the configuration of your site.\n\n## Documentation\nIf you encounter any issues or want to learn more, please check the [official VvvebCMS documentation](https://docs.vvveb.com/)."
    services:
        - name: mysql
          icon: https://cdn.zeabur.com/marketplace/mysql.svg
          template: PREBUILT_V2
          spec:
            id: mysql
            source:
                image: mysql:8.0
            ports:
                - id: database
                  port: 3306
                  type: TCP
            volumes:
                - id: data
                  dir: /var/lib/mysql
            instructions:
                - title: Command to connect to your MySQL
                  content: mysqlsh --sql --host=${PORT_FORWARDED_HOSTNAME} --port=${DATABASE_PORT_FORWARDED_PORT} --user=${MYSQL_USERNAME} --password=${MYSQL_PASSWORD} --schema=${MYSQL_DATABASE}
                - title: MySQL username
                  content: ${MYSQL_USERNAME}
                - title: MySQL password
                  content: ${MYSQL_PASSWORD}
                - title: MySQL database
                  content: ${MYSQL_DATABASE}
                - title: MySQL host
                  content: ${PORT_FORWARDED_HOSTNAME}
                - title: MySQL port
                  content: ${DATABASE_PORT_FORWARDED_PORT}
            env:
                MYSQL_DATABASE:
                    default: vvveb
                    expose: true
                MYSQL_HOST:
                    default: ${CONTAINER_HOSTNAME}
                    expose: true
                MYSQL_PASSWORD:
                    default: ${MYSQL_ROOT_PASSWORD}
                    expose: true
                MYSQL_PORT:
                    default: ${DATABASE_PORT}
                    expose: true
                MYSQL_ROOT_PASSWORD:
                    default: ${PASSWORD}
                    expose: false
                MYSQL_USERNAME:
                    default: vvveb
                    expose: true
        - name: VvvebCMS
          icon: https://vvveb.com/favicon.ico
          template: PREBUILT
          spec:
            id: vvvebcms
            source:
                image: vvveb/vvvebcms:latest
            ports:
                - id: web
                  port: 80
                  type: HTTP
            volumes:
                - id: vvveb-volume
                  dir: /var/www/html
            env:
                DB_DATABASE:
                    default: vvveb
                DB_ENGINE:
                    default: mysqli
                DB_HOST:
                    default: ${MYSQL_HOST}
                DB_PASSWORD:
                    default: ${MYSQL_PASSWORD}
                DB_USER:
                    default: root
          domainKey: PUBLIC_DOMAIN
localization:
    zh-TW:
        description: 開源的拖曳式網站建置 CMS
        variables:
            - key: PUBLIC_DOMAIN
              type: DOMAIN
              name: 網域
              description: 你想要綁定 VvvebCMS 的網域
        readme: "# VvvebCMS\n\n**VvvebCMS** 是一個開源的內容管理系統，內建拖曳式網站編輯器。  \n這個模板會同時部署 **MySQL** 與 **VvvebCMS**。\n\n## 功能特色\n- 拖曳式頁面編輯器\n- 多站點支援\n- 在地化與多語言支援\n- 版本管理、媒體管理、多使用者存取與進階角色權限，輕鬆發佈內容\n- 進階電商功能\n- 一頁式結帳\n- 訂閱制支援\n- 數位資產管理\n- 折價券、優惠券\n- 商品選項、屬性、變體、評論、問答等\n- 商品變體管理\n- 主題與插件市集，後台可一鍵安裝\n- 支援自訂欄位、自訂文章與自訂商品，靈活擴充\n- 手動與自動備份\n- 匯入/匯出，方便遷移\n- 透過強大的事件系統與插件，輕鬆擴充\n- 內建聯絡表單插件，支援表單儲存與電子郵件通知\n- 高速效能，啟用快取後可媲美靜態網站\n- 輕量化資源占用，在免費共享主機上也能處理每秒數百次請求\n- 混合式 Headless CMS：可作為傳統 CMS，也能透過 GraphQL、REST API 作為 Headless CMS\n- 內建進階 SEO 插件，支援 Schema、Open Graph、hreflang、站點地圖等\n- 進階安全性：防暴力破解、防 SQL 注入、隱藏管理後台登入頁\n- 簡單安裝，免額外設定\n- 安全安裝：僅公開一個 PHP 檔案，大幅降低攻擊面\n\n## 安裝說明\n當你第一次開啟綁定的網域時，會看到安裝表單（資料庫設定頁面）。  \n由於這個模板已經預先設定好資料庫，**你不需要修改任何內容**。  \n\n只需：  \n1. 勾選 **「I agree to AGPL 3 license terms」**  \n2. 點擊 **「Continue install」**  \n\n接著依照畫面指示完成網站安裝設定即可。\n\n## 文件\n若遇到問題或想進一步了解，請查閱 [官方文件](https://docs.vvveb.com/)。"
