{
  "manifest_version": "1.0.0",
  "template": {
    "id": "47b9d971-ad6a-42d5-bf23-31ec2d20692d",
    "slug": "rustfs-1",
    "name": "RustFS",
    "description": "High-performance, S3 compatible, secure and reliable storage system",
    "url": "https://railway.com/deploy/rustfs-1",
    "upstream": {
      "image": "rustfs/rustfs"
    }
  },
  "services": [
    {
      "name": "rustfs",
      "source": {
        "image": "rustfs/rustfs"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "rustfs",
      "description": "Explicitly defined API port for Railway health-checks",
      "secret": false,
      "strategy": "default",
      "default": "9000"
    },
    {
      "key": "RUSTFS_ADDRESS",
      "service": "rustfs",
      "description": "Port on which RustFS exposes the API",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "rustfs",
      "description": "User ID so container has access to Railway volume",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "RUSTFS_ACCESS_KEY",
      "service": "rustfs",
      "description": "Console username and S3 Access Key ID",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "RUSTFS_SECRET_KEY",
      "service": "rustfs",
      "description": "Console password and S3 Secret Access key",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "RUSTFS_CONSOLE_ENABLE",
      "service": "rustfs",
      "description": "Enable or disable console",
      "secret": false,
      "strategy": "default",
      "default": "true"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "rustfs-1"
      }
    },
    "cli": "railway deploy --template rustfs-1",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "47b9d971-ad6a-42d5-bf23-31ec2d20692d",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "2e6d6d22-bf5e-461e-bb44-8365be0e5d57": {
                  "icon": "https://rustfs.com/favicon-32x32.png",
                  "name": "rustfs",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "rustfs/rustfs"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Explicitly defined API port for Railway health-checks",
                      "defaultValue": "9000"
                    },
                    "RUSTFS_ADDRESS": {
                      "isOptional": false,
                      "description": "Port on which RustFS exposes the API",
                      "defaultValue": ":${{PORT}}"
                    },
                    "RAILWAY_RUN_UID": {
                      "isOptional": false,
                      "description": "User ID so container has access to Railway volume",
                      "defaultValue": "0"
                    },
                    "RUSTFS_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "Console username and S3 Access Key ID",
                      "defaultValue": "{{RUSTFS_ACCESS_KEY}}"
                    },
                    "RUSTFS_SECRET_KEY": {
                      "isOptional": false,
                      "description": "Console password and S3 Secret Access key",
                      "defaultValue": "{{RUSTFS_SECRET_KEY}}"
                    },
                    "RUSTFS_CONSOLE_ENABLE": {
                      "isOptional": false,
                      "description": "Enable or disable console",
                      "defaultValue": "true"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:9001": {
                        "port": 9001
                      }
                    }
                  },
                  "volumeMounts": {
                    "2e6d6d22-bf5e-461e-bb44-8365be0e5d57": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "rustfs",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T16:14:49.616Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-18T16:39:45.589Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_7b99b0f0fd084c979cf6",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 105,
    "typical_build_seconds": 0,
    "typical_start_seconds": 2,
    "slowest_service": "rustfs"
  }
}
