{
  "manifest_version": "1.0.0",
  "template": {
    "id": "9fa52ead-df42-43fd-a512-fac3900da92b",
    "slug": "glpi",
    "name": "GLPI",
    "description": "IT asset inventory and service desk in one application",
    "url": "https://railway.com/deploy/glpi",
    "upstream": {
      "repo_url": "https://github.com/gridalpha/glpi-railway"
    }
  },
  "services": [
    {
      "name": "MySQL",
      "source": {
        "image": "mysql:9.4"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/mysql",
      "http": false
    },
    {
      "name": "glpi",
      "source": {
        "repo": "https://github.com/gridalpha/glpi-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/glpi",
      "http": true
    },
    {
      "name": "Redis",
      "source": {
        "image": "redis:8.2"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "MYSQLHOST",
      "service": "MySQL",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "MYSQLPORT",
      "service": "MySQL",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "default",
      "default": "3306"
    },
    {
      "key": "MYSQLUSER",
      "service": "MySQL",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "default",
      "default": "root"
    },
    {
      "key": "MYSQL_URL",
      "service": "MySQL",
      "description": "Private connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "MYSQLDATABASE",
      "service": "MySQL",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MYSQLPASSWORD",
      "service": "MySQL",
      "description": "Data panel alias, not read by the server",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MYSQL_DATABASE",
      "service": "MySQL",
      "description": "Database created on first boot",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "MYSQL_ROOT_PASSWORD",
      "service": "MySQL",
      "description": "Superuser password, read by the server",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "TZ",
      "service": "glpi",
      "description": "Server timezone, also PHP's date.timezone",
      "secret": false,
      "strategy": "default",
      "default": "UTC"
    },
    {
      "key": "PORT",
      "service": "glpi",
      "description": "Apache listening port",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "GLPI_DB_NAME",
      "service": "glpi",
      "description": "Schema GLPI owns",
      "secret": false,
      "strategy": "default",
      "default": "glpi"
    },
    {
      "key": "GLPI_DB_USER",
      "service": "glpi",
      "description": "Scoped role GLPI connects as",
      "secret": false,
      "strategy": "default",
      "default": "glpi"
    },
    {
      "key": "GLPI_URL_BASE",
      "service": "glpi",
      "description": "Public base URL for links and API",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "GLPI_CACHE_DSN",
      "service": "glpi",
      "description": "Redis application cache",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "glpi",
      "description": "Start as root to take the volume, then drop",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "GLPI_DB_PASSWORD",
      "service": "glpi",
      "description": "Password for that scoped role",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "GLPI_DB_ADMIN_URL",
      "service": "glpi",
      "description": "Used once to create schema and role",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "GLPI_ADMIN_PASSWORD",
      "service": "glpi",
      "description": "Initial password for the glpi super-admin",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "GLPI_CRONTAB_ENABLED",
      "service": "glpi",
      "description": "Run GLPI's scheduled-task worker",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "GLPI_DEMO_DASHBOARDS",
      "service": "glpi",
      "description": "Hide GLPI's sample dashboard figures",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "RAILWAY_HEALTHCHECK_TIMEOUT_SEC",
      "service": "glpi",
      "description": "First boot installs the schema",
      "secret": false,
      "strategy": "default",
      "default": "600"
    },
    {
      "key": "REDISHOST",
      "service": "Redis",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISPORT",
      "service": "Redis",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "REDISUSER",
      "service": "Redis",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "REDIS_URL",
      "service": "Redis",
      "description": "Private connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDISPASSWORD",
      "service": "Redis",
      "description": "Data panel alias, not read by the server",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "Redis",
      "description": "Auth password, read by the server",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "glpi"
      }
    },
    "cli": "railway deploy --template glpi",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "9fa52ead-df42-43fd-a512-fac3900da92b",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "9f253090-2c30-4f3e-9f33-699fdde604c6": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/mysql.svg",
                  "name": "MySQL",
                  "deploy": {
                    "startCommand": "docker-entrypoint.sh mysqld --innodb-use-native-aio=0 --disable-log-bin --performance_schema=0 --innodb-buffer-pool-size=1G",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "mysql:9.4"
                  },
                  "variables": {
                    "MYSQLHOST": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "MYSQLPORT": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "3306"
                    },
                    "MYSQLUSER": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "root"
                    },
                    "MYSQL_URL": {
                      "isOptional": false,
                      "description": "Private connection string",
                      "defaultValue": "mysql://${{ MYSQLUSER }}:${{ MYSQL_ROOT_PASSWORD }}@${{ RAILWAY_PRIVATE_DOMAIN }}:3306/${{ MYSQL_DATABASE }}"
                    },
                    "MYSQLDATABASE": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{ MYSQL_DATABASE }}"
                    },
                    "MYSQLPASSWORD": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{ MYSQL_ROOT_PASSWORD }}"
                    },
                    "MYSQL_DATABASE": {
                      "isOptional": false,
                      "description": "Database created on first boot",
                      "defaultValue": "railway"
                    },
                    "MYSQL_ROOT_PASSWORD": {
                      "isOptional": false,
                      "description": "Superuser password, read by the server",
                      "defaultValue": "{{MYSQL_ROOT_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "9f253090-2c30-4f3e-9f33-699fdde604c6": {
                      "mountPath": "/var/lib/mysql"
                    }
                  }
                },
                "a55da1d8-8063-49f8-9332-aa98e1e886f4": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/glpi.svg",
                  "name": "glpi",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/glpi-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "TZ": {
                      "isOptional": true,
                      "description": "Server timezone, also PHP's date.timezone",
                      "defaultValue": "UTC"
                    },
                    "PORT": {
                      "isOptional": false,
                      "description": "Apache listening port",
                      "defaultValue": "8080"
                    },
                    "GLPI_DB_NAME": {
                      "isOptional": false,
                      "description": "Schema GLPI owns",
                      "defaultValue": "glpi"
                    },
                    "GLPI_DB_USER": {
                      "isOptional": false,
                      "description": "Scoped role GLPI connects as",
                      "defaultValue": "glpi"
                    },
                    "GLPI_URL_BASE": {
                      "isOptional": false,
                      "description": "Public base URL for links and API",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "GLPI_CACHE_DSN": {
                      "isOptional": true,
                      "description": "Redis application cache",
                      "defaultValue": "${{Redis.REDIS_URL}}"
                    },
                    "RAILWAY_RUN_UID": {
                      "isOptional": false,
                      "description": "Start as root to take the volume, then drop",
                      "defaultValue": "0"
                    },
                    "GLPI_DB_PASSWORD": {
                      "isOptional": false,
                      "description": "Password for that scoped role",
                      "defaultValue": "{{GLPI_DB_PASSWORD}}"
                    },
                    "GLPI_DB_ADMIN_URL": {
                      "isOptional": false,
                      "description": "Used once to create schema and role",
                      "defaultValue": "${{MySQL.MYSQL_URL}}"
                    },
                    "GLPI_ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "Initial password for the glpi super-admin",
                      "defaultValue": "{{GLPI_ADMIN_PASSWORD}}"
                    },
                    "GLPI_CRONTAB_ENABLED": {
                      "isOptional": true,
                      "description": "Run GLPI's scheduled-task worker",
                      "defaultValue": "1"
                    },
                    "GLPI_DEMO_DASHBOARDS": {
                      "isOptional": true,
                      "description": "Hide GLPI's sample dashboard figures",
                      "defaultValue": "0"
                    },
                    "RAILWAY_HEALTHCHECK_TIMEOUT_SEC": {
                      "isOptional": false,
                      "description": "First boot installs the schema",
                      "defaultValue": "600"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "a55da1d8-8063-49f8-9332-aa98e1e886f4": {
                      "mountPath": "/var/glpi"
                    }
                  }
                },
                "e1c055f5-82c5-4dee-8194-900610dc0f2c": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/redis.svg",
                  "name": "Redis",
                  "deploy": {
                    "startCommand": "/bin/sh -c \"rm -rf $RAILWAY_VOLUME_MOUNT_PATH/lost+found/ && exec docker-entrypoint.sh redis-server --requirepass $REDIS_PASSWORD --save 60 1 --dir $RAILWAY_VOLUME_MOUNT_PATH\"",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "redis:8.2"
                  },
                  "variables": {
                    "REDISHOST": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REDISPORT": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "6379"
                    },
                    "REDISUSER": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "default"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Private connection string",
                      "defaultValue": "redis://${{ REDISUSER }}:${{ REDIS_PASSWORD }}@${{ REDISHOST }}:${{ REDISPORT }}"
                    },
                    "REDISPASSWORD": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{REDIS_PASSWORD}}"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Auth password, read by the server",
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "e1c055f5-82c5-4dee-8194-900610dc0f2c": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "glpi",
      "method": "GET",
      "path": "/healthz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 3,
    "needs_volume": true
  },
  "generated_at": "2026-09-15T10:14:39.124Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-15T07:09:58.447Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_adfc07a4fe8444269086",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 122,
    "typical_build_seconds": 54,
    "typical_start_seconds": 50,
    "slowest_service": "glpi"
  }
}
