{
  "manifest_version": "1.0.0",
  "template": {
    "id": "1d736e19-ac1e-4629-a95b-85f42a8c0476",
    "slug": "ubuntu-web-terminal",
    "name": "Ubuntu Web Terminal",
    "description": "Ubuntu 24.04 terminal in your browser: persistent home volume, no setup",
    "url": "https://railway.com/deploy/ubuntu-web-terminal",
    "upstream": {
      "image": "ghcr.io/will-bogusz/railway-ubuntu-ssh:24.04-20260920b@sha256:ebaafc81557b7294a2b13d08986173efacab19d3004c2ac40074753dbcf6136c"
    }
  },
  "services": [
    {
      "name": "ubuntu",
      "source": {
        "image": "ghcr.io/will-bogusz/railway-ubuntu-ssh:24.04-20260920b@sha256:ebaafc81557b7294a2b13d08986173efacab19d3004c2ac40074753dbcf6136c"
      },
      "needs_volume": true,
      "volume_mount_path": "/home/dev",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "ubuntu",
      "description": "Port the browser terminal 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 terminal (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": "DEVBOX_SSH",
      "service": "ubuntu",
      "description": "off = browser terminal only (this template). Set to on and add a TCP proxy for port 22 under Settings -> Networking to also get SSH.",
      "secret": false,
      "strategy": "default",
      "default": "off"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "ubuntu-web-terminal"
      }
    },
    "cli": "railway deploy --template ubuntu-web-terminal",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "1d736e19-ac1e-4629-a95b-85f42a8c0476",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "0d64fe29-aac4-4340-a73f-cc74bc1daf4f": {
                  "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-ssh:24.04-20260920b@sha256:ebaafc81557b7294a2b13d08986173efacab19d3004c2ac40074753dbcf6136c"
                  },
                  "variables": {
                    "TZ": {
                      "isOptional": true,
                      "description": "Optional - Timezone name such as Europe/Berlin or America/New_York. Default UTC.",
                      "defaultValue": ""
                    },
                    "PORT": {
                      "description": "Port the browser terminal listens on. Railway's domain and healthcheck target it. Leave it as is.",
                      "defaultValue": "8080"
                    },
                    "PASSWORD": {
                      "description": "Password for the terminal (user dev). Generated on deploy; read it here in the Variables tab. Change it and redeploy to rotate.",
                      "defaultValue": "{{PASSWORD}}"
                    },
                    "DEVBOX_SSH": {
                      "description": "off = browser terminal only (this template). Set to on and add a TCP proxy for port 22 under Settings -> Networking to also get SSH.",
                      "defaultValue": "off"
                    },
                    "GITHUB_TOKEN": {
                      "isOptional": true,
                      "description": "Optional - GitHub token. git clone/push over HTTPS and the gh CLI use it without a login prompt.",
                      "defaultValue": ""
                    },
                    "ANTHROPIC_API_KEY": {
                      "isOptional": true,
                      "description": "Optional - Anthropic API key for Claude Code. Leave blank to sign in with a Claude subscription instead: run claude and follow the login link.",
                      "defaultValue": ""
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "0d64fe29-aac4-4340-a73f-cc74bc1daf4f": {
                      "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-20T13:00:14.294Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_21dc2dfa3da14d769aef",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 70,
    "typical_build_seconds": 0,
    "typical_start_seconds": 21,
    "slowest_service": "ubuntu"
  }
}
