# yaml-language-server: $schema=https://schema.zeabur.app/template.json
apiVersion: zeabur.com/v1
kind: Template
metadata:
    name: Dolibarr
spec:
    description: |
        An open-source ERP and CRM suite for managing business activities including contacts, invoices, orders, stocks, and accounting. Supports SQLite, MySQL, and PostgreSQL backends.
    coverImage: https://avatars.githubusercontent.com/u/877491?v=4
    icon: https://avatars.githubusercontent.com/u/877491?v=4
    variables:
        - key: PUBLIC_DOMAIN
          type: DOMAIN
          name: Domain
          description: The domain to access Dolibarr
        - key: ADMIN_PASSWORD
          type: STRING
          name: Admin Password
          description: Password for the Dolibarr admin account
    tags:
        - Business
        - Tool
    readme: |
        # Dolibarr

        Dolibarr is an open-source ERP and CRM suite for managing business activities. It covers contacts, quotes, invoices, orders, stock management, agenda, HR, expense reports, and accounting. This template uses SQLite as the database backend for a simple single-container deployment.

        ## First-Time Setup

        1. Click the deployed URL to open Dolibarr.
        2. Log in with username `admin` and the password you configured.
        3. Enable the modules you need from the admin panel.

        ## Default Port

        - **80** (HTTP)

        ## Useful Links

        - [Dolibarr Official Site](https://www.dolibarr.org)
        - [Dolibarr GitHub](https://github.com/Dolibarr/dolibarr)
        - [Dolibarr Documentation](https://wiki.dolibarr.org)

        ## License

        GPL-3.0 — [GitHub](https://github.com/Dolibarr/dolibarr)
    services:
        - name: dolibarr
          icon: https://avatars.githubusercontent.com/u/877491?v=4
          template: PREBUILT_V2
          spec:
            source:
                image: dolibarr/dolibarr:23.0.0
            ports:
                - id: web
                  port: 80
                  type: HTTP
            volumes:
                - id: documents
                  dir: /var/www/documents
                - id: custom
                  dir: /var/www/html/custom
            env:
                DOLI_ADMIN_LOGIN:
                    default: admin
                    expose: true
                DOLI_ADMIN_PASSWORD:
                    default: ${ADMIN_PASSWORD}
                    expose: true
                DOLI_DB_HOST:
                    default: localhost
                    expose: true
                DOLI_DB_NAME:
                    default: /var/www/documents/dolibarr.sqlite
                    expose: true
                DOLI_DB_PASSWORD:
                    default: ${PASSWORD}
                    expose: true
                DOLI_DB_TYPE:
                    default: sqlite3
                    expose: true
                DOLI_DB_USER:
                    default: dolibarr
                    expose: true
                DOLI_INSTALL_AUTO:
                    default: "1"
                    expose: true
                DOLI_PROD:
                    default: "1"
                    expose: true
                DOLI_URL_ROOT:
                    default: ${ZEABUR_WEB_URL}
                PHP_INI_DATE_TIMEZONE:
                    default: UTC
                    expose: true
            healthCheck:
                type: HTTP
                port: web
                http:
                    path: /
          domainKey: PUBLIC_DOMAIN
localization:
    es-ES:
        description: |
            Suite ERP y CRM de codigo abierto para gestionar actividades empresariales incluyendo contactos, facturas, pedidos, inventario y contabilidad. Compatible con SQLite, MySQL y PostgreSQL.
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: Dominio
              description: El dominio para acceder a Dolibarr
            - key: ADMIN_PASSWORD
              type: STRING
              name: Contrasena de administrador
              description: Contrasena para la cuenta de administrador de Dolibarr
        readme: |
            # Dolibarr

            Dolibarr es una suite ERP y CRM de codigo abierto para gestionar actividades empresariales. Cubre contactos, presupuestos, facturas, pedidos, gestion de inventario, agenda, RRHH, informes de gastos y contabilidad. Esta plantilla utiliza SQLite como base de datos para un despliegue sencillo en un solo contenedor.

            ## Configuracion inicial

            1. Haz clic en la URL desplegada para abrir Dolibarr.
            2. Inicia sesion con el usuario `admin` y la contrasena configurada.
            3. Activa los modulos necesarios desde el panel de administracion.

            ## Puerto predeterminado

            - **80** (HTTP)

            ## Enlaces utiles

            - [Sitio oficial de Dolibarr](https://www.dolibarr.org)
            - [Dolibarr GitHub](https://github.com/Dolibarr/dolibarr)
            - [Documentacion de Dolibarr](https://wiki.dolibarr.org)

            ## Licencia

            GPL-3.0 — [GitHub](https://github.com/Dolibarr/dolibarr)
    id-ID:
        description: |
            Suite ERP dan CRM open-source untuk mengelola aktivitas bisnis termasuk kontak, faktur, pesanan, stok, dan akuntansi. Mendukung backend SQLite, MySQL, dan PostgreSQL.
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: Domain
              description: Domain untuk mengakses Dolibarr
            - key: ADMIN_PASSWORD
              type: STRING
              name: Kata Sandi Admin
              description: Kata sandi untuk akun admin Dolibarr
        readme: |
            # Dolibarr

            Dolibarr adalah suite ERP dan CRM open-source untuk mengelola aktivitas bisnis. Mencakup kontak, penawaran, faktur, pesanan, manajemen stok, agenda, SDM, laporan pengeluaran, dan akuntansi. Template ini menggunakan SQLite sebagai backend database untuk deployment container tunggal yang sederhana.

            ## Pengaturan Awal

            1. Klik URL yang telah di-deploy untuk membuka Dolibarr.
            2. Login dengan nama pengguna `admin` dan kata sandi yang telah dikonfigurasi.
            3. Aktifkan modul yang diperlukan dari panel admin.

            ## Port Default

            - **80** (HTTP)

            ## Tautan Berguna

            - [Situs Resmi Dolibarr](https://www.dolibarr.org)
            - [Dolibarr GitHub](https://github.com/Dolibarr/dolibarr)
            - [Dokumentasi Dolibarr](https://wiki.dolibarr.org)

            ## Lisensi

            GPL-3.0 — [GitHub](https://github.com/Dolibarr/dolibarr)
    ja-JP:
        description: |
            オープンソースの ERP・CRM スイート。連絡先、請求書、注文、在庫、会計などのビジネス活動を管理。SQLite、MySQL、PostgreSQL バックエンドに対応。
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: ドメイン
              description: Dolibarr にアクセスするためのドメイン
            - key: ADMIN_PASSWORD
              type: STRING
              name: 管理者パスワード
              description: Dolibarr 管理者アカウントのパスワード
        readme: |
            # Dolibarr

            Dolibarr はオープンソースの ERP・CRM スイートで、ビジネス活動を管理します。連絡先、見積もり、請求書、注文、在庫管理、スケジュール、人事、経費精算、会計をカバーします。このテンプレートはデータベースバックエンドとして SQLite を使用し、シンプルなシングルコンテナデプロイを実現します。

            ## 初回セットアップ

            1. デプロイされた URL をクリックして Dolibarr を開きます。
            2. ユーザー名 `admin` と設定したパスワードでログインします。
            3. 管理パネルから必要なモジュールを有効化します。

            ## デフォルトポート

            - **80** (HTTP)

            ## 関連リンク

            - [Dolibarr 公式サイト](https://www.dolibarr.org)
            - [Dolibarr GitHub](https://github.com/Dolibarr/dolibarr)
            - [Dolibarr ドキュメント](https://wiki.dolibarr.org)

            ## ライセンス

            GPL-3.0 — [GitHub](https://github.com/Dolibarr/dolibarr)
    ko-KR:
        description: |
            오픈소스 ERP 및 CRM 스위트. 연락처, 송장, 주문, 재고, 회계 등 비즈니스 활동 관리. SQLite, MySQL, PostgreSQL 백엔드 지원.
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: 도메인
              description: Dolibarr에 접속할 도메인
            - key: ADMIN_PASSWORD
              type: STRING
              name: 관리자 비밀번호
              description: Dolibarr 관리자 계정 비밀번호
        readme: |
            # Dolibarr

            Dolibarr는 오픈소스 ERP 및 CRM 스위트로 비즈니스 활동을 관리합니다. 연락처, 견적, 송장, 주문, 재고 관리, 일정, 인사, 경비 보고서, 회계를 포함합니다. 이 템플릿은 SQLite를 데이터베이스 백엔드로 사용하여 간단한 단일 컨테이너 배포를 지원합니다.

            ## 초기 설정

            1. 배포된 URL을 클릭하여 Dolibarr를 엽니다.
            2. 사용자 이름 `admin`과 설정한 비밀번호로 로그인합니다.
            3. 관리 패널에서 필요한 모듈을 활성화합니다.

            ## 기본 포트

            - **80** (HTTP)

            ## 관련 링크

            - [Dolibarr 공식 사이트](https://www.dolibarr.org)
            - [Dolibarr GitHub](https://github.com/Dolibarr/dolibarr)
            - [Dolibarr 문서](https://wiki.dolibarr.org)

            ## 라이선스

            GPL-3.0 — [GitHub](https://github.com/Dolibarr/dolibarr)
    th-TH:
        description: |
            ชุด ERP และ CRM โอเพนซอร์สสำหรับจัดการกิจกรรมทางธุรกิจ รวมถึงผู้ติดต่อ ใบแจ้งหนี้ คำสั่งซื้อ สต็อก และการบัญชี รองรับ SQLite, MySQL และ PostgreSQL
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: โดเมน
              description: โดเมนสำหรับเข้าถึง Dolibarr
            - key: ADMIN_PASSWORD
              type: STRING
              name: รหัสผ่านผู้ดูแล
              description: รหัสผ่านสำหรับบัญชีผู้ดูแล Dolibarr
        readme: |
            # Dolibarr

            Dolibarr เป็นชุด ERP และ CRM โอเพนซอร์สสำหรับจัดการกิจกรรมทางธุรกิจ ครอบคลุมผู้ติดต่อ ใบเสนอราคา ใบแจ้งหนี้ คำสั่งซื้อ การจัดการสต็อก ปฏิทิน ทรัพยากรบุคคล รายงานค่าใช้จ่าย และการบัญชี เทมเพลตนี้ใช้ SQLite เป็นฐานข้อมูลสำหรับการ deploy คอนเทนเนอร์เดียวอย่างง่าย

            ## การตั้งค่าเริ่มต้น

            1. คลิก URL ที่ deploy แล้วเพื่อเปิด Dolibarr
            2. เข้าสู่ระบบด้วยชื่อผู้ใช้ `admin` และรหัสผ่านที่ตั้งค่าไว้
            3. เปิดใช้งานโมดูลที่ต้องการจากแผงผู้ดูแล

            ## พอร์ตเริ่มต้น

            - **80** (HTTP)

            ## ลิงก์ที่เป็นประโยชน์

            - [เว็บไซต์ทางการ Dolibarr](https://www.dolibarr.org)
            - [Dolibarr GitHub](https://github.com/Dolibarr/dolibarr)
            - [เอกสาร Dolibarr](https://wiki.dolibarr.org)

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

            GPL-3.0 — [GitHub](https://github.com/Dolibarr/dolibarr)
    zh-CN:
        description: |
            开源 ERP 与 CRM 套件，管理商业活动包括联系人、发票、订单、库存与会计。支持 SQLite、MySQL 和 PostgreSQL 后端。
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: 域名
              description: 访问 Dolibarr 的域名
            - key: ADMIN_PASSWORD
              type: STRING
              name: 管理员密码
              description: Dolibarr 管理员账号的密码
        readme: |
            # Dolibarr

            Dolibarr 是开源 ERP 与 CRM 套件，用于管理商业活动。涵盖联系人、报价、发票、订单、库存管理、日程、人力资源、费用报销与会计。此模板使用 SQLite 作为数据库后端，实现简易的单容器部署。

            ## 首次设置

            1. 点击部署后的网址打开 Dolibarr。
            2. 使用账号 `admin` 和配置的密码登录。
            3. 从管理面板启用所需模块。

            ## 默认端口

            - **80** (HTTP)

            ## 相关链接

            - [Dolibarr 官方网站](https://www.dolibarr.org)
            - [Dolibarr GitHub](https://github.com/Dolibarr/dolibarr)
            - [Dolibarr 文档](https://wiki.dolibarr.org)

            ## 授权

            GPL-3.0 — [GitHub](https://github.com/Dolibarr/dolibarr)
    zh-TW:
        description: |
            開源 ERP 與 CRM 套件，管理商業活動包括聯絡人、發票、訂單、庫存與會計。支援 SQLite、MySQL 和 PostgreSQL 後端。
        variables:
            - key: PUBLIC_DOMAIN
              type: STRING
              name: 網域
              description: 存取 Dolibarr 的網域
            - key: ADMIN_PASSWORD
              type: STRING
              name: 管理員密碼
              description: Dolibarr 管理員帳號的密碼
        readme: |
            # Dolibarr

            Dolibarr 是開源 ERP 與 CRM 套件，用於管理商業活動。涵蓋聯絡人、報價、發票、訂單、庫存管理、行事曆、人力資源、費用報銷與會計。此模板使用 SQLite 作為資料庫後端，實現簡易的單容器部署。

            ## 首次設定

            1. 點擊部署後的網址開啟 Dolibarr。
            2. 使用帳號 `admin` 和設定的密碼登入。
            3. 從管理面板啟用所需模組。

            ## 預設埠

            - **80** (HTTP)

            ## 相關連結

            - [Dolibarr 官方網站](https://www.dolibarr.org)
            - [Dolibarr GitHub](https://github.com/Dolibarr/dolibarr)
            - [Dolibarr 文件](https://wiki.dolibarr.org)

            ## 授權

            GPL-3.0 — [GitHub](https://github.com/Dolibarr/dolibarr)
