{
  "manifest_version": "1.0.0",
  "template": {
    "id": "2b48a488-7f36-428a-b240-1fa1777e9852",
    "slug": "rustfs-2",
    "name": "RustFS",
    "description": "RustFS 1.0 S3-compatible object storage in Rust with a web console.",
    "url": "https://railway.com/deploy/rustfs-2",
    "upstream": {
      "image": "rustfs/rustfs:1.0.0"
    }
  },
  "services": [
    {
      "name": "rustfs",
      "source": {
        "image": "rustfs/rustfs:1.0.0"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "rustfs",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "9000"
    },
    {
      "key": "S3_ENDPOINT",
      "service": "rustfs",
      "description": "Provide a value for S3_ENDPOINT.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "RUSTFS_ADDRESS",
      "service": "rustfs",
      "description": "Provide a value for RUSTFS_ADDRESS.",
      "secret": false,
      "strategy": "default",
      "default": "[::]:9000"
    },
    {
      "key": "RUSTFS_VOLUMES",
      "service": "rustfs",
      "description": "Provide a value for RUSTFS_VOLUMES.",
      "secret": false,
      "strategy": "default",
      "default": "/data"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "rustfs",
      "description": "Provide a value for RAILWAY_RUN_UID.",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "RUSTFS_ACCESS_KEY",
      "service": "rustfs",
      "description": "Provide a value for RUSTFS_ACCESS_KEY.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "RUSTFS_SECRET_KEY",
      "service": "rustfs",
      "description": "Provide a value for RUSTFS_SECRET_KEY.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "S3_PRIVATE_ENDPOINT",
      "service": "rustfs",
      "description": "Provide a value for S3_PRIVATE_ENDPOINT.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "RUSTFS_CONSOLE_ENABLE",
      "service": "rustfs",
      "description": "Provide a value for RUSTFS_CONSOLE_ENABLE.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "RUSTFS_CONSOLE_ADDRESS",
      "service": "rustfs",
      "description": "Provide a value for RUSTFS_CONSOLE_ADDRESS.",
      "secret": false,
      "strategy": "default",
      "default": "[::]:9001"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "rustfs",
      "description": "Provide a value for RAILWAY_DEPLOYMENT_DRAINING_SECONDS.",
      "secret": false,
      "strategy": "default",
      "default": "30"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "rustfs-2"
      }
    },
    "cli": "railway deploy --template rustfs-2",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "2b48a488-7f36-428a-b240-1fa1777e9852",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "c8f746c6-8836-4708-92d7-0116bd0892c7": {
                  "icon": "https://github.com/rustfs.png",
                  "name": "rustfs",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "rustfs/rustfs:1.0.0"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "defaultValue": "9000"
                    },
                    "S3_ENDPOINT": {
                      "isOptional": false,
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "RUSTFS_ADDRESS": {
                      "isOptional": false,
                      "defaultValue": "[::]:9000"
                    },
                    "RUSTFS_VOLUMES": {
                      "isOptional": false,
                      "defaultValue": "/data"
                    },
                    "RAILWAY_RUN_UID": {
                      "isOptional": false,
                      "defaultValue": "0"
                    },
                    "RUSTFS_ACCESS_KEY": {
                      "isOptional": false,
                      "defaultValue": "{{RUSTFS_ACCESS_KEY}}"
                    },
                    "RUSTFS_SECRET_KEY": {
                      "isOptional": false,
                      "defaultValue": "{{RUSTFS_SECRET_KEY}}"
                    },
                    "S3_PRIVATE_ENDPOINT": {
                      "isOptional": false,
                      "defaultValue": "http://${{RAILWAY_PRIVATE_DOMAIN}}:9000"
                    },
                    "RUSTFS_CONSOLE_ENABLE": {
                      "isOptional": false,
                      "defaultValue": "true"
                    },
                    "RUSTFS_CONSOLE_ADDRESS": {
                      "isOptional": false,
                      "defaultValue": "[::]:9001"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "defaultValue": "30"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:9000": {
                        "port": 9000
                      },
                      "<hasDomain>:9001": {
                        "port": 9001
                      }
                    }
                  },
                  "volumeMounts": {
                    "c8f746c6-8836-4708-92d7-0116bd0892c7": {
                      "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-25T04:14:47.205Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-24T07:49:29.598Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_b784c4bc05684d8896e9",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 86,
    "typical_build_seconds": 0,
    "typical_start_seconds": 10,
    "slowest_service": "rustfs"
  }
}
