{
  "manifest_version": "1.0.0",
  "template": {
    "id": "f9bd96f4-1115-4e80-ad27-f20ddc1df44a",
    "slug": "meshcentral",
    "name": "MeshCentral",
    "description": "Remote device management with durable state",
    "url": "https://railway.com/deploy/meshcentral",
    "upstream": {
      "repo_url": "https://github.com/monotykamary/railway-template-meshcentral"
    }
  },
  "services": [
    {
      "name": "meshcentral",
      "source": {
        "repo": "https://github.com/monotykamary/railway-template-meshcentral"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "meshcentral",
      "description": "Internal HTTP port behind Railway HTTPS.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "MESHCENTRAL_HOSTNAME",
      "service": "meshcentral",
      "description": "Canonical public MeshCentral hostname.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "MESHCENTRAL_ADMIN_USER",
      "service": "meshcentral",
      "description": "Initial full administrator username.",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "MESHCENTRAL_ADMIN_EMAIL",
      "service": "meshcentral",
      "description": "Initial full administrator email.",
      "secret": false,
      "strategy": "default",
      "default": "admin@example.com"
    },
    {
      "key": "MESHCENTRAL_SESSION_KEY",
      "service": "meshcentral",
      "description": "Stable key used to secure server sessions.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "MESHCENTRAL_ADMIN_PASSWORD",
      "service": "meshcentral",
      "description": "Generated full administrator password.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "meshcentral"
      }
    },
    "cli": "railway deploy --template meshcentral",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "f9bd96f4-1115-4e80-ad27-f20ddc1df44a",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "cb9a6c65-5d5f-47bf-975f-ce18facd3759": {
                  "icon": "https://raw.githubusercontent.com/monotykamary/railway-template-meshcentral/2bf25d958e5f82c3eb047d81316c213779b8c369/assets/meshcentral-icon.png",
                  "name": "meshcentral",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/health.ashx",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 300,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/monotykamary/railway-template-meshcentral",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Internal HTTP port behind Railway HTTPS.",
                      "defaultValue": "8080"
                    },
                    "MESHCENTRAL_HOSTNAME": {
                      "isOptional": false,
                      "description": "Canonical public MeshCentral hostname.",
                      "defaultValue": "${{meshcentral.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "MESHCENTRAL_ADMIN_USER": {
                      "isOptional": false,
                      "description": "Initial full administrator username.",
                      "defaultValue": "admin"
                    },
                    "MESHCENTRAL_ADMIN_EMAIL": {
                      "isOptional": false,
                      "description": "Initial full administrator email.",
                      "defaultValue": "admin@example.com"
                    },
                    "MESHCENTRAL_SESSION_KEY": {
                      "isOptional": false,
                      "description": "Stable key used to secure server sessions.",
                      "defaultValue": "{{MESHCENTRAL_SESSION_KEY}}"
                    },
                    "MESHCENTRAL_ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated full administrator password.",
                      "defaultValue": "{{MESHCENTRAL_ADMIN_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "cb9a6c65-5d5f-47bf-975f-ce18facd3759": {
                      "mountPath": "/data",
                      "backupSchedules": [
                        "DAILY"
                      ]
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "meshcentral",
      "method": "GET",
      "path": "/health.ashx",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T10:14:45.332Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-06T12:06:35.171Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_4219d034942440f6b79e",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 112,
    "typical_build_seconds": 20,
    "typical_start_seconds": 40,
    "slowest_service": "meshcentral"
  }
}
