{
  "manifest_version": "1.0.0",
  "template": {
    "id": "11952f94-0f3c-4042-9655-fd2cf4be54bb",
    "slug": "code-server-4",
    "name": "code-server",
    "description": "VS Code in the browser with Claude Code and Codex, a password and a volume",
    "url": "https://railway.com/deploy/code-server-4",
    "upstream": {
      "repo_url": "https://github.com/dektionstudio/railway-template-images"
    }
  },
  "services": [
    {
      "name": "code-server",
      "source": {
        "repo": "https://github.com/dektionstudio/railway-template-images"
      },
      "needs_volume": true,
      "volume_mount_path": "/home/coder",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "code-server",
      "description": "Port Railway routes to",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "PASSWORD",
      "service": "code-server",
      "description": "Login password (generated)",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "CODE_SERVER_URL",
      "service": "code-server",
      "description": "Open this and sign in with PASSWORD",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "code-server-4"
      }
    },
    "cli": "railway deploy --template code-server-4",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "11952f94-0f3c-4042-9655-fd2cf4be54bb",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "9a87eadb-1302-47c0-adeb-7df16998e1db": {
                  "icon": "https://raw.githubusercontent.com/dektionstudio/railway-template-images/73c3a41e2a60d9e97c6eb0056d65676e015d0e60/code-server/icon.png",
                  "name": "code-server",
                  "deploy": {
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 120,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "dektionstudio/railway-template-images",
                    "rootDirectory": "/code-server"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port Railway routes to",
                      "defaultValue": "8080"
                    },
                    "PASSWORD": {
                      "isOptional": false,
                      "description": "Login password (generated)",
                      "defaultValue": "{{PASSWORD}}"
                    },
                    "OPENAI_API_KEY": {
                      "isOptional": true,
                      "description": "Optional: for Codex in the terminal (or sign in with ChatGPT)",
                      "defaultValue": ""
                    },
                    "CODE_SERVER_URL": {
                      "isOptional": false,
                      "description": "Open this and sign in with PASSWORD",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "ANTHROPIC_API_KEY": {
                      "isOptional": true,
                      "description": "Optional: for Claude Code in the terminal (or sign in with your Claude account)",
                      "defaultValue": ""
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "ebe444eb-8ca7-4402-a0c3-e6e63deb1f7e": {
                      "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-10-08T22:14:43.517Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-10-08T20:11:27.453Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_d34b61eee31b4aaa8d09",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 138,
    "typical_build_seconds": 101,
    "typical_start_seconds": 20,
    "slowest_service": "code-server"
  }
}
