{
  "manifest_version": "1.0.0",
  "template": {
    "id": "cec882a7-13f0-4aa2-bb4b-d7bf0185f921",
    "slug": "cap-1",
    "name": "Cap",
    "description": "The self-hosted CAPTCHA for the modern web. Official template for Railway.",
    "url": "https://railway.com/deploy/cap-1",
    "upstream": {
      "image": "tiago2/cap:3"
    }
  },
  "services": [
    {
      "name": "Cap",
      "source": {
        "image": "tiago2/cap:3"
      },
      "needs_volume": true,
      "volume_mount_path": "/usr/src/app/data",
      "http": true
    },
    {
      "name": "Valkey",
      "source": {
        "image": "valkey/valkey:9-alpine"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "ADMIN_KEY",
      "service": "Cap",
      "description": "Your admin panel's key",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "REDIS_URL",
      "service": "Cap",
      "description": "Internal Redis/Valkey DB url",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "RATELIMIT_IP_HEADER",
      "service": "Cap",
      "description": "Header used for IP-based ratelimiting",
      "secret": false,
      "strategy": "default",
      "default": "x-forwarded-for"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "cap-1"
      }
    },
    "cli": "railway deploy --template cap-1",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "cec882a7-13f0-4aa2-bb4b-d7bf0185f921",
            "serializedConfig": {
              "services": {
                "872da457-b476-4143-95e8-7bb1470b5f11": {
                  "icon": "https://trycap.dev/logo.png",
                  "name": "Cap",
                  "deploy": {
                    "healthcheckPath": "/"
                  },
                  "source": {
                    "image": "tiago2/cap:3"
                  },
                  "variables": {
                    "ADMIN_KEY": {
                      "isOptional": false,
                      "description": "Your admin panel's key",
                      "defaultValue": "{{ADMIN_KEY}}"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Internal Redis/Valkey DB url",
                      "defaultValue": "redis://${{Valkey.RAILWAY_PRIVATE_DOMAIN}}:6379"
                    },
                    "RATELIMIT_IP_HEADER": {
                      "isOptional": true,
                      "description": "Header used for IP-based ratelimiting",
                      "defaultValue": "x-forwarded-for"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:3000": {
                        "port": 3000
                      }
                    }
                  },
                  "volumeMounts": {
                    "872da457-b476-4143-95e8-7bb1470b5f11": {
                      "mountPath": "/usr/src/app/data",
                      "backupSchedules": [
                        "DAILY"
                      ]
                    }
                  }
                },
                "976b16c5-8ad2-40cb-9948-b3f12825a6d3": {
                  "icon": "https://devicons.railway.app/redis",
                  "name": "Valkey",
                  "deploy": {
                    "startCommand": "valkey-server --save 60 1 --maxmemory-policy noeviction --loglevel warning"
                  },
                  "source": {
                    "image": "valkey/valkey:9-alpine"
                  },
                  "volumeMounts": {
                    "976b16c5-8ad2-40cb-9948-b3f12825a6d3": {
                      "mountPath": "/data",
                      "backupSchedules": null
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Cap",
      "method": "GET",
      "path": "/",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-14T22:14:43.073Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-13T12:13:49.980Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_876367dc381740bcbbb7",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": false,
        "detail": "FAILED,SUCCESS"
      }
    ]
  }
}
