{
  "manifest_version": "1.0.0",
  "template": {
    "id": "31a22052-efe5-4355-9e7a-d92785db21df",
    "slug": "checkcle-1",
    "name": "CheckCle",
    "description": "Deploy CheckCle with durable storage and generated admin credentials.",
    "url": "https://railway.com/deploy/checkcle-1",
    "upstream": {
      "repo_url": "https://github.com/monotykamary/railway-template-checkcle"
    }
  },
  "services": [
    {
      "name": "checkcle",
      "source": {
        "repo": "https://github.com/monotykamary/railway-template-checkcle"
      },
      "needs_volume": true,
      "volume_mount_path": "/mnt/pb_data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "CHECKCLE_ADMIN_EMAIL",
      "service": "checkcle",
      "description": "Email address for the initial CheckCle administrator.",
      "secret": false,
      "strategy": "default",
      "default": "admin@example.com"
    },
    {
      "key": "CHECKCLE_ADMIN_PASSWORD",
      "service": "checkcle",
      "description": "Generated password for the initial CheckCle administrator. Rotate it after first login.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "CHECKCLE_ENCRYPTION_KEY",
      "service": "checkcle",
      "description": "Generated key used to encrypt PocketBase settings. Do not change it after data is written.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "checkcle-1"
      }
    },
    "cli": "railway deploy --template checkcle-1",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "31a22052-efe5-4355-9e7a-d92785db21df",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "e17a199d-ba1f-4399-958f-6607c9261f0c": {
                  "icon": "https://raw.githubusercontent.com/monotykamary/railway-template-checkcle/bac33b61c802df97f93bcf41ce31648174d834c2/assets/checkcle-icon.png",
                  "name": "checkcle",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/api/health",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 300,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/monotykamary/railway-template-checkcle",
                    "rootDirectory": null
                  },
                  "variables": {
                    "CHECKCLE_ADMIN_EMAIL": {
                      "isOptional": false,
                      "description": "Email address for the initial CheckCle administrator.",
                      "defaultValue": "admin@example.com"
                    },
                    "CHECKCLE_ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated password for the initial CheckCle administrator. Rotate it after first login.",
                      "defaultValue": "{{CHECKCLE_ADMIN_PASSWORD}}"
                    },
                    "CHECKCLE_ENCRYPTION_KEY": {
                      "isOptional": false,
                      "description": "Generated key used to encrypt PocketBase settings. Do not change it after data is written.",
                      "defaultValue": "{{CHECKCLE_ENCRYPTION_KEY}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "e17a199d-ba1f-4399-958f-6607c9261f0c": {
                      "mountPath": "/mnt/pb_data",
                      "backupSchedules": [
                        "DAILY"
                      ]
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "checkcle",
      "method": "GET",
      "path": "/api/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T16:14:52.212Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-10T18:48:58.035Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_8bd4c3ba2011444d8acd",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 156,
    "typical_build_seconds": 30,
    "typical_start_seconds": 11,
    "slowest_service": "checkcle"
  }
}
