{
  "manifest_version": "1.0.0",
  "template": {
    "id": "64d2014b-04f3-408c-9cad-16f91c1c601d",
    "slug": "linux-desktop",
    "name": "Linux Desktop | Ubuntu XFCE in the Cloud",
    "description": "Ubuntu XFCE desktop streamed to your browser. Password-gated, persistent.",
    "url": "https://railway.com/deploy/linux-desktop",
    "upstream": {
      "repo_url": "https://github.com/nomideusz/webtop-railway"
    }
  },
  "services": [
    {
      "name": "linux-desktop",
      "source": {
        "repo": "https://github.com/nomideusz/webtop-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/config",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "TZ",
      "service": "linux-desktop",
      "description": "Time zone inside the desktop.",
      "secret": false,
      "strategy": "default",
      "default": "UTC"
    },
    {
      "key": "PORT",
      "service": "linux-desktop",
      "description": "Port for Railway healthcheck probing. Do not change.",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "TITLE",
      "service": "linux-desktop",
      "description": "Browser tab title for the desktop.",
      "secret": false,
      "strategy": "default",
      "default": "Linux Desktop"
    },
    {
      "key": "PASSWORD",
      "service": "linux-desktop",
      "description": "Login password for the desktop session. This gates a full Linux desktop with sudo - keep it strong.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "CUSTOM_USER",
      "service": "linux-desktop",
      "description": "Login username for the desktop session.",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "linux-desktop"
      }
    },
    "cli": "railway deploy --template linux-desktop",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "64d2014b-04f3-408c-9cad-16f91c1c601d",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "b8db7b45-d8d6-4f11-8199-42015c35a0fb": {
                  "icon": "https://devicons.railway.com/i/ubuntu.svg",
                  "name": "linux-desktop",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/healthcheck",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/nomideusz/webtop-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "TZ": {
                      "isOptional": false,
                      "description": "Time zone inside the desktop.",
                      "defaultValue": "UTC"
                    },
                    "PORT": {
                      "isOptional": false,
                      "description": "Port for Railway healthcheck probing. Do not change.",
                      "defaultValue": "3000"
                    },
                    "TITLE": {
                      "isOptional": true,
                      "description": "Browser tab title for the desktop.",
                      "defaultValue": "Linux Desktop"
                    },
                    "PASSWORD": {
                      "isOptional": false,
                      "description": "Login password for the desktop session. This gates a full Linux desktop with sudo - keep it strong.",
                      "defaultValue": "{{PASSWORD}}"
                    },
                    "CUSTOM_USER": {
                      "isOptional": false,
                      "description": "Login username for the desktop session.",
                      "defaultValue": "admin"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:3000": {
                        "port": 3000
                      }
                    }
                  },
                  "volumeMounts": {
                    "b8db7b45-d8d6-4f11-8199-42015c35a0fb": {
                      "mountPath": "/config"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "linux-desktop",
      "method": "GET",
      "path": "/healthcheck",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-08T05:54:19.399Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-08T00:07:11.958Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_2249d6f577ba40b2888a",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 309,
    "typical_build_seconds": 61,
    "typical_start_seconds": 162,
    "slowest_service": "linux-desktop"
  }
}
