{
  "manifest_version": "1.0.0",
  "template": {
    "id": "b7a99a33-5f4c-4600-a90b-5ccaa1a39c73",
    "slug": "glpi-template",
    "name": "glpi-template",
    "description": "GLPI — IT helpdesk + asset management, auto-installed in one click",
    "url": "https://railway.com/deploy/glpi-template",
    "upstream": {
      "repo_url": "https://github.com/lNamelessl/glpi-railway-template"
    }
  },
  "services": [
    {
      "name": "mariadb",
      "source": {
        "repo": "https://github.com/lNamelessl/glpi-railway-template"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/mysql",
      "http": false
    },
    {
      "name": "glpi",
      "source": {
        "repo": "https://github.com/lNamelessl/glpi-railway-template"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/glpi",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "MYSQL_PASSWORD",
      "service": "mariadb",
      "description": "Provide a value for MYSQL_PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "GLPI_DB_HOST",
      "service": "glpi",
      "description": "Provide a value for GLPI_DB_HOST.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "GLPI_DB_PASSWORD",
      "service": "glpi",
      "description": "Provide a value for GLPI_DB_PASSWORD.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "glpi-template"
      }
    },
    "cli": "railway deploy --template glpi-template",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "b7a99a33-5f4c-4600-a90b-5ccaa1a39c73",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "8af4440d-a485-4bf9-8438-d23f4e2be717": {
                  "icon": null,
                  "name": "mariadb",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/lNamelessl/glpi-railway-template",
                    "rootDirectory": "mariadb"
                  },
                  "variables": {
                    "MYSQL_PASSWORD": {
                      "isOptional": false,
                      "defaultValue": "{{MYSQL_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "8af4440d-a485-4bf9-8438-d23f4e2be717": {
                      "mountPath": "/var/lib/mysql"
                    }
                  }
                },
                "ca469616-1afe-4213-a49c-3ac23914b3eb": {
                  "icon": null,
                  "name": "glpi",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/lNamelessl/glpi-railway-template",
                    "rootDirectory": "glpi"
                  },
                  "variables": {
                    "GLPI_DB_HOST": {
                      "isOptional": false,
                      "defaultValue": "${{mariadb.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "GLPI_DB_PASSWORD": {
                      "isOptional": false,
                      "defaultValue": "${{mariadb.MYSQL_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:80": {
                        "port": 80
                      }
                    }
                  },
                  "volumeMounts": {
                    "ca469616-1afe-4213-a49c-3ac23914b3eb": {
                      "mountPath": "/var/glpi"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-26T10:14:47.613Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-25T09:28:01.620Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_51c2059df3d9472e8440",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 78,
    "typical_build_seconds": 51,
    "typical_start_seconds": 10,
    "slowest_service": "glpi"
  }
}
