{
  "manifest_version": "1.0.0",
  "template": {
    "id": "008a09b0-4a20-4090-84e8-f6e3de31bae0",
    "slug": "rustfs-or-just-updated-s3-object-store-p",
    "name": "RustFS | (Just Updated) S3 Object Store, Public URL and Keys Set",
    "description": "S3-compatible object store, keys and public URL preset, volume kept",
    "url": "https://railway.com/deploy/rustfs-or-just-updated-s3-object-store-p",
    "upstream": {
      "image": "rustfs/rustfs:1.0.1@sha256:1803faef57627e2d9c2e7d89d655d712ddded5389040054987163043fecb6a3c"
    }
  },
  "services": [
    {
      "name": "rustfs",
      "source": {
        "image": "rustfs/rustfs:1.0.1@sha256:1803faef57627e2d9c2e7d89d655d712ddded5389040054987163043fecb6a3c"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "S3_ENDPOINT",
      "service": "rustfs",
      "description": "Provide a value for S3_ENDPOINT.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "rustfs",
      "description": "Provide a value for RAILWAY_RUN_UID.",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "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"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "rustfs-or-just-updated-s3-object-store-p"
      }
    },
    "cli": "railway deploy --template rustfs-or-just-updated-s3-object-store-p",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "008a09b0-4a20-4090-84e8-f6e3de31bae0",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "ee7ced2e-0a3b-4cd2-9522-65267c0f0432": {
                  "icon": null,
                  "name": "rustfs",
                  "deploy": {
                    "startCommand": "/bin/sh -c 'set -e; D=/data/rustfs_data; mkdir -p $D /logs; export RUSTFS_ADDRESS=0.0.0.0:${PORT:-8080} RUSTFS_CONSOLE_ADDRESS=0.0.0.0:9001 RUSTFS_CONSOLE_ENABLE=true; echo \"[railway] s3 on :${PORT:-8080} uid=$(id -u) owner=$(stat -c %u:%g $D) writable=$(test -w $D && echo yes || echo no)\"; exec /usr/bin/rustfs $D'",
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "rustfs/rustfs:1.0.1@sha256:1803faef57627e2d9c2e7d89d655d712ddded5389040054987163043fecb6a3c"
                  },
                  "variables": {
                    "S3_ENDPOINT": {
                      "isOptional": false,
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "RAILWAY_RUN_UID": {
                      "isOptional": false,
                      "defaultValue": "{{RAILWAY_RUN_UID}}"
                    },
                    "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}}:8080"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "ee7ced2e-0a3b-4cd2-9522-65267c0f0432": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "rustfs",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-10-30T04:14:55.026Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-10-19T15:09:50.462Z",
  "success_rate_30d": 0.6667,
  "validation": {
    "last_run_id": "run_ead79e36fc3b4e7180ff",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 66,
    "typical_build_seconds": 0,
    "typical_start_seconds": 12,
    "slowest_service": "rustfs"
  }
}
