{
  "manifest_version": "1.0.0",
  "template": {
    "id": "bd5d5420-9a6c-417d-b17a-050442f928e0",
    "slug": "linux",
    "name": "Linux",
    "description": "Linux server: SSH, web terminal, apps that stay up, installs that persist.",
    "url": "https://railway.com/deploy/linux",
    "upstream": {
      "image": "ghcr.io/two-workspaces/linux:47b1db8"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "linux",
      "source": {
        "image": "ghcr.io/two-workspaces/linux:47b1db8"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "tcp_ports": [
        22
      ],
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "TZ",
      "service": "linux",
      "description": "Time zone inside the server.",
      "secret": false,
      "strategy": "default",
      "default": "UTC"
    },
    {
      "key": "PORT",
      "service": "linux",
      "description": "Port of the server's web front (app, /terminal/, /healthcheck). Do not change.",
      "secret": false,
      "strategy": "default",
      "default": "7681"
    },
    {
      "key": "APP_PORT",
      "service": "linux",
      "description": "Port your app listens on inside the server. Whatever runs there is served at this service's Railway domain.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "WEB_USER",
      "service": "linux",
      "description": "Username for the web terminal at /terminal/.",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "WEB_PASSWORD",
      "service": "linux",
      "description": "Password for the web terminal at /terminal/. This gates root access to the server - keep it strong.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "ROOT_PASSWORD",
      "service": "linux",
      "description": "Password for `ssh root@<tcp-proxy-host> -p <port>`. Clear it to allow key-only SSH login.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_HEALTHCHECK_TIMEOUT_SEC",
      "service": "linux",
      "description": "How long the first boot may take before the healthcheck gives up. Small plans start this image slowly, so allow 10 minutes. Do not change.",
      "secret": false,
      "strategy": "default",
      "default": "600"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "linux"
      }
    },
    "cli": "railway deploy --template linux",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "bd5d5420-9a6c-417d-b17a-050442f928e0",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "d4fb81d9-f888-42cd-a8d8-caa891e1ea26": {
                  "icon": "https://devicons.railway.com/i/linux.svg",
                  "name": "linux",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/healthcheck",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/two-workspaces/linux:47b1db8"
                  },
                  "variables": {
                    "TZ": {
                      "isOptional": false,
                      "description": "Time zone inside the server.",
                      "defaultValue": "UTC"
                    },
                    "PORT": {
                      "isOptional": false,
                      "description": "Port of the server's web front (app, /terminal/, /healthcheck). Do not change.",
                      "defaultValue": "7681"
                    },
                    "APP_PORT": {
                      "isOptional": false,
                      "description": "Port your app listens on inside the server. Whatever runs there is served at this service's Railway domain.",
                      "defaultValue": "8080"
                    },
                    "WEB_USER": {
                      "isOptional": false,
                      "description": "Username for the web terminal at /terminal/.",
                      "defaultValue": "admin"
                    },
                    "WEB_PASSWORD": {
                      "isOptional": false,
                      "description": "Password for the web terminal at /terminal/. This gates root access to the server - keep it strong.",
                      "defaultValue": "{{WEB_PASSWORD}}"
                    },
                    "ROOT_PASSWORD": {
                      "isOptional": false,
                      "description": "Password for `ssh root@<tcp-proxy-host> -p <port>`. Clear it to allow key-only SSH login.",
                      "defaultValue": "{{ROOT_PASSWORD}}"
                    },
                    "AUTHORIZED_KEYS": {
                      "isOptional": true,
                      "description": "SSH public key(s), one per line, for key-based root login.",
                      "defaultValue": ""
                    },
                    "RAILWAY_HEALTHCHECK_TIMEOUT_SEC": {
                      "isOptional": false,
                      "description": "How long the first boot may take before the healthcheck gives up. Small plans start this image slowly, so allow 10 minutes. Do not change.",
                      "defaultValue": "600"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "22": {}
                    },
                    "serviceDomains": {
                      "<hasDomain>:7681": {
                        "port": 7681
                      }
                    }
                  },
                  "volumeMounts": {
                    "d4fb81d9-f888-42cd-a8d8-caa891e1ea26": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "linux",
      "method": "GET",
      "path": "/healthcheck",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-11-08T16:15:10.586Z",
  "generator_version": "0.1.0"
}
