{
  "manifest_version": "1.0.0",
  "template": {
    "id": "3929e42d-42f7-482e-84de-4b8457bdce44",
    "slug": "cube",
    "name": "Cube",
    "description": "Define your business metrics once and query them from any tool",
    "url": "https://railway.com/deploy/cube",
    "upstream": {
      "repo_url": "https://github.com/gridalpha/cube-railway"
    }
  },
  "services": [
    {
      "name": "cube-refresh-worker",
      "source": {
        "repo": "https://github.com/gridalpha/cube-railway"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "cube-api",
      "source": {
        "repo": "https://github.com/gridalpha/cube-railway"
      },
      "needs_volume": false,
      "tcp_ports": [
        15432
      ],
      "http": true
    },
    {
      "name": "Postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "cubestore",
      "source": {
        "repo": "https://github.com/gridalpha/cube-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/cube/data",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "cube-refresh-worker",
      "description": "Health check target, no public domain",
      "secret": false,
      "strategy": "default",
      "default": "4000"
    },
    {
      "key": "NODE_OPTIONS",
      "service": "cube-refresh-worker",
      "description": "Node heap ceiling for the container",
      "secret": false,
      "strategy": "default",
      "default": "--max-old-space-size=3500"
    },
    {
      "key": "CUBEJS_DB_HOST",
      "service": "cube-refresh-worker",
      "description": "Source database host",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "CUBEJS_DB_NAME",
      "service": "cube-refresh-worker",
      "description": "Source database name",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "CUBEJS_DB_PASS",
      "service": "cube-refresh-worker",
      "description": "Source database password",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "CUBEJS_DB_PORT",
      "service": "cube-refresh-worker",
      "description": "Source database port",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "CUBEJS_DB_TYPE",
      "service": "cube-refresh-worker",
      "description": "Data source driver",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "CUBEJS_DB_USER",
      "service": "cube-refresh-worker",
      "description": "Source database user",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "CUBEJS_DEV_MODE",
      "service": "cube-refresh-worker",
      "description": "Keeps token verification enabled",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "CUBEJS_LOG_LEVEL",
      "service": "cube-refresh-worker",
      "description": "Server log verbosity",
      "secret": false,
      "strategy": "default",
      "default": "info"
    },
    {
      "key": "CUBEJS_TELEMETRY",
      "service": "cube-refresh-worker",
      "description": "Disables anonymous usage reporting",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "CUBE_SAMPLE_DATA",
      "service": "cube-refresh-worker",
      "description": "Seeding belongs to the API service",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "CUBEJS_API_SECRET",
      "service": "cube-refresh-worker",
      "description": "Same signing key as the API",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "CUBEJS_CUBESTORE_HOST",
      "service": "cube-refresh-worker",
      "description": "Cube Store private hostname",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "CUBEJS_CUBESTORE_PORT",
      "service": "cube-refresh-worker",
      "description": "Cube Store HTTP port",
      "secret": false,
      "strategy": "default",
      "default": "3030"
    },
    {
      "key": "CUBEJS_REFRESH_WORKER",
      "service": "cube-refresh-worker",
      "description": "Builds pre-aggregations only",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "RAILWAY_DOCKERFILE_PATH",
      "service": "cube-refresh-worker",
      "description": "Selects the Cube image build",
      "secret": false,
      "strategy": "default",
      "default": "cube/Dockerfile"
    },
    {
      "key": "CUBEJS_CACHE_AND_QUEUE_DRIVER",
      "service": "cube-refresh-worker",
      "description": "Cache and queue backend",
      "secret": false,
      "strategy": "default",
      "default": "cubestore"
    },
    {
      "key": "CUBEJS_SCHEDULED_REFRESH_TIMEZONES",
      "service": "cube-refresh-worker",
      "description": "Timezones refreshed on schedule",
      "secret": false,
      "strategy": "default",
      "default": "UTC"
    },
    {
      "key": "PORT",
      "service": "cube-api",
      "description": "API port and health check target",
      "secret": false,
      "strategy": "default",
      "default": "4000"
    },
    {
      "key": "NODE_OPTIONS",
      "service": "cube-api",
      "description": "Node heap ceiling for the container",
      "secret": false,
      "strategy": "default",
      "default": "--max-old-space-size=3500"
    },
    {
      "key": "CUBEJS_DB_HOST",
      "service": "cube-api",
      "description": "Source database host",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "CUBEJS_DB_NAME",
      "service": "cube-api",
      "description": "Source database name",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "CUBEJS_DB_PASS",
      "service": "cube-api",
      "description": "Source database password",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "CUBEJS_DB_PORT",
      "service": "cube-api",
      "description": "Source database port",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "CUBEJS_DB_TYPE",
      "service": "cube-api",
      "description": "Data source driver",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "CUBEJS_DB_USER",
      "service": "cube-api",
      "description": "Source database user",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "CUBEJS_DEV_MODE",
      "service": "cube-api",
      "description": "Keeps token verification enabled",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "CUBEJS_SQL_USER",
      "service": "cube-api",
      "description": "SQL API username",
      "secret": false,
      "strategy": "default",
      "default": "cube"
    },
    {
      "key": "CUBEJS_LOG_LEVEL",
      "service": "cube-api",
      "description": "Server log verbosity",
      "secret": false,
      "strategy": "default",
      "default": "info"
    },
    {
      "key": "CUBEJS_TELEMETRY",
      "service": "cube-api",
      "description": "Disables anonymous usage reporting",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "CUBE_SAMPLE_DATA",
      "service": "cube-api",
      "description": "Seeds the demo dataset on first boot",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "CUBEJS_API_SECRET",
      "service": "cube-api",
      "description": "HS256 key for API tokens",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "CUBEJS_PG_SQL_PORT",
      "service": "cube-api",
      "description": "Postgres-wire SQL API port",
      "secret": false,
      "strategy": "default",
      "default": "15432"
    },
    {
      "key": "CUBEJS_SQL_PASSWORD",
      "service": "cube-api",
      "description": "SQL API password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "CUBEJS_CUBESTORE_HOST",
      "service": "cube-api",
      "description": "Cube Store private hostname",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "CUBEJS_CUBESTORE_PORT",
      "service": "cube-api",
      "description": "Cube Store HTTP port",
      "secret": false,
      "strategy": "default",
      "default": "3030"
    },
    {
      "key": "CUBE_SEED_DATABASE_URL",
      "service": "cube-api",
      "description": "Connection used to seed demo data",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILWAY_DOCKERFILE_PATH",
      "service": "cube-api",
      "description": "Selects the Cube image build",
      "secret": false,
      "strategy": "default",
      "default": "cube/Dockerfile"
    },
    {
      "key": "CUBEJS_CACHE_AND_QUEUE_DRIVER",
      "service": "cube-api",
      "description": "Cache and queue backend",
      "secret": false,
      "strategy": "default",
      "default": "cubestore"
    },
    {
      "key": "CUBEJS_SCHEDULED_REFRESH_TIMEZONES",
      "service": "cube-api",
      "description": "Timezones refreshed on schedule",
      "secret": false,
      "strategy": "default",
      "default": "UTC"
    },
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Cluster location on the volume",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "Postgres",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "Postgres",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "Postgres",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "Postgres",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "Postgres",
      "description": "Data panel alias, not read by the server",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Database created on first boot",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "Private connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "Superuser created on first boot",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "SSL_CERT_DAYS",
      "service": "Postgres",
      "description": "SSL certificate expiry in days",
      "secret": false,
      "strategy": "default",
      "default": "820"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Superuser password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgres",
      "description": "Clean shutdown window",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "key": "PORT",
      "service": "cubestore",
      "description": "Status server port used for health checks",
      "secret": false,
      "strategy": "default",
      "default": "3031"
    },
    {
      "key": "CUBESTORE_DATA_DIR",
      "service": "cubestore",
      "description": "Local replica on the volume",
      "secret": false,
      "strategy": "default",
      "default": "/cube/data/store/local"
    },
    {
      "key": "CUBESTORE_LOG_LEVEL",
      "service": "cubestore",
      "description": "Cube Store log verbosity",
      "secret": false,
      "strategy": "default",
      "default": "info"
    },
    {
      "key": "CUBESTORE_META_PORT",
      "service": "cubestore",
      "description": "Metastore port for cluster nodes",
      "secret": false,
      "strategy": "default",
      "default": "9999"
    },
    {
      "key": "CUBESTORE_TELEMETRY",
      "service": "cubestore",
      "description": "Disables anonymous usage reporting",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "CUBESTORE_REMOTE_DIR",
      "service": "cubestore",
      "description": "Durable pre-aggregation storage",
      "secret": false,
      "strategy": "default",
      "default": "/cube/data/store/remote"
    },
    {
      "key": "CUBESTORE_SERVER_NAME",
      "service": "cubestore",
      "description": "This node's cluster identity",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "RAILWAY_DOCKERFILE_PATH",
      "service": "cubestore",
      "description": "Selects the Cube Store image build",
      "secret": false,
      "strategy": "default",
      "default": "cubestore/Dockerfile"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "cube"
      }
    },
    "cli": "railway deploy --template cube",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "3929e42d-42f7-482e-84de-4b8457bdce44",
            "serializedConfig": {
              "buckets": {
                "534f03c2-64dc-474e-9f82-04e657394a09": {
                  "name": "cubestore"
                }
              },
              "services": {
                "3f6c5c8a-8e44-4060-9c15-f997d17a4b78": {
                  "icon": "https://cube.dev/favicon.svg",
                  "name": "cube-refresh-worker",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/readyz",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/cube-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Health check target, no public domain",
                      "defaultValue": "4000"
                    },
                    "NODE_OPTIONS": {
                      "isOptional": false,
                      "description": "Node heap ceiling for the container",
                      "defaultValue": "--max-old-space-size=3500"
                    },
                    "CUBEJS_DB_HOST": {
                      "isOptional": false,
                      "description": "Source database host",
                      "defaultValue": "${{Postgres.PGHOST}}"
                    },
                    "CUBEJS_DB_NAME": {
                      "isOptional": false,
                      "description": "Source database name",
                      "defaultValue": "${{Postgres.PGDATABASE}}"
                    },
                    "CUBEJS_DB_PASS": {
                      "isOptional": false,
                      "description": "Source database password",
                      "defaultValue": "${{Postgres.PGPASSWORD}}"
                    },
                    "CUBEJS_DB_PORT": {
                      "isOptional": false,
                      "description": "Source database port",
                      "defaultValue": "${{Postgres.PGPORT}}"
                    },
                    "CUBEJS_DB_TYPE": {
                      "isOptional": false,
                      "description": "Data source driver",
                      "defaultValue": "postgres"
                    },
                    "CUBEJS_DB_USER": {
                      "isOptional": false,
                      "description": "Source database user",
                      "defaultValue": "${{Postgres.PGUSER}}"
                    },
                    "CUBEJS_DEV_MODE": {
                      "isOptional": false,
                      "description": "Keeps token verification enabled",
                      "defaultValue": "false"
                    },
                    "CUBEJS_LOG_LEVEL": {
                      "isOptional": false,
                      "description": "Server log verbosity",
                      "defaultValue": "info"
                    },
                    "CUBEJS_TELEMETRY": {
                      "isOptional": false,
                      "description": "Disables anonymous usage reporting",
                      "defaultValue": "false"
                    },
                    "CUBE_SAMPLE_DATA": {
                      "isOptional": false,
                      "description": "Seeding belongs to the API service",
                      "defaultValue": "false"
                    },
                    "CUBEJS_API_SECRET": {
                      "isOptional": false,
                      "description": "Same signing key as the API",
                      "defaultValue": "${{cube-api.CUBEJS_API_SECRET}}"
                    },
                    "CUBEJS_CUBESTORE_HOST": {
                      "isOptional": false,
                      "description": "Cube Store private hostname",
                      "defaultValue": "${{cubestore.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "CUBEJS_CUBESTORE_PORT": {
                      "isOptional": false,
                      "description": "Cube Store HTTP port",
                      "defaultValue": "3030"
                    },
                    "CUBEJS_REFRESH_WORKER": {
                      "isOptional": false,
                      "description": "Builds pre-aggregations only",
                      "defaultValue": "true"
                    },
                    "RAILWAY_DOCKERFILE_PATH": {
                      "isOptional": false,
                      "description": "Selects the Cube image build",
                      "defaultValue": "cube/Dockerfile"
                    },
                    "CUBEJS_CACHE_AND_QUEUE_DRIVER": {
                      "isOptional": false,
                      "description": "Cache and queue backend",
                      "defaultValue": "cubestore"
                    },
                    "CUBEJS_SCHEDULED_REFRESH_TIMEZONES": {
                      "isOptional": false,
                      "description": "Timezones refreshed on schedule",
                      "defaultValue": "UTC"
                    }
                  }
                },
                "5cf39069-a593-4c12-bcae-61bf20c1b8d9": {
                  "icon": "https://cube.dev/favicon.svg",
                  "name": "cube-api",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/readyz",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/cube-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "API port and health check target",
                      "defaultValue": "4000"
                    },
                    "NODE_OPTIONS": {
                      "isOptional": false,
                      "description": "Node heap ceiling for the container",
                      "defaultValue": "--max-old-space-size=3500"
                    },
                    "CUBEJS_DB_HOST": {
                      "isOptional": false,
                      "description": "Source database host",
                      "defaultValue": "${{Postgres.PGHOST}}"
                    },
                    "CUBEJS_DB_NAME": {
                      "isOptional": false,
                      "description": "Source database name",
                      "defaultValue": "${{Postgres.PGDATABASE}}"
                    },
                    "CUBEJS_DB_PASS": {
                      "isOptional": false,
                      "description": "Source database password",
                      "defaultValue": "${{Postgres.PGPASSWORD}}"
                    },
                    "CUBEJS_DB_PORT": {
                      "isOptional": false,
                      "description": "Source database port",
                      "defaultValue": "${{Postgres.PGPORT}}"
                    },
                    "CUBEJS_DB_TYPE": {
                      "isOptional": false,
                      "description": "Data source driver",
                      "defaultValue": "postgres"
                    },
                    "CUBEJS_DB_USER": {
                      "isOptional": false,
                      "description": "Source database user",
                      "defaultValue": "${{Postgres.PGUSER}}"
                    },
                    "CUBEJS_DEV_MODE": {
                      "isOptional": false,
                      "description": "Keeps token verification enabled",
                      "defaultValue": "false"
                    },
                    "CUBEJS_SQL_USER": {
                      "isOptional": false,
                      "description": "SQL API username",
                      "defaultValue": "cube"
                    },
                    "CUBEJS_LOG_LEVEL": {
                      "isOptional": false,
                      "description": "Server log verbosity",
                      "defaultValue": "info"
                    },
                    "CUBEJS_TELEMETRY": {
                      "isOptional": false,
                      "description": "Disables anonymous usage reporting",
                      "defaultValue": "false"
                    },
                    "CUBE_SAMPLE_DATA": {
                      "isOptional": false,
                      "description": "Seeds the demo dataset on first boot",
                      "defaultValue": "true"
                    },
                    "CUBEJS_API_SECRET": {
                      "isOptional": false,
                      "description": "HS256 key for API tokens",
                      "defaultValue": "{{CUBEJS_API_SECRET}}"
                    },
                    "CUBEJS_PG_SQL_PORT": {
                      "isOptional": false,
                      "description": "Postgres-wire SQL API port",
                      "defaultValue": "15432"
                    },
                    "CUBEJS_SQL_PASSWORD": {
                      "isOptional": false,
                      "description": "SQL API password",
                      "defaultValue": "{{CUBEJS_SQL_PASSWORD}}"
                    },
                    "CUBEJS_CUBESTORE_HOST": {
                      "isOptional": false,
                      "description": "Cube Store private hostname",
                      "defaultValue": "${{cubestore.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "CUBEJS_CUBESTORE_PORT": {
                      "isOptional": false,
                      "description": "Cube Store HTTP port",
                      "defaultValue": "3030"
                    },
                    "CUBE_SEED_DATABASE_URL": {
                      "isOptional": false,
                      "description": "Connection used to seed demo data",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "RAILWAY_DOCKERFILE_PATH": {
                      "isOptional": false,
                      "description": "Selects the Cube image build",
                      "defaultValue": "cube/Dockerfile"
                    },
                    "CUBEJS_CACHE_AND_QUEUE_DRIVER": {
                      "isOptional": false,
                      "description": "Cache and queue backend",
                      "defaultValue": "cubestore"
                    },
                    "CUBEJS_SCHEDULED_REFRESH_TIMEZONES": {
                      "isOptional": false,
                      "description": "Timezones refreshed on schedule",
                      "defaultValue": "UTC"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "15432": {}
                    },
                    "serviceDomains": {
                      "<hasDomain>:4000": {
                        "port": 4000
                      }
                    }
                  }
                },
                "87a77907-7f94-43e8-85e5-54841e889edc": {
                  "icon": "https://devicons.railway.app/i/postgresql.svg",
                  "name": "Postgres",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Cluster location on the volume",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{POSTGRES_USER}}"
                    },
                    "PGDATABASE": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Database created on first boot",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Private connection string",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Superuser created on first boot",
                      "defaultValue": "postgres"
                    },
                    "SSL_CERT_DAYS": {
                      "isOptional": false,
                      "description": "SSL certificate expiry in days",
                      "defaultValue": "820"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Superuser password",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Clean shutdown window",
                      "defaultValue": "60"
                    }
                  },
                  "volumeMounts": {
                    "87a77907-7f94-43e8-85e5-54841e889edc": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "e66e8b7a-822a-4d8d-9f08-15c197df8a6c": {
                  "icon": "https://cube.dev/favicon.svg",
                  "name": "cubestore",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/livez",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/cube-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Status server port used for health checks",
                      "defaultValue": "3031"
                    },
                    "CUBESTORE_DATA_DIR": {
                      "isOptional": false,
                      "description": "Local replica on the volume",
                      "defaultValue": "/cube/data/store/local"
                    },
                    "CUBESTORE_LOG_LEVEL": {
                      "isOptional": false,
                      "description": "Cube Store log verbosity",
                      "defaultValue": "info"
                    },
                    "CUBESTORE_META_PORT": {
                      "isOptional": false,
                      "description": "Metastore port for cluster nodes",
                      "defaultValue": "9999"
                    },
                    "CUBESTORE_TELEMETRY": {
                      "isOptional": false,
                      "description": "Disables anonymous usage reporting",
                      "defaultValue": "false"
                    },
                    "CUBESTORE_REMOTE_DIR": {
                      "isOptional": false,
                      "description": "Durable pre-aggregation storage",
                      "defaultValue": "/cube/data/store/remote"
                    },
                    "CUBESTORE_SERVER_NAME": {
                      "isOptional": false,
                      "description": "This node's cluster identity",
                      "defaultValue": "${{cubestore.RAILWAY_PRIVATE_DOMAIN}}:9999"
                    },
                    "RAILWAY_DOCKERFILE_PATH": {
                      "isOptional": false,
                      "description": "Selects the Cube Store image build",
                      "defaultValue": "cubestore/Dockerfile"
                    }
                  },
                  "volumeMounts": {
                    "e66e8b7a-822a-4d8d-9f08-15c197df8a6c": {
                      "mountPath": "/cube/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "cube-api",
      "method": "GET",
      "path": "/readyz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 4,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T16:14:49.616Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-19T12:40:16.697Z",
  "success_rate_30d": 0.1667,
  "validation": {
    "last_run_id": "run_e7aa90e3d93d40dd88cc",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": false,
        "detail": "Your workspace has been restricted. Please contact support to resolve this."
      }
    ],
    "typical_ready_seconds": 98
  }
}
