{
  "manifest_version": "1.0.0",
  "template": {
    "id": "abbf269f-9d8d-4a2f-8b30-a2540b239948",
    "slug": "ubuntu-desktop-1",
    "name": "Ubuntu Desktop",
    "description": "Ubuntu desktop in your browser with Claude Code, Codex, Chrome and VS Code",
    "url": "https://railway.com/deploy/ubuntu-desktop-1",
    "upstream": {
      "repo_url": "https://github.com/dektionstudio/railway-template-images"
    }
  },
  "services": [
    {
      "name": "Ubuntu Desktop",
      "source": {
        "repo": "https://github.com/dektionstudio/railway-template-images"
      },
      "needs_volume": true,
      "volume_mount_path": "/config",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "TZ",
      "service": "Ubuntu Desktop",
      "description": "Time zone, e.g. Europe/Berlin",
      "secret": false,
      "strategy": "default",
      "default": "Etc/UTC"
    },
    {
      "key": "PGID",
      "service": "Ubuntu Desktop",
      "description": "Group id the desktop runs as",
      "secret": false,
      "strategy": "default",
      "default": "1000"
    },
    {
      "key": "PORT",
      "service": "Ubuntu Desktop",
      "description": "Port Railway routes to",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "PUID",
      "service": "Ubuntu Desktop",
      "description": "User id the desktop runs as",
      "secret": false,
      "strategy": "default",
      "default": "1000"
    },
    {
      "key": "TITLE",
      "service": "Ubuntu Desktop",
      "description": "Browser tab title",
      "secret": false,
      "strategy": "default",
      "default": "Ubuntu Desktop"
    },
    {
      "key": "PASSWORD",
      "service": "Ubuntu Desktop",
      "description": "Login password (generated). The desktop won't start without one",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "CUSTOM_USER",
      "service": "Ubuntu Desktop",
      "description": "Login name for the desktop",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "DESKTOP_URL",
      "service": "Ubuntu Desktop",
      "description": "Open this and sign in with CUSTOM_USER and PASSWORD",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "ubuntu-desktop-1"
      }
    },
    "cli": "railway deploy --template ubuntu-desktop-1",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "abbf269f-9d8d-4a2f-8b30-a2540b239948",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "a7aa6168-cbb2-4a18-9649-21447c6a5791": {
                  "icon": "https://devicons.railway.com/i/ubuntu.svg",
                  "name": "Ubuntu Desktop",
                  "deploy": {
                    "healthcheckPath": "/railway-health",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 300,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "dektionstudio/railway-template-images",
                    "rootDirectory": "/ubuntu-desktop"
                  },
                  "variables": {
                    "TZ": {
                      "isOptional": false,
                      "description": "Time zone, e.g. Europe/Berlin",
                      "defaultValue": "Etc/UTC"
                    },
                    "PGID": {
                      "isOptional": false,
                      "description": "Group id the desktop runs as",
                      "defaultValue": "1000"
                    },
                    "PORT": {
                      "isOptional": false,
                      "description": "Port Railway routes to",
                      "defaultValue": "3000"
                    },
                    "PUID": {
                      "isOptional": false,
                      "description": "User id the desktop runs as",
                      "defaultValue": "1000"
                    },
                    "TITLE": {
                      "isOptional": false,
                      "description": "Browser tab title",
                      "defaultValue": "Ubuntu Desktop"
                    },
                    "PASSWORD": {
                      "isOptional": false,
                      "description": "Login password (generated). The desktop won't start without one",
                      "defaultValue": "{{PASSWORD}}"
                    },
                    "CUSTOM_USER": {
                      "isOptional": false,
                      "description": "Login name for the desktop",
                      "defaultValue": "admin"
                    },
                    "DESKTOP_URL": {
                      "isOptional": false,
                      "description": "Open this and sign in with CUSTOM_USER and PASSWORD",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "OPENAI_API_KEY": {
                      "isOptional": true,
                      "description": "Optional: for Codex (or sign in with ChatGPT from the desktop)",
                      "defaultValue": ""
                    },
                    "ANTHROPIC_API_KEY": {
                      "isOptional": true,
                      "description": "Optional: for Claude Code (or sign in with your Claude account from the desktop)",
                      "defaultValue": ""
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {
                      "<hasDomain>:3000": {
                        "port": 3000
                      }
                    }
                  },
                  "volumeMounts": {
                    "b782630d-61ae-47da-99df-1e9921db31d1": {
                      "mountPath": "/config"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Ubuntu Desktop",
      "method": "GET",
      "path": "/railway-health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-10-18T10:14:45.913Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-10-18T07:34:32.442Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_36b78b1081c349a69193",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 249,
    "typical_build_seconds": 202,
    "typical_start_seconds": 30,
    "slowest_service": "Ubuntu Desktop"
  }
}
