{
  "manifest_version": "1.0.0",
  "template": {
    "id": "55b1fbab-07d5-4bbf-b5b8-b8a976561403",
    "slug": "ubuntu-linux-web-desktop",
    "name": "Ubuntu Linux (Web Desktop)",
    "description": "A real XFCE Ubuntu desktop in the browser, not just a web terminal.",
    "url": "https://railway.com/deploy/ubuntu-linux-web-desktop",
    "upstream": {
      "image": "linuxserver/webtop:ubuntu-xfce"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "desktop",
      "source": {
        "image": "linuxserver/webtop:ubuntu-xfce"
      },
      "needs_volume": true,
      "volume_mount_path": "/config",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "TZ",
      "service": "desktop",
      "description": "Timezone for the desktop clock, e.g. Europe/Amsterdam.",
      "secret": false,
      "strategy": "default",
      "default": "Etc/UTC"
    },
    {
      "key": "PGID",
      "service": "desktop",
      "description": "Group ID owning /config. Leave at 1000 unless you wipe the volume.",
      "secret": false,
      "strategy": "default",
      "default": "1000"
    },
    {
      "key": "PORT",
      "service": "desktop",
      "description": "Port Railway routes to. Must stay 3000, the port the image binds.",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "PUID",
      "service": "desktop",
      "description": "User ID owning /config. Leave at 1000 unless you wipe the volume.",
      "secret": false,
      "strategy": "default",
      "default": "1000"
    },
    {
      "key": "TITLE",
      "service": "desktop",
      "description": "Browser tab title shown for the desktop.",
      "secret": false,
      "strategy": "default",
      "default": "Ubuntu Desktop"
    },
    {
      "key": "PASSWORD",
      "service": "desktop",
      "description": "Password for the desktop's browser login",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "CUSTOM_USER",
      "service": "desktop",
      "description": "Username for the desktop's browser login.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "desktop",
      "description": "Runs the main process as root",
      "secret": false,
      "strategy": "default",
      "default": "0"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "ubuntu-linux-web-desktop"
      }
    },
    "cli": "railway deploy --template ubuntu-linux-web-desktop",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "55b1fbab-07d5-4bbf-b5b8-b8a976561403",
            "serializedConfig": {
              "services": {
                "23ef64c2-0ca9-4c8b-bb37-ad48438e3f29": {
                  "icon": "https://devicons.railway.com/i/ubuntu.svg",
                  "name": "desktop",
                  "deploy": {
                    "startCommand": "/bin/sh -c 'rm -f /etc/apt/apt.conf.d/20packagekit; sed -i \"s|listen \\[::\\]:3000 default_server;|listen [::]:3000 default_server;\\n  location = /railway-healthz { auth_basic off; return 200; }|\" /defaults/default.conf; grep -q railway-healthz /defaults/default.conf || { echo \"FATAL: webtop nginx config changed upstream, healthcheck patch failed\" >&2; exit 1; }; exec /init'",
                    "healthcheckPath": "/railway-healthz",
                    "restartPolicyType": "ALWAYS"
                  },
                  "source": {
                    "image": "linuxserver/webtop:ubuntu-xfce"
                  },
                  "variables": {
                    "TZ": {
                      "isOptional": false,
                      "description": "Timezone for the desktop clock, e.g. Europe/Amsterdam.",
                      "defaultValue": "Etc/UTC"
                    },
                    "PGID": {
                      "isOptional": false,
                      "description": "Group ID owning /config. Leave at 1000 unless you wipe the volume.",
                      "defaultValue": "1000"
                    },
                    "PORT": {
                      "isOptional": false,
                      "description": "Port Railway routes to. Must stay 3000, the port the image binds.",
                      "defaultValue": "3000"
                    },
                    "PUID": {
                      "isOptional": false,
                      "description": "User ID owning /config. Leave at 1000 unless you wipe the volume.",
                      "defaultValue": "1000"
                    },
                    "TITLE": {
                      "isOptional": false,
                      "description": "Browser tab title shown for the desktop.",
                      "defaultValue": "Ubuntu Desktop"
                    },
                    "PASSWORD": {
                      "isOptional": false,
                      "description": "Password for the desktop's browser login",
                      "defaultValue": "{{PASSWORD}}"
                    },
                    "CUSTOM_USER": {
                      "isOptional": false,
                      "description": "Username for the desktop's browser login.",
                      "defaultValue": "{{CUSTOM_USER}}"
                    },
                    "RAILWAY_RUN_UID": {
                      "isOptional": false,
                      "description": "Runs the main process as root",
                      "defaultValue": "0"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {
                      "<hasDomain>": {
                        "port": 3000
                      }
                    }
                  },
                  "volumeMounts": {
                    "23ef64c2-0ca9-4c8b-bb37-ad48438e3f29": {
                      "mountPath": "/config"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "desktop",
      "method": "GET",
      "path": "/railway-healthz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-13T22:14:35.692Z",
  "generator_version": "0.1.0"
}
