{
  "manifest_version": "1.0.0",
  "template": {
    "id": "cccee748-f072-49ef-9340-155f553d0594",
    "slug": "apache-cassandra-or-just-updated-wide-co",
    "name": "Apache Cassandra | (Just Updated) Wide-Column Database, Password On From Boot",
    "description": "Wide-column NoSQL database. Password on from boot, data on a volume.",
    "url": "https://railway.com/deploy/apache-cassandra-or-just-updated-wide-co",
    "upstream": {
      "image": "cassandra:5.0@sha256:8870ec4d9608abe9160a7d09b51a0f0c13c6a95ea0610266ea58eb7d30a144de"
    }
  },
  "services": [
    {
      "name": "cassandra",
      "source": {
        "image": "cassandra:5.0@sha256:8870ec4d9608abe9160a7d09b51a0f0c13c6a95ea0610266ea58eb7d30a144de"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/cassandra",
      "tcp_ports": [
        9042
      ],
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "CASSANDRA_PASSWORD",
      "service": "cassandra",
      "description": "Provide a value for CASSANDRA_PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "CASSANDRA_PUBLIC_HOST",
      "service": "cassandra",
      "description": "Provide a value for CASSANDRA_PUBLIC_HOST.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "CASSANDRA_PUBLIC_PORT",
      "service": "cassandra",
      "description": "Provide a value for CASSANDRA_PUBLIC_PORT.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "CASSANDRA_PRIVATE_HOST",
      "service": "cassandra",
      "description": "Provide a value for CASSANDRA_PRIVATE_HOST.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "apache-cassandra-or-just-updated-wide-co"
      }
    },
    "cli": "railway deploy --template apache-cassandra-or-just-updated-wide-co",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "cccee748-f072-49ef-9340-155f553d0594",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "4f449ff3-76cb-4c1f-8363-93ca5cf13306": {
                  "icon": null,
                  "name": "cassandra",
                  "deploy": {
                    "startCommand": "/bin/sh -c 'set -e; export MAX_HEAP_SIZE=1G HEAP_NEWSIZE=256M JVM_EXTRA_OPTS=-XX:ActiveProcessorCount=2; Y=/etc/cassandra/cassandra.yaml; sed -i -E \"s/^authenticator:.*/authenticator: PasswordAuthenticator/; s/^authorizer:.*/authorizer: CassandraAuthorizer/\" $Y; echo \"[railway] cassandra uid=$(id -u) data_owner=$(stat -c %u:%g /var/lib/cassandra) pids.max=$(cat /sys/fs/cgroup/pids.max 2>/dev/null)\"; SQ=$(printf \"\\047\"); ( for i in $(seq 1 180); do if cqlsh -u cassandra -p \"$CASSANDRA_PASSWORD\" -e \"SELECT now() FROM system.local\" >/dev/null 2>&1; then echo \"[railway] password active\"; break; fi; if cqlsh -u cassandra -p cassandra -e \"ALTER ROLE cassandra WITH PASSWORD = ${SQ}${CASSANDRA_PASSWORD}${SQ}\" >/dev/null 2>&1; then echo \"[railway] default password replaced\"; break; fi; sleep 5; done ) & exec docker-entrypoint.sh cassandra -f'",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "cassandra:5.0@sha256:8870ec4d9608abe9160a7d09b51a0f0c13c6a95ea0610266ea58eb7d30a144de"
                  },
                  "variables": {
                    "CASSANDRA_PASSWORD": {
                      "isOptional": false,
                      "defaultValue": "{{CASSANDRA_PASSWORD}}"
                    },
                    "CASSANDRA_PUBLIC_HOST": {
                      "isOptional": false,
                      "defaultValue": "${{RAILWAY_TCP_PROXY_DOMAIN}}"
                    },
                    "CASSANDRA_PUBLIC_PORT": {
                      "isOptional": false,
                      "defaultValue": "${{RAILWAY_TCP_PROXY_PORT}}"
                    },
                    "CASSANDRA_PRIVATE_HOST": {
                      "isOptional": false,
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "9042": {}
                    }
                  },
                  "volumeMounts": {
                    "4f449ff3-76cb-4c1f-8363-93ca5cf13306": {
                      "mountPath": "/var/lib/cassandra"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "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-18T11:22:25.014Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_1c4d5452c07a42e6b7fc",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 17,
    "typical_build_seconds": 0,
    "typical_start_seconds": 0,
    "slowest_service": "cassandra"
  }
}
