{
  "manifest_version": "1.0.0",
  "template": {
    "id": "2cb15569-0325-4595-9605-80fe7d464f96",
    "slug": "debian-desktop-web-gui",
    "name": "Debian Desktop (Web GUI)",
    "description": "A real XFCE Debian desktop in the browser, not just a web terminal.",
    "url": "https://railway.com/deploy/debian-desktop-web-gui",
    "upstream": {
      "image": "linuxserver/webtop:debian-xfce"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "desktop",
      "source": {
        "image": "linuxserver/webtop:debian-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": "Debian Desktop"
    },
    {
      "key": "PASSWORD",
      "service": "desktop",
      "description": "Password for the desktop's browser login. Never leave this blank.",
      "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 so it can set up the volume.",
      "secret": false,
      "strategy": "default",
      "default": "0"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "debian-desktop-web-gui"
      }
    },
    "cli": "railway deploy --template debian-desktop-web-gui",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "2cb15569-0325-4595-9605-80fe7d464f96",
            "serializedConfig": {
              "services": {
                "65400300-2057-42b2-a523-86ed4b7a1413": {
                  "icon": "https://raw.githubusercontent.com/XenaaLangliss/debian-railway/refs/heads/main/assets/debian.png",
                  "name": "desktop",
                  "deploy": {
                    "startCommand": "/bin/sh -c 'XD=/config/.config/xfce4/xfconf/xfce-perchannel-xml\nif [ ! -f $XD/xfce4-desktop.xml ]; then\n  mkdir -p $XD\n  cat > $XD/xfce4-desktop.xml <<\\XMLEOF\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<channel name=\"xfce4-desktop\" version=\"1.0\">\n  <property name=\"backdrop\" type=\"empty\">\n    <property name=\"screen0\" type=\"empty\">\n      <property name=\"monitorselkies-primary\" type=\"empty\">\n        <property name=\"workspace0\" type=\"empty\">\n          <property name=\"color-style\" type=\"int\" value=\"0\"/>\n          <property name=\"image-style\" type=\"int\" value=\"5\"/>\n          <property name=\"last-image\" type=\"string\" value=\"/usr/share/backgrounds/xfce/xfce-blue.jpg\"/>\n        </property>\n      </property>\n    </property>\n  </property>\n</channel>\nXMLEOF\n  chown -R 1000:1000 /config/.config\nfi\nexec /init'",
                    "healthcheckPath": null,
                    "restartPolicyType": "ALWAYS"
                  },
                  "source": {
                    "image": "linuxserver/webtop:debian-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": "Debian Desktop"
                    },
                    "PASSWORD": {
                      "isOptional": false,
                      "description": "Password for the desktop's browser login. Never leave this blank.",
                      "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 so it can set up the volume.",
                      "defaultValue": "0"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {
                      "<hasDomain>": {
                        "port": 3000
                      }
                    }
                  },
                  "volumeMounts": {
                    "65400300-2057-42b2-a523-86ed4b7a1413": {
                      "mountPath": "/config"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-04T17:54:19.363Z",
  "generator_version": "0.1.0"
}
