{
  "manifest_version": "1.0.0",
  "template": {
    "id": "702a54f5-8454-4d53-97ab-b96179fb2b15",
    "slug": "gpt-oss-20b",
    "name": "GPT-OSS 20B",
    "description": "[Jun '26] Self-host GPT-OSS 20B on Railway with a chat UI.",
    "url": "https://railway.com/deploy/gpt-oss-20b",
    "upstream": {
      "image": "ghcr.io/open-webui/open-webui"
    }
  },
  "services": [
    {
      "name": "GPT-OSS 20B",
      "source": {
        "image": "ollama/ollama"
      },
      "needs_volume": true,
      "volume_mount_path": "/root/.ollama",
      "http": false
    },
    {
      "name": "Open-WebUI",
      "source": {
        "image": "ghcr.io/open-webui/open-webui"
      },
      "needs_volume": true,
      "volume_mount_path": "/app/backend/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "OLLAMA_HOST",
      "service": "GPT-OSS 20B",
      "description": "Allows Ollama to listen on all interfaces",
      "secret": false,
      "strategy": "default",
      "default": "::"
    },
    {
      "key": "OLLAMA_ORIGINS",
      "service": "GPT-OSS 20B",
      "description": "Comma-separated list of allowed origins for CORS. Needed if you’re connecting a web app (like OpenWebUI) from a different host/domain",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "OLLAMA_BASE_URL",
      "service": "Open-WebUI",
      "description": "Points OpenWebUI to the internal Ollama API endpoint for model access.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "WEBUI_SECRET_KEY",
      "service": "Open-WebUI",
      "description": "Secret key used by OpenWebUI to secure sessions and authentication.",
      "secret": true,
      "strategy": "default",
      "default": "t0p-s3cr3t"
    },
    {
      "key": "CORS_ALLOW_ORIGIN",
      "service": "Open-WebUI",
      "description": "Allows the web UI to connect from any origin.",
      "secret": false,
      "strategy": "default",
      "default": "*"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "gpt-oss-20b"
      }
    },
    "cli": "railway deploy --template gpt-oss-20b",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "702a54f5-8454-4d53-97ab-b96179fb2b15",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "4e55e339-64cc-477f-bf01-bda2d01a63bd": {
                  "icon": "https://devicons.railway.com/i/chatgpt.svg",
                  "name": "GPT-OSS 20B",
                  "deploy": {
                    "startCommand": "bash -c \"ollama serve & sleep 5 && ollama pull gpt-oss:20b && wait\"",
                    "healthcheckPath": null
                  },
                  "source": {
                    "image": "ollama/ollama"
                  },
                  "variables": {
                    "OLLAMA_HOST": {
                      "isOptional": false,
                      "description": "Allows Ollama to listen on all interfaces",
                      "defaultValue": "::"
                    },
                    "OLLAMA_ORIGINS": {
                      "isOptional": false,
                      "description": "Comma-separated list of allowed origins for CORS. Needed if you’re connecting a web app (like OpenWebUI) from a different host/domain",
                      "defaultValue": "http://${{RAILWAY_PRIVATE_DOMAIN}}:*"
                    }
                  },
                  "volumeMounts": {
                    "4e55e339-64cc-477f-bf01-bda2d01a63bd": {
                      "mountPath": "/root/.ollama"
                    }
                  }
                },
                "c44773dc-723d-4a40-9e58-d9a0f6f62d2f": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/open-webui-light.svg",
                  "name": "Open-WebUI",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null
                  },
                  "source": {
                    "image": "ghcr.io/open-webui/open-webui"
                  },
                  "variables": {
                    "OLLAMA_BASE_URL": {
                      "isOptional": false,
                      "description": "Points OpenWebUI to the internal Ollama API endpoint for model access.",
                      "defaultValue": "http://${{GPT-OSS 20B.RAILWAY_PRIVATE_DOMAIN}}:11434"
                    },
                    "WEBUI_SECRET_KEY": {
                      "isOptional": false,
                      "description": "Secret key used by OpenWebUI to secure sessions and authentication.",
                      "defaultValue": "t0p-s3cr3t"
                    },
                    "CORS_ALLOW_ORIGIN": {
                      "isOptional": false,
                      "description": "Allows the web UI to connect from any origin.",
                      "defaultValue": "*"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "c44773dc-723d-4a40-9e58-d9a0f6f62d2f": {
                      "mountPath": "/app/backend/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T16:14:49.616Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-18T17:48:02.461Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_d4e39459f28a456ea920",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 122,
    "typical_build_seconds": 0,
    "typical_start_seconds": 30,
    "slowest_service": "Open-WebUI"
  }
}
