{
  "manifest_version": "1.0.0",
  "template": {
    "id": "b3467da9-36c8-46af-87fc-04e4fa4fb170",
    "slug": "garnet",
    "name": "Garnet",
    "description": "Microsoft Garnet 2.1 Redis-compatible cache with auth and durable storage.",
    "url": "https://railway.com/deploy/garnet",
    "upstream": {
      "image": "ghcr.io/microsoft/garnet:2.1.8"
    }
  },
  "services": [
    {
      "name": "garnet",
      "source": {
        "image": "ghcr.io/microsoft/garnet:2.1.8"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "tcp_ports": [
        6379
      ],
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "REDIS_URL",
      "service": "garnet",
      "description": "Provide a value for REDIS_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "GARNET_INDEX",
      "service": "garnet",
      "description": "Provide a value for GARNET_INDEX.",
      "secret": false,
      "strategy": "default",
      "default": "64m"
    },
    {
      "key": "GARNET_MEMORY",
      "service": "garnet",
      "description": "Provide a value for GARNET_MEMORY.",
      "secret": false,
      "strategy": "default",
      "default": "512m"
    },
    {
      "key": "GARNET_PASSWORD",
      "service": "garnet",
      "description": "Provide a value for GARNET_PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "garnet",
      "description": "Provide a value for RAILWAY_RUN_UID.",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "REDIS_PUBLIC_URL",
      "service": "garnet",
      "description": "Provide a value for REDIS_PUBLIC_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "garnet",
      "description": "Provide a value for RAILWAY_DEPLOYMENT_DRAINING_SECONDS.",
      "secret": false,
      "strategy": "default",
      "default": "20"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "garnet"
      }
    },
    "cli": "railway deploy --template garnet",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "b3467da9-36c8-46af-87fc-04e4fa4fb170",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "50bfbd26-84ba-4ad1-8398-366622147d7c": {
                  "icon": "https://api.nuget.org/v3-flatcontainer/microsoft.garnet/1.0.89/icon",
                  "name": "garnet",
                  "deploy": {
                    "startCommand": "sh -c 'exec /app/GarnetServer --port 6379 --auth Password --password \"$GARNET_PASSWORD\" --memory \"$GARNET_MEMORY\" --index \"$GARNET_INDEX\" --aof --aof-commit-freq 1000 --checkpointdir /data --recover --device-type RandomAccess'",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/microsoft/garnet:2.1.8"
                  },
                  "variables": {
                    "REDIS_URL": {
                      "isOptional": false,
                      "defaultValue": "redis://default:${{GARNET_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:6379"
                    },
                    "GARNET_INDEX": {
                      "isOptional": false,
                      "defaultValue": "64m"
                    },
                    "GARNET_MEMORY": {
                      "isOptional": false,
                      "defaultValue": "512m"
                    },
                    "GARNET_PASSWORD": {
                      "isOptional": false,
                      "defaultValue": "{{GARNET_PASSWORD}}"
                    },
                    "RAILWAY_RUN_UID": {
                      "isOptional": false,
                      "defaultValue": "0"
                    },
                    "REDIS_PUBLIC_URL": {
                      "isOptional": false,
                      "defaultValue": "redis://default:${{GARNET_PASSWORD}}@${{RAILWAY_TCP_PROXY_DOMAIN}}:${{RAILWAY_TCP_PROXY_PORT}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "defaultValue": "20"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "6379": {}
                    }
                  },
                  "volumeMounts": {
                    "50bfbd26-84ba-4ad1-8398-366622147d7c": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "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:51:56.741Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_4221437b31b9432ea919",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 65,
    "typical_build_seconds": 0,
    "typical_start_seconds": 0,
    "slowest_service": "garnet"
  }
}
