{
  "manifest_version": "1.0.0",
  "template": {
    "id": "9b81f140-008c-40f1-afaf-4fb6e346df47",
    "slug": "zfile",
    "name": "ZFile",
    "description": "Deploy and Host ZFile with Railway",
    "url": "https://railway.com/deploy/zfile",
    "upstream": {
      "image": "zhaojun1998/zfile:latest"
    }
  },
  "services": [
    {
      "name": "zhaojun1998/zfile:latest",
      "source": {
        "image": "zhaojun1998/zfile:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/root/.zfile-v4/",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "zhaojun1998/zfile:latest",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "SPRING_PROFILES_ACTIVE",
      "service": "zhaojun1998/zfile:latest",
      "description": "Provide a value for SPRING_PROFILES_ACTIVE.",
      "secret": false,
      "strategy": "default",
      "default": "prod"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "zfile"
      }
    },
    "cli": "railway deploy --template zfile",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "9b81f140-008c-40f1-afaf-4fb6e346df47",
            "serializedConfig": {
              "services": {
                "bc620305-38a3-48a4-8d7f-1947356943a7": {
                  "name": "zhaojun1998/zfile:latest",
                  "source": {
                    "image": "zhaojun1998/zfile:latest"
                  },
                  "variables": {
                    "PORT": {
                      "defaultValue": "8080"
                    },
                    "SPRING_PROFILES_ACTIVE": {
                      "defaultValue": "prod"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "bc620305-38a3-48a4-8d7f-1947356943a7": {
                      "mountPath": "/root/.zfile-v4/"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "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-08T18:50:57.311Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_7db0f03f6e444356abec",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 19,
    "typical_build_seconds": 0,
    "typical_start_seconds": 0,
    "slowest_service": "zhaojun1998/zfile:latest"
  }
}
