{
  "manifest_version": "1.0.0",
  "template": {
    "id": "8ab75290-e696-40ba-a4b7-ce4c464b7c89",
    "slug": "codeserver",
    "name": "Code Server",
    "description": "VS Code running on a server, opened in a web browser",
    "url": "https://railway.com/deploy/codeserver",
    "upstream": {
      "repo_url": "https://github.com/gridalpha/code-server-railway"
    }
  },
  "services": [
    {
      "name": "code-server",
      "source": {
        "repo": "https://github.com/gridalpha/code-server-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/home/coder",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "code-server",
      "description": "HTTP port code-server listens on",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "PASSWORD",
      "service": "code-server",
      "description": "Login password for the editor",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "WORKSPACE_DIR",
      "service": "code-server",
      "description": "Folder opened after sign-in",
      "secret": false,
      "strategy": "default",
      "default": "/home/coder/project"
    },
    {
      "key": "CODE_SERVER_APP_NAME",
      "service": "code-server",
      "description": "Name shown in the browser",
      "secret": false,
      "strategy": "default",
      "default": "code-server"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "code-server",
      "description": "Clean shutdown window",
      "secret": false,
      "strategy": "default",
      "default": "30"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "codeserver"
      }
    },
    "cli": "railway deploy --template codeserver",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "8ab75290-e696-40ba-a4b7-ce4c464b7c89",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "2c1db332-c6c0-43ee-a653-aae22bcc5076": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/code-server.png",
                  "name": "code-server",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/code-server-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP port code-server listens on",
                      "defaultValue": "8080"
                    },
                    "PASSWORD": {
                      "isOptional": false,
                      "description": "Login password for the editor",
                      "defaultValue": "{{PASSWORD}}"
                    },
                    "WORKSPACE_DIR": {
                      "isOptional": false,
                      "description": "Folder opened after sign-in",
                      "defaultValue": "/home/coder/project"
                    },
                    "CODE_SERVER_APP_NAME": {
                      "isOptional": false,
                      "description": "Name shown in the browser",
                      "defaultValue": "code-server"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Clean shutdown window",
                      "defaultValue": "30"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "2c1db332-c6c0-43ee-a653-aae22bcc5076": {
                      "mountPath": "/home/coder"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "code-server",
      "method": "GET",
      "path": "/healthz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-19T10:14:38.021Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-19T12:51:25.696Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_afe110e1ddce44a2ba17",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 171,
    "typical_build_seconds": 81,
    "typical_start_seconds": 10,
    "slowest_service": "code-server"
  }
}
