{
  "manifest_version": "1.0.0",
  "template": {
    "id": "210a32da-0401-4536-b226-c905a4e5641f",
    "slug": "ubuntu-desktop",
    "name": "Ubuntu Desktop (Browser)",
    "description": "Ubuntu 24.04 XFCE desktop in your browser via KasmVNC, with Firefox",
    "url": "https://railway.com/deploy/ubuntu-desktop",
    "upstream": {
      "image": "ghcr.io/will-bogusz/railway-ubuntu-desktop:24.04-20260920@sha256:2dfa08b98bf85aec27625fe09310e1a3172d84e25ea582ea2f6042d94174d19c"
    }
  },
  "services": [
    {
      "name": "ubuntu",
      "source": {
        "image": "ghcr.io/will-bogusz/railway-ubuntu-desktop:24.04-20260920@sha256:2dfa08b98bf85aec27625fe09310e1a3172d84e25ea582ea2f6042d94174d19c"
      },
      "needs_volume": true,
      "volume_mount_path": "/home/dev",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "ubuntu",
      "description": "Port the desktop listens on. Railway's domain and healthcheck target it. Leave it as is.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "PASSWORD",
      "service": "ubuntu",
      "description": "Password for the desktop (user dev). Generated on deploy; read it here in the Variables tab. Change it and redeploy to rotate.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RESOLUTION",
      "service": "ubuntu",
      "description": "Desktop size as WIDTHxHEIGHT. The viewer scales to your window; raise it for a sharper picture at the cost of bandwidth.",
      "secret": false,
      "strategy": "default",
      "default": "1440x900"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "ubuntu-desktop"
      }
    },
    "cli": "railway deploy --template ubuntu-desktop",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "210a32da-0401-4536-b226-c905a4e5641f",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "a5ab286a-3b7a-40ed-8f62-849af67daa32": {
                  "icon": "https://devicons.railway.com/i/ubuntu.svg",
                  "name": "ubuntu",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/will-bogusz/railway-ubuntu-desktop:24.04-20260920@sha256:2dfa08b98bf85aec27625fe09310e1a3172d84e25ea582ea2f6042d94174d19c"
                  },
                  "variables": {
                    "TZ": {
                      "isOptional": true,
                      "description": "Optional - Timezone name such as Europe/Berlin or America/New_York. Default UTC.",
                      "defaultValue": ""
                    },
                    "PORT": {
                      "description": "Port the desktop listens on. Railway's domain and healthcheck target it. Leave it as is.",
                      "defaultValue": "8080"
                    },
                    "PASSWORD": {
                      "description": "Password for the desktop (user dev). Generated on deploy; read it here in the Variables tab. Change it and redeploy to rotate.",
                      "defaultValue": "{{PASSWORD}}"
                    },
                    "RESOLUTION": {
                      "description": "Desktop size as WIDTHxHEIGHT. The viewer scales to your window; raise it for a sharper picture at the cost of bandwidth.",
                      "defaultValue": "1440x900"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "a5ab286a-3b7a-40ed-8f62-849af67daa32": {
                      "mountPath": "/home/dev"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "ubuntu",
      "method": "GET",
      "path": "/healthz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T16:14:49.616Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-20T12:59:31.348Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_ebcddb084083461fbc25",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 27,
    "typical_build_seconds": 0,
    "typical_start_seconds": 10,
    "slowest_service": "ubuntu"
  }
}
