{
  "manifest_version": "1.0.0",
  "template": {
    "id": "14a818b1-1242-4fce-97d2-4722ec90c6c7",
    "slug": "browser-gateway",
    "name": "browser-gateway",
    "description": "Reliable browser infrastructure for AI agents and automation.",
    "url": "https://railway.com/deploy/browser-gateway",
    "upstream": {
      "image": "ghcr.io/browser-gateway/server:latest"
    }
  },
  "services": [
    {
      "name": "browser-gateway",
      "source": {
        "image": "ghcr.io/browser-gateway/server:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "browser-gateway",
      "description": "Port the gateway listens on. Required by Railway's healthcheck probe.",
      "secret": false,
      "strategy": "default",
      "default": "9500"
    },
    {
      "key": "BG_TOKEN",
      "service": "browser-gateway",
      "description": "Auth token for the gateway and dashboard. Auto-generated by Railway by default or you can set one manually",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "BG_DATA_DIR",
      "service": "browser-gateway",
      "description": "Path inside the container where persistent state lives. Mounted as a 1 GB Railway volume.",
      "secret": false,
      "strategy": "default",
      "default": "/data"
    },
    {
      "key": "BG_ENCRYPTION_KEY",
      "service": "browser-gateway",
      "description": "Encrypts profile blobs at rest. Auto-managed by the gateway at $BG_DATA_DIR/.encryption-key if left blank. Set explicitly only for centralized key management.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "browser-gateway"
      }
    },
    "cli": "railway deploy --template browser-gateway",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "14a818b1-1242-4fce-97d2-4722ec90c6c7",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "8f00dbf2-d6b7-471b-9260-ff037228cb07": {
                  "icon": "https://browsergateway.com/browser-gateway.svg",
                  "name": "browser-gateway",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/browser-gateway/server:latest"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": true,
                      "description": "Port the gateway listens on. Required by Railway's healthcheck probe.",
                      "defaultValue": "9500"
                    },
                    "BG_TOKEN": {
                      "isOptional": true,
                      "description": "Auth token for the gateway and dashboard. Auto-generated by Railway by default or you can set one manually",
                      "defaultValue": "{{BG_TOKEN}}"
                    },
                    "BG_DATA_DIR": {
                      "isOptional": true,
                      "description": "Path inside the container where persistent state lives. Mounted as a 1 GB Railway volume.",
                      "defaultValue": "/data"
                    },
                    "BG_ENCRYPTION_KEY": {
                      "isOptional": true,
                      "description": "Encrypts profile blobs at rest. Auto-managed by the gateway at $BG_DATA_DIR/.encryption-key if left blank. Set explicitly only for centralized key management.",
                      "defaultValue": "{{BG_ENCRYPTION_KEY}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "8f00dbf2-d6b7-471b-9260-ff037228cb07": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "browser-gateway",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T10:14:37.339Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-20T08:41:12.427Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_d36acb7d920c46a0a0f1",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 80,
    "typical_build_seconds": 0,
    "typical_start_seconds": 10,
    "slowest_service": "browser-gateway"
  }
}
