{
  "manifest_version": "1.0.0",
  "template": {
    "id": "177f63a9-b466-4aae-bbde-a2cdf82a5ce1",
    "slug": "rakazo-suite",
    "name": "Rakazo Suite",
    "description": "Rakazo persistent cloud agent (Grok Bot Alternative). Non forked.",
    "url": "https://railway.com/deploy/rakazo-suite",
    "upstream": {
      "image": "ghcr.io/elie222/rakazo/app:edge"
    }
  },
  "services": [
    {
      "name": "web",
      "source": {
        "image": "ghcr.io/elie222/rakazo/app:edge"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "worker",
      "source": {
        "image": "ghcr.io/elie222/rakazo/app:edge"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "Postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "api",
      "source": {
        "image": "ghcr.io/elie222/rakazo/app:edge"
      },
      "needs_volume": false,
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "web",
      "description": "Preset to upstream configuration.",
      "secret": false,
      "strategy": "default",
      "default": "5173"
    },
    {
      "key": "WEB_ORIGIN",
      "service": "web",
      "description": "Preset to upstream configuration.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "RAKAZO_HOST",
      "service": "web",
      "description": "Preset to upstream configuration.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "API_PROXY_TARGET",
      "service": "web",
      "description": "Preset to upstream configuration.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "SCREEN_PROXY_SECRET",
      "service": "web",
      "description": "Preset to upstream configuration.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DATA_DIR",
      "service": "worker",
      "description": "Ephemeral artifacts",
      "secret": false,
      "strategy": "default",
      "default": "/tmp/rakazo-data"
    },
    {
      "key": "BOX_API_KEY",
      "service": "worker",
      "description": "Preset to upstream configuration.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "E2B_API_KEY",
      "service": "worker",
      "description": "Preset to upstream configuration.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DATABASE_URL",
      "service": "worker",
      "description": "Preset to upstream configuration.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ENCRYPTION_KEY",
      "service": "worker",
      "description": "Preset to upstream configuration.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DAYTONA_API_KEY",
      "service": "worker",
      "description": "Preset to upstream configuration.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SANDBOX_PROVIDER",
      "service": "worker",
      "description": "Preset to upstream configuration.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "BETTER_AUTH_SECRET",
      "service": "worker",
      "description": "Preset to upstream configuration.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Location where the database will be initialized",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "Postgres",
      "description": "Railway Private Domain Name.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "Postgres",
      "description": "Port to connect to Postgres.",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "Postgres",
      "description": "Required variable for Data panel",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "Postgres",
      "description": "Required variable for the data panel.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "Postgres",
      "description": "Required variable for Data panel",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Default database created when image is started.",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "URL to connect to Postgres database.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "User to connect to Postgres DB",
      "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": "Password to connect to DB",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgres",
      "description": "Allow Postgres to cleanly shut down",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "key": "PORT",
      "service": "api",
      "description": "Preset to upstream configuration.",
      "secret": false,
      "strategy": "default",
      "default": "3100"
    },
    {
      "key": "API_URL",
      "service": "api",
      "description": "Preset to upstream configuration.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "API_HOST",
      "service": "api",
      "description": "Preset to upstream configuration.",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0"
    },
    {
      "key": "DATA_DIR",
      "service": "api",
      "description": "For ephemeral artifacts.",
      "secret": false,
      "strategy": "default",
      "default": "/tmp/rakazo-data"
    },
    {
      "key": "NODE_ENV",
      "service": "api",
      "description": "Preset to upstream configuration.",
      "secret": false,
      "strategy": "default",
      "default": "production"
    },
    {
      "key": "WEB_ORIGIN",
      "service": "api",
      "description": "Preset to upstream configuration.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "DATABASE_URL",
      "service": "api",
      "description": "Preset to upstream configuration.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ENCRYPTION_KEY",
      "service": "api",
      "description": "Auto generated secrets https://docs.railway.com/templates/create#template-variable-functions",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "BETTER_AUTH_URL",
      "service": "api",
      "description": "Preset to upstream configuration.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "DAYTONA_API_KEY",
      "service": "api",
      "description": "API Key for Daytona ephemeral VPS sandbox",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "SANDBOX_PROVIDER",
      "service": "api",
      "description": "Ephemeral VPS service sandbox (e2b / daytona / box) Box is now boat.dev. Provide the matching API key and leave the other sandbox keys empty.",
      "secret": false,
      "strategy": "default",
      "default": "daytona"
    },
    {
      "key": "BETTER_AUTH_SECRET",
      "service": "api",
      "description": "Auto generated secrets https://docs.railway.com/templates/create#template-variable-functions",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "SCREEN_PROXY_SECRET",
      "service": "api",
      "description": "Auto generated secrets https://docs.railway.com/templates/create#template-variable-functions",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "SANDBOX_SUPERVISOR_TOKEN",
      "service": "api",
      "description": "Auto generated secrets https://docs.railway.com/templates/create#template-variable-functions",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "SANDBOX_TEAM_SCREEN_LIMIT",
      "service": "api",
      "description": "Optional limit on active bot desktops per Docker Team Computer. 0 leaves capacity to the machine; desktops and Chrome start only when needed.",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "SANDBOX_COMMAND_TIMEOUT_MS",
      "service": "api",
      "description": "Timeout in milliseconds",
      "secret": false,
      "strategy": "default",
      "default": "300000"
    },
    {
      "key": "SANDBOX_MAX_COMPUTERS_PER_SPACE",
      "service": "api",
      "description": "Optional limit on total concurrent bot computer containers per space in Docker sandboxes. 0 (or unset) means unlimited. Set a positive integer to cap containers per space.",
      "secret": false,
      "strategy": "default",
      "default": "0"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "rakazo-suite"
      }
    },
    "cli": "railway deploy --template rakazo-suite",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "177f63a9-b466-4aae-bbde-a2cdf82a5ce1",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "39d0c2ee-5cf0-4262-b0df-8835983d9371": {
                  "icon": "https://rakazo.com/brand/rakazo-mark.svg",
                  "name": "web",
                  "deploy": {
                    "startCommand": "pnpm --filter @rakazo/web preview",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/elie222/rakazo/app:edge"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Preset to upstream configuration.",
                      "defaultValue": "5173"
                    },
                    "WEB_ORIGIN": {
                      "isOptional": false,
                      "description": "Preset to upstream configuration.",
                      "defaultValue": "https://${{web.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "RAKAZO_HOST": {
                      "isOptional": false,
                      "description": "Preset to upstream configuration.",
                      "defaultValue": "${{web.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "API_PROXY_TARGET": {
                      "isOptional": false,
                      "description": "Preset to upstream configuration.",
                      "defaultValue": "http://${{api.RAILWAY_PRIVATE_DOMAIN}}:${{api.PORT}}"
                    },
                    "SCREEN_PROXY_SECRET": {
                      "isOptional": false,
                      "description": "Preset to upstream configuration.",
                      "defaultValue": "${{api.SCREEN_PROXY_SECRET}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:5173": {
                        "port": 5173
                      }
                    }
                  }
                },
                "3de2b0fd-42a3-4206-a021-d754e08d01f5": {
                  "icon": "https://camo.githubusercontent.com/d3f77b4094a6bebb83eddbda8789f594800b19c7ee01694d9c00ad402ce4906a/68747470733a2f2f63646e2e7261776769742e636f6d2f6772617068696c652f776f726b65722f326338303931653062636365356433396534366131623338333364616632306235393039376431652f776562736974652f7374617469632f696d672f6c6f676f2e6f7074696d697a65642e737667",
                  "name": "worker",
                  "deploy": {
                    "startCommand": "pnpm --filter @rakazo/worker start",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/elie222/rakazo/app:edge"
                  },
                  "variables": {
                    "DATA_DIR": {
                      "description": "Ephemeral artifacts",
                      "defaultValue": "/tmp/rakazo-data"
                    },
                    "BOX_API_KEY": {
                      "description": "Preset to upstream configuration.",
                      "defaultValue": "${{api.BOX_API_KEY}}"
                    },
                    "E2B_API_KEY": {
                      "description": "Preset to upstream configuration.",
                      "defaultValue": "${{api.E2B_API_KEY}}"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Preset to upstream configuration.",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "ENCRYPTION_KEY": {
                      "isOptional": false,
                      "description": "Preset to upstream configuration.",
                      "defaultValue": "${{api.ENCRYPTION_KEY}}"
                    },
                    "DAYTONA_API_KEY": {
                      "description": "Preset to upstream configuration.",
                      "defaultValue": "${{api.DAYTONA_API_KEY}}"
                    },
                    "SANDBOX_PROVIDER": {
                      "isOptional": false,
                      "description": "Preset to upstream configuration.",
                      "defaultValue": "${{api.SANDBOX_PROVIDER}}"
                    },
                    "BETTER_AUTH_SECRET": {
                      "isOptional": false,
                      "description": "Preset to upstream configuration.",
                      "defaultValue": "\"${{api.BETTER_AUTH_SECRET"
                    }
                  }
                },
                "56115d0e-a6b8-4c2e-ac63-1f1b71ea35ab": {
                  "icon": "https://devicons.railway.app/i/postgresql.svg",
                  "name": "Postgres",
                  "deploy": {
                    "requiredMountPath": "/var/lib/postgresql/data"
                  },
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Location where the database will be initialized",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": false,
                      "description": "Railway Private Domain Name.",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": false,
                      "description": "Port to connect to Postgres.",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "isOptional": false,
                      "description": "Required variable for Data panel",
                      "defaultValue": "${{ POSTGRES_USER }}"
                    },
                    "PGDATABASE": {
                      "isOptional": false,
                      "description": "Required variable for the data panel.",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": false,
                      "description": "Required variable for Data panel",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Default database created when image is started.",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "URL to connect to Postgres database.",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "User to connect to Postgres DB",
                      "defaultValue": "postgres"
                    },
                    "SSL_CERT_DAYS": {
                      "isOptional": true,
                      "description": "SSL certificate expiry in days.",
                      "defaultValue": "820"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Password to connect to DB",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Allow Postgres to cleanly shut down",
                      "defaultValue": "60"
                    }
                  },
                  "volumeMounts": {
                    "56115d0e-a6b8-4c2e-ac63-1f1b71ea35ab": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  },
                  "haTemplateCode": "postgres-ha",
                  "haConversionConfig": {
                    "edge": {
                      "label": "Reverse Proxy",
                      "options": [
                        2,
                        3,
                        4,
                        5
                      ],
                      "nodeLabel": "HAProxy",
                      "description": "Routes traffic to the primary",
                      "defaultValue": 3
                    },
                    "replica": {
                      "label": "Replicas",
                      "options": [
                        2,
                        3,
                        4,
                        5,
                        6,
                        7
                      ],
                      "nodeLabel": "Postgres",
                      "description": "Streaming replicas for automatic failover",
                      "defaultValue": 2
                    },
                    "internal": {
                      "label": "Coordinator Nodes",
                      "options": [
                        3,
                        5,
                        7,
                        9
                      ],
                      "nodeLabel": "etcd",
                      "defaultValue": 3
                    },
                    "description": "This will convert your Postgres database to an HA cluster with Patroni failover and etcd consensus."
                  }
                },
                "9a334acc-97ae-452c-ba86-eae147ba6af2": {
                  "icon": "https://raw.githubusercontent.com/elie222/rakazo/refs/heads/main/apps/web/public/favicon.svg",
                  "name": "api",
                  "deploy": {
                    "startCommand": "pnpm --filter @rakazo/api start",
                    "healthcheckPath": "/health",
                    "preDeployCommand": [
                      "pnpm --filter @rakazo/db migrate"
                    ],
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/elie222/rakazo/app:edge"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Preset to upstream configuration.",
                      "defaultValue": "3100"
                    },
                    "API_URL": {
                      "isOptional": false,
                      "description": "Preset to upstream configuration.",
                      "defaultValue": "https://${{web.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "API_HOST": {
                      "isOptional": false,
                      "description": "Preset to upstream configuration.",
                      "defaultValue": "0.0.0.0"
                    },
                    "DATA_DIR": {
                      "description": "For ephemeral artifacts.",
                      "defaultValue": "/tmp/rakazo-data"
                    },
                    "NODE_ENV": {
                      "isOptional": false,
                      "description": "Preset to upstream configuration.",
                      "defaultValue": "production"
                    },
                    "WEB_ORIGIN": {
                      "isOptional": false,
                      "description": "Preset to upstream configuration.",
                      "defaultValue": "https://${{web.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "BOX_API_KEY": {
                      "isOptional": true,
                      "description": "API Key for Box (now boat.dev) ephemeral VPS sandbox",
                      "defaultValue": ""
                    },
                    "E2B_API_KEY": {
                      "isOptional": true,
                      "description": "API Key for E2B ephemeral VPS sandbox",
                      "defaultValue": ""
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Preset to upstream configuration.",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "ENCRYPTION_KEY": {
                      "isOptional": false,
                      "description": "Auto generated secrets https://docs.railway.com/templates/create#template-variable-functions",
                      "defaultValue": "{{ENCRYPTION_KEY}}"
                    },
                    "BETTER_AUTH_URL": {
                      "isOptional": false,
                      "description": "Preset to upstream configuration.",
                      "defaultValue": "https://${{web.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "DAYTONA_API_KEY": {
                      "isOptional": false,
                      "description": "API Key for Daytona ephemeral VPS sandbox",
                      "defaultValue": "{{DAYTONA_API_KEY}}"
                    },
                    "SANDBOX_PROVIDER": {
                      "description": "Ephemeral VPS service sandbox (e2b / daytona / box) Box is now boat.dev. Provide the matching API key and leave the other sandbox keys empty.",
                      "defaultValue": "daytona"
                    },
                    "BETTER_AUTH_SECRET": {
                      "isOptional": false,
                      "description": "Auto generated secrets https://docs.railway.com/templates/create#template-variable-functions",
                      "defaultValue": "{{BETTER_AUTH_SECRET}}"
                    },
                    "SCREEN_PROXY_SECRET": {
                      "isOptional": false,
                      "description": "Auto generated secrets https://docs.railway.com/templates/create#template-variable-functions",
                      "defaultValue": "{{SCREEN_PROXY_SECRET}}"
                    },
                    "SANDBOX_SUPERVISOR_TOKEN": {
                      "description": "Auto generated secrets https://docs.railway.com/templates/create#template-variable-functions",
                      "defaultValue": "{{SANDBOX_SUPERVISOR_TOKEN}}"
                    },
                    "SANDBOX_TEAM_SCREEN_LIMIT": {
                      "description": "Optional limit on active bot desktops per Docker Team Computer. 0 leaves capacity to the machine; desktops and Chrome start only when needed.",
                      "defaultValue": "0"
                    },
                    "SANDBOX_COMMAND_TIMEOUT_MS": {
                      "description": "Timeout in milliseconds",
                      "defaultValue": "300000"
                    },
                    "SANDBOX_MAX_COMPUTERS_PER_SPACE": {
                      "description": "Optional limit on total concurrent bot computer containers per space in Docker sandboxes. 0 (or unset) means unlimited. Set a positive integer to cap containers per space.",
                      "defaultValue": "0"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 4,
    "needs_volume": true
  },
  "generated_at": "2026-09-22T04:14:41.730Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-22T01:57:16.446Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_698365f90f2041dbba42",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 189,
    "typical_build_seconds": 0,
    "typical_start_seconds": 71,
    "slowest_service": "worker"
  }
}
