{
  "manifest_version": "1.0.0",
  "template": {
    "id": "1933a7e2-1c1e-4664-9dd3-92dc696d7645",
    "slug": "dolibarr-up-to-date-2026",
    "name": "Dolibarr [up-to-date 2026]",
    "description": "Dolibarr ERP & CRM with private MariaDB, persistent files and auto setup.",
    "url": "https://railway.com/deploy/dolibarr-up-to-date-2026",
    "upstream": {
      "repo_url": "https://github.com/hallcyn/dolibarr"
    }
  },
  "services": [
    {
      "name": "MariaDB",
      "source": {
        "image": "mariadb:11.4"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/mysql",
      "http": false
    },
    {
      "name": "Dolibarr",
      "source": {
        "repo": "https://github.com/hallcyn/dolibarr"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "MARIADB_USER",
      "service": "MariaDB",
      "description": "Restricted application database user; no root privileges.",
      "secret": false,
      "strategy": "default",
      "default": "dolibarr"
    },
    {
      "key": "MARIADB_DATABASE",
      "service": "MariaDB",
      "description": "Database created on first start.",
      "secret": false,
      "strategy": "default",
      "default": "dolibarr"
    },
    {
      "key": "MARIADB_PASSWORD",
      "service": "MariaDB",
      "description": "Generated application database password, referenced by Dolibarr. Never regenerate for an existing database.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "MARIADB_ROOT_PASSWORD",
      "service": "MariaDB",
      "description": "Independent generated database root password. Keep private; not used by Dolibarr.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "PORT",
      "service": "Dolibarr",
      "description": "HTTP port; keep 80 and use target port 80 for the Railway domain.",
      "secret": false,
      "strategy": "default",
      "default": "80"
    },
    {
      "key": "DOLI_CRON",
      "service": "Dolibarr",
      "description": "Keep 0 so the web server starts. Use DOLI_RAILWAY_CRON for scheduled jobs.",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "DOLI_PROD",
      "service": "Dolibarr",
      "description": "Production mode. Keep 1.",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "DOLI_DB_HOST",
      "service": "Dolibarr",
      "description": "Private MariaDB DNS; keep both services in the same project environment.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "DOLI_DB_NAME",
      "service": "Dolibarr",
      "description": "Database name from the MariaDB service.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DOLI_DB_USER",
      "service": "Dolibarr",
      "description": "Restricted application database account.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DOLI_CRON_KEY",
      "service": "Dolibarr",
      "description": "Generated scheduler key. Also configure it in the Dolibarr Scheduled Jobs module.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "DOLI_URL_ROOT",
      "service": "Dolibarr",
      "description": "Public HTTPS URL. Replace with your full https:// custom domain URL when needed.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "DOLI_CRON_USER",
      "service": "Dolibarr",
      "description": "firstadmin selects an active administrator. Prefer a dedicated user for scheduled jobs.",
      "secret": false,
      "strategy": "default",
      "default": "firstadmin"
    },
    {
      "key": "DOLI_INIT_DEMO",
      "service": "Dolibarr",
      "description": "Keep 0 for a clean installation without demo data.",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "DOLI_ADMIN_LOGIN",
      "service": "Dolibarr",
      "description": "Initial administrator login. Change before the first deployment if needed.",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "DOLI_DB_PASSWORD",
      "service": "Dolibarr",
      "description": "Reference to the generated MariaDB password. Do not generate a separate value.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DOLI_COMPANY_NAME",
      "service": "Dolibarr",
      "description": "Company name on first installation; change later inside Dolibarr.",
      "secret": false,
      "strategy": "default",
      "default": "Mon entreprise"
    },
    {
      "key": "DOLI_DB_HOST_PORT",
      "service": "Dolibarr",
      "description": "Private MariaDB port. Keep 3306.",
      "secret": false,
      "strategy": "default",
      "default": "3306"
    },
    {
      "key": "DOLI_INSTALL_AUTO",
      "service": "Dolibarr",
      "description": "Automatically initialize an empty database. Keep 1.",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "DOLI_RAILWAY_CRON",
      "service": "Dolibarr",
      "description": "Optional scheduler. Set 1 after enabling Scheduled Jobs inside Dolibarr.",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "DOLI_ADMIN_PASSWORD",
      "service": "Dolibarr",
      "description": "Generated initial admin password. Read this variable to sign in; change later in Dolibarr.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "PHP_INI_MEMORY_LIMIT",
      "service": "Dolibarr",
      "description": "PHP memory per request; not the Railway service memory limit.",
      "secret": false,
      "strategy": "default",
      "default": "256M"
    },
    {
      "key": "PHP_INI_DATE_TIMEZONE",
      "service": "Dolibarr",
      "description": "PHP timezone using an IANA identifier, such as Europe/Paris.",
      "secret": false,
      "strategy": "default",
      "default": "Europe/Paris"
    },
    {
      "key": "PHP_INI_POST_MAX_SIZE",
      "service": "Dolibarr",
      "description": "Maximum POST body size; must exceed the upload file limit.",
      "secret": false,
      "strategy": "default",
      "default": "24M"
    },
    {
      "key": "DOLI_INSTANCE_UNIQUE_ID",
      "service": "Dolibarr",
      "description": "Permanent encryption key. Back it up and never regenerate for an existing installation.",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "DOLI_COMPANY_COUNTRYCODE",
      "service": "Dolibarr",
      "description": "Two-letter company country code; FR for France.",
      "secret": false,
      "strategy": "default",
      "default": "FR"
    },
    {
      "key": "PHP_INI_UPLOAD_MAX_FILESIZE",
      "service": "Dolibarr",
      "description": "Maximum size per uploaded attachment.",
      "secret": false,
      "strategy": "default",
      "default": "20M"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "dolibarr-up-to-date-2026"
      }
    },
    "cli": "railway deploy --template dolibarr-up-to-date-2026",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "1933a7e2-1c1e-4664-9dd3-92dc696d7645",
            "serializedConfig": {
              "services": {
                "63d6ecd3-5c97-4665-a929-5bc5a511ee31": {
                  "icon": "https://raw.githubusercontent.com/devicons/devicon/master/icons/mariadb/mariadb-original.svg",
                  "name": "MariaDB",
                  "deploy": {
                    "startCommand": "docker-entrypoint.sh mariadbd --bind-address=0.0.0.0,:: --innodb-buffer-pool-size=128M --max-connections=30 --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci"
                  },
                  "source": {
                    "image": "mariadb:11.4"
                  },
                  "variables": {
                    "MARIADB_USER": {
                      "description": "Restricted application database user; no root privileges.",
                      "defaultValue": "dolibarr"
                    },
                    "MARIADB_DATABASE": {
                      "description": "Database created on first start.",
                      "defaultValue": "dolibarr"
                    },
                    "MARIADB_PASSWORD": {
                      "description": "Generated application database password, referenced by Dolibarr. Never regenerate for an existing database.",
                      "defaultValue": "{{MARIADB_PASSWORD}}"
                    },
                    "MARIADB_ROOT_PASSWORD": {
                      "description": "Independent generated database root password. Keep private; not used by Dolibarr.",
                      "defaultValue": "{{MARIADB_ROOT_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "63d6ecd3-5c97-4665-a929-5bc5a511ee31": {
                      "mountPath": "/var/lib/mysql"
                    }
                  }
                },
                "736dd84a-2aab-478d-a7f3-ef7f4a13c0dd": {
                  "icon": "https://raw.githubusercontent.com/Dolibarr/dolibarr/develop/htdocs/theme/dolibarr_256x256_color.png",
                  "name": "Dolibarr",
                  "deploy": {
                    "healthcheckPath": "/railway-health.php"
                  },
                  "source": {
                    "repo": "hallcyn/dolibarr"
                  },
                  "variables": {
                    "PORT": {
                      "description": "HTTP port; keep 80 and use target port 80 for the Railway domain.",
                      "defaultValue": "80"
                    },
                    "DOLI_CRON": {
                      "description": "Keep 0 so the web server starts. Use DOLI_RAILWAY_CRON for scheduled jobs.",
                      "defaultValue": "0"
                    },
                    "DOLI_PROD": {
                      "description": "Production mode. Keep 1.",
                      "defaultValue": "1"
                    },
                    "DOLI_DB_HOST": {
                      "description": "Private MariaDB DNS; keep both services in the same project environment.",
                      "defaultValue": "${{MariaDB.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "DOLI_DB_NAME": {
                      "description": "Database name from the MariaDB service.",
                      "defaultValue": "${{MariaDB.MARIADB_DATABASE}}"
                    },
                    "DOLI_DB_USER": {
                      "description": "Restricted application database account.",
                      "defaultValue": "${{MariaDB.MARIADB_USER}}"
                    },
                    "DOLI_CRON_KEY": {
                      "description": "Generated scheduler key. Also configure it in the Dolibarr Scheduled Jobs module.",
                      "defaultValue": "{{DOLI_CRON_KEY}}"
                    },
                    "DOLI_URL_ROOT": {
                      "description": "Public HTTPS URL. Replace with your full https:// custom domain URL when needed.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "DOLI_CRON_USER": {
                      "description": "firstadmin selects an active administrator. Prefer a dedicated user for scheduled jobs.",
                      "defaultValue": "firstadmin"
                    },
                    "DOLI_INIT_DEMO": {
                      "description": "Keep 0 for a clean installation without demo data.",
                      "defaultValue": "0"
                    },
                    "DOLI_ADMIN_LOGIN": {
                      "description": "Initial administrator login. Change before the first deployment if needed.",
                      "defaultValue": "admin"
                    },
                    "DOLI_DB_PASSWORD": {
                      "description": "Reference to the generated MariaDB password. Do not generate a separate value.",
                      "defaultValue": "${{MariaDB.MARIADB_PASSWORD}}"
                    },
                    "DOLI_COMPANY_NAME": {
                      "description": "Company name on first installation; change later inside Dolibarr.",
                      "defaultValue": "Mon entreprise"
                    },
                    "DOLI_DB_HOST_PORT": {
                      "description": "Private MariaDB port. Keep 3306.",
                      "defaultValue": "3306"
                    },
                    "DOLI_INSTALL_AUTO": {
                      "description": "Automatically initialize an empty database. Keep 1.",
                      "defaultValue": "1"
                    },
                    "DOLI_RAILWAY_CRON": {
                      "description": "Optional scheduler. Set 1 after enabling Scheduled Jobs inside Dolibarr.",
                      "defaultValue": "0"
                    },
                    "DOLI_ADMIN_PASSWORD": {
                      "description": "Generated initial admin password. Read this variable to sign in; change later in Dolibarr.",
                      "defaultValue": "{{DOLI_ADMIN_PASSWORD}}"
                    },
                    "PHP_INI_MEMORY_LIMIT": {
                      "description": "PHP memory per request; not the Railway service memory limit.",
                      "defaultValue": "256M"
                    },
                    "PHP_INI_DATE_TIMEZONE": {
                      "description": "PHP timezone using an IANA identifier, such as Europe/Paris.",
                      "defaultValue": "Europe/Paris"
                    },
                    "PHP_INI_POST_MAX_SIZE": {
                      "description": "Maximum POST body size; must exceed the upload file limit.",
                      "defaultValue": "24M"
                    },
                    "DOLI_INSTANCE_UNIQUE_ID": {
                      "description": "Permanent encryption key. Back it up and never regenerate for an existing installation.",
                      "defaultValue": "{{DOLI_INSTANCE_UNIQUE_ID}}"
                    },
                    "DOLI_COMPANY_COUNTRYCODE": {
                      "description": "Two-letter company country code; FR for France.",
                      "defaultValue": "FR"
                    },
                    "PHP_INI_UPLOAD_MAX_FILESIZE": {
                      "description": "Maximum size per uploaded attachment.",
                      "defaultValue": "20M"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:80": {
                        "port": 80
                      }
                    }
                  },
                  "volumeMounts": {
                    "736dd84a-2aab-478d-a7f3-ef7f4a13c0dd": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Dolibarr",
      "method": "GET",
      "path": "/railway-health.php",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-10-17T22:14:45.787Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-10-17T20:16:32.263Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_1bd05f3847a14aeca82e",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 209,
    "typical_build_seconds": 60,
    "typical_start_seconds": 131,
    "slowest_service": "Dolibarr"
  }
}
