{
  "manifest_version": "1.0.0",
  "template": {
    "id": "2cb8f9bd-e472-4647-b86d-c8da77fb368c",
    "slug": "hBFwO4",
    "name": "Serverless Redis | Open Source Upstash Alternative with REST API",
    "description": "Redis behind an HTTP REST API — drop-in for @upstash/redis",
    "url": "https://railway.com/deploy/hBFwO4",
    "upstream": {
      "image": "ghcr.io/ikatsuba/serverless-redis:2.2.1"
    }
  },
  "services": [
    {
      "name": "http",
      "source": {
        "image": "ghcr.io/ikatsuba/serverless-redis:2.2.1"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "Redis",
      "source": {
        "image": "redis/redis-stack:7.4.0-v8"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "HOST",
      "service": "http",
      "description": "Provide a value for HOST.",
      "secret": false,
      "strategy": "default",
      "default": "::"
    },
    {
      "key": "PORT",
      "service": "http",
      "description": "Port",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "SR_TOKEN",
      "service": "http",
      "description": "Super secret token",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "REDIS_URL",
      "service": "http",
      "description": "Private Redis URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PUBLIC_URL",
      "service": "http",
      "description": "Public URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "PRIVATE_URL",
      "service": "http",
      "description": "Private URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "SR_IDLE_TIMEOUT_MS",
      "service": "http",
      "description": "Provide a value for SR_IDLE_TIMEOUT_MS.",
      "secret": false,
      "strategy": "default",
      "default": "300000"
    },
    {
      "key": "ENABLE_ALPINE_PRIVATE_NETWORKING",
      "service": "http",
      "description": "Provide a value for ENABLE_ALPINE_PRIVATE_NETWORKING.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "REDISHOST",
      "service": "Redis",
      "description": "Private host of Redis, reachable from other services in this project.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISPORT",
      "service": "Redis",
      "description": "Redis port.",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "REDISUSER",
      "service": "Redis",
      "description": "Provide a value for REDISUSER.",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "REDIS_URL",
      "service": "Redis",
      "description": "Redis connection string over the private network.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDIS_ARGS",
      "service": "Redis",
      "description": "Arguments passed to the Redis server. Sets the password and enables the append-only file, so writes survive a redeploy.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDISPASSWORD",
      "service": "Redis",
      "description": "Provide a value for REDISPASSWORD.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "Redis",
      "description": "Redis password. Generated per deployment and applied through REDIS_ARGS.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "Redis",
      "description": "Provide a value for RAILWAY_RUN_UID.",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "REDIS_PRIVATE_URL",
      "service": "Redis",
      "description": "Provide a value for REDIS_PRIVATE_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "RAILWAY_RUN_AS_ROOT",
      "service": "Redis",
      "description": "Provide a value for RAILWAY_RUN_AS_ROOT.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "hBFwO4"
      }
    },
    "cli": "railway deploy --template hBFwO4",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "2cb8f9bd-e472-4647-b86d-c8da77fb368c",
            "serializedConfig": {
              "services": {
                "2722fcf1-a71b-424a-9eae-671bda4487dc": {
                  "name": "http",
                  "source": {
                    "image": "ghcr.io/ikatsuba/serverless-redis:2.2.1"
                  },
                  "variables": {
                    "HOST": {
                      "isOptional": false,
                      "defaultValue": "::"
                    },
                    "PORT": {
                      "isOptional": false,
                      "description": "Port",
                      "defaultValue": "8080"
                    },
                    "SR_TOKEN": {
                      "description": "Super secret token",
                      "defaultValue": "{{SR_TOKEN}}"
                    },
                    "REDIS_URL": {
                      "description": "Private Redis URL",
                      "defaultValue": "${{Redis.REDIS_PRIVATE_URL}}?family=0"
                    },
                    "PUBLIC_URL": {
                      "isOptional": false,
                      "description": "Public URL",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "PRIVATE_URL": {
                      "isOptional": false,
                      "description": "Private URL",
                      "defaultValue": "http://${{RAILWAY_PRIVATE_DOMAIN}}:${{PORT}}"
                    },
                    "SR_IDLE_TIMEOUT_MS": {
                      "defaultValue": "300000"
                    },
                    "ENABLE_ALPINE_PRIVATE_NETWORKING": {
                      "defaultValue": "true"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  }
                },
                "307a6c61-8e7e-42b8-8504-d8ca7af4d0d6": {
                  "icon": "https://devicons.railway.app/i/redis.svg",
                  "name": "Redis",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null
                  },
                  "source": {
                    "image": "redis/redis-stack:7.4.0-v8"
                  },
                  "variables": {
                    "REDISHOST": {
                      "isOptional": false,
                      "description": "Private host of Redis, reachable from other services in this project.",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REDISPORT": {
                      "isOptional": false,
                      "description": "Redis port.",
                      "defaultValue": "6379"
                    },
                    "REDISUSER": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "default"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Redis connection string over the private network.",
                      "defaultValue": "redis://default:${{REDIS_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:6379"
                    },
                    "REDIS_ARGS": {
                      "isOptional": false,
                      "description": "Arguments passed to the Redis server. Sets the password and enables the append-only file, so writes survive a redeploy.",
                      "defaultValue": "--requirepass ${{REDIS_PASSWORD}} --appendonly yes"
                    },
                    "REDISPASSWORD": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "${{Redis.REDIS_PASSWORD}}"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Redis password. Generated per deployment and applied through REDIS_ARGS.",
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    },
                    "RAILWAY_RUN_UID": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "0"
                    },
                    "REDIS_PRIVATE_URL": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "redis://default:${{REDIS_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:6379"
                    },
                    "RAILWAY_RUN_AS_ROOT": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "true"
                    }
                  },
                  "volumeMounts": {
                    "307a6c61-8e7e-42b8-8504-d8ca7af4d0d6": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-19T10:14:38.021Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-19T05:03:41.036Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_6ccee5d9a43040849d15",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 43,
    "typical_build_seconds": 0,
    "typical_start_seconds": 10,
    "slowest_service": "http"
  }
}
