{
  "manifest_version": "1.0.0",
  "template": {
    "id": "ccf19cd1-e292-49ac-9d33-8d279340de8f",
    "slug": "scylla-db",
    "name": "scylla-db",
    "description": "Cassandra-compatible ScyllaDB for Railway with volume and private CQL.",
    "url": "https://railway.com/deploy/scylla-db",
    "upstream": {
      "image": "ghcr.io/marco-quintella/scylladb-railway:latest"
    }
  },
  "services": [
    {
      "name": "scylladb",
      "source": {
        "image": "ghcr.io/marco-quintella/scylladb-railway:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/scylla",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "MEM",
      "service": "scylladb",
      "description": "Memory limit",
      "secret": false,
      "strategy": "default",
      "default": "2G"
    },
    {
      "key": "SMP",
      "service": "scylladb",
      "description": "CPU cores for ScyllaDB",
      "secret": false,
      "strategy": "default",
      "default": "2"
    },
    {
      "key": "SEEDS",
      "service": "scylladb",
      "description": "Seed nodes for cluster formation",
      "secret": false,
      "strategy": "default",
      "default": "::"
    },
    {
      "key": "API_ADDR",
      "service": "scylladb",
      "description": "REST API listen address",
      "secret": false,
      "strategy": "default",
      "default": "::"
    },
    {
      "key": "OVERPROV",
      "service": "scylladb",
      "description": "Overprovisioned mode (required in containers)",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "LISTEN_ADDR",
      "service": "scylladb",
      "description": "CQL listen address",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SCYLLA_HOST",
      "service": "scylladb",
      "description": "Public hostname of the ScyllaDB service. Enable TCP Proxy for external CQL access.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "SCYLLA_PORT",
      "service": "scylladb",
      "description": "CQL port on the private network (default 9042).",
      "secret": false,
      "strategy": "default",
      "default": "9042"
    },
    {
      "key": "AUTH_SUPERUSER_NAME",
      "service": "scylladb",
      "description": "Superuser username",
      "secret": false,
      "strategy": "default",
      "default": "cassandra"
    },
    {
      "key": "SCYLLA_PRIVATE_HOST",
      "service": "scylladb",
      "description": "Private network hostname for CQL connections from other Railway services in the same project.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "SCYLLA_PRIVATE_PORT",
      "service": "scylladb",
      "description": "CQL port on the public network (default 9042).",
      "secret": false,
      "strategy": "default",
      "default": "9042"
    },
    {
      "key": "AUTH_SUPERUSER_SHA512_PASSWORD",
      "service": "scylladb",
      "description": "SHA-512 hash of the superuser password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "scylla-db"
      }
    },
    "cli": "railway deploy --template scylla-db",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "ccf19cd1-e292-49ac-9d33-8d279340de8f",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "c2b9759f-09e1-4e54-a1fa-681f493125d6": {
                  "icon": "https://cdn.simpleicons.org/scylladb/53CADD.svg",
                  "name": "scylladb",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/storage_service/release_version",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/marco-quintella/scylladb-railway:latest"
                  },
                  "variables": {
                    "MEM": {
                      "isOptional": false,
                      "description": "Memory limit",
                      "defaultValue": "2G"
                    },
                    "SMP": {
                      "isOptional": false,
                      "description": "CPU cores for ScyllaDB",
                      "defaultValue": "2"
                    },
                    "SEEDS": {
                      "isOptional": false,
                      "description": "Seed nodes for cluster formation",
                      "defaultValue": "::"
                    },
                    "API_ADDR": {
                      "isOptional": false,
                      "description": "REST API listen address",
                      "defaultValue": "::"
                    },
                    "OVERPROV": {
                      "isOptional": false,
                      "description": "Overprovisioned mode (required in containers)",
                      "defaultValue": "1"
                    },
                    "LISTEN_ADDR": {
                      "isOptional": false,
                      "description": "CQL listen address",
                      "defaultValue": "${{scylladb.API_ADDR}}"
                    },
                    "SCYLLA_HOST": {
                      "isOptional": true,
                      "description": "Public hostname of the ScyllaDB service. Enable TCP Proxy for external CQL access.",
                      "defaultValue": "${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "SCYLLA_PORT": {
                      "isOptional": true,
                      "description": "CQL port on the private network (default 9042).",
                      "defaultValue": "9042"
                    },
                    "SCYLLA_USER": {
                      "isOptional": true,
                      "description": "CQL username for authenticated connections (matches AUTH_SUPERUSER_NAME).",
                      "defaultValue": ""
                    },
                    "SCYLLA_PASSWORD": {
                      "isOptional": true,
                      "description": "CQL password for authenticated connections. Must match the password hashed in AUTH_SUPERUSER_SHA512_PASSWORD.",
                      "defaultValue": ""
                    },
                    "AUTH_SUPERUSER_NAME": {
                      "isOptional": false,
                      "description": "Superuser username",
                      "defaultValue": "cassandra"
                    },
                    "SCYLLA_PRIVATE_HOST": {
                      "isOptional": false,
                      "description": "Private network hostname for CQL connections from other Railway services in the same project.",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "SCYLLA_PRIVATE_PORT": {
                      "isOptional": false,
                      "description": "CQL port on the public network (default 9042).",
                      "defaultValue": "9042"
                    },
                    "AUTH_SUPERUSER_SHA512_PASSWORD": {
                      "isOptional": false,
                      "description": "SHA-512 hash of the superuser password",
                      "defaultValue": "{{AUTH_SUPERUSER_SHA512_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "c2b9759f-09e1-4e54-a1fa-681f493125d6": {
                      "mountPath": "/var/lib/scylla"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "scylladb",
      "method": "GET",
      "path": "/storage_service/release_version",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T16:14:52.212Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-09T03:48:52.585Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_e34e5651bf4f4b30b1a9",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": false,
        "detail": "FAILED"
      }
    ]
  }
}
