展示HN:Disco – 我希望几年前就存在的自托管平台

8作者: gregsadetsky9 天前原帖
大家好,过去一年半,我和我的联合创始人安托万一直在开发Disco,这是一个开源的部署平台,可以让你在单个服务器上托管多个Web应用程序:<a href="https:&#x2F;&#x2F;disco.cloud&#x2F;" rel="nofollow">https:&#x2F;&#x2F;disco.cloud&#x2F;</a> 在厌倦了像Heroku和Render这样的平台高昂的按项目定价,并对Kubernetes的复杂性感到沮丧后,我们创建了一个平台,既具备商业解决方案的精致和便利,又作为一个开源项目,可以在任何地方运行。Disco为你提供了一个简化的体验(即干净的命令行界面和Web用户界面),同时享有自托管的自由和经济性。 主要特点: - 从GitHub部署,快速部署时间——从git push到上线,我们的主要静态网站在2秒内完成部署(真的);一个中等规模的Django应用大约在25秒内完成部署 - 在单个服务器上托管多个项目,与按项目定价相比,成本降低50%以上 - 支持Node、Rust、Python、Django、Rails、静态网站等多种技术 - 包含“足够好”的Postgres,适用于不需要企业级功能的项目 - 提供API密钥以便团队访问,而不是SSH密钥管理 - 可以在自己的基础设施上运行——从云虚拟机到树莓派再到本地服务器 - 内置水平扩展——添加服务器以分担负载并增加容量 - 可选地,让我们为你管理基础设施:相同的开源堆栈,但减少了担忧 一个实际案例:我们将高流量网站idealist.org的预发布环境从Heroku迁移到Disco,使用一台每月50美元的服务器,现在托管6个预发布环境。在Heroku,每个环境的费用为500美元/月(总计3000美元)。我们还将Idealist的所有生产前端SSR渲染迁移到Disco,以五分之一的成本获得更好的稳定性。 我个人将我的一些爱好网站迁移到了家里的树莓派上,为我节省了数百美元,这些应用之前在Heroku和Render上托管。关于这个话题,可以查看我在Recurse Center的(不理智的)Localhost演讲——<a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=z2lP7C8VT6M" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=z2lP7C8VT6M</a> 说到Recurse,我们在那儿托管了一个“社区”Disco安装,即一个共享的8GB树莓派,目前托管着52个(静态/后端/go/python/rust等)Web项目。这也是一个有趣的用例! 总结:Disco非常适合DIY自托管者和寻找更具成本效益的部署平台的团队。现在可以自托管(免费且开源)或作为托管服务使用。 试试看 <a href="https:&#x2F;&#x2F;disco.cloud&#x2F;" rel="nofollow">https:&#x2F;&#x2F;disco.cloud&#x2F;</a>,欢迎在这里或我们的Discord上告诉我们你的想法。谢谢!
查看原文
Hey HN, for the past 1.5 years my cofounder Antoine and I have been building Disco, an Open Source deployment platform that lets you host multiple web apps on a single server: <a href="https:&#x2F;&#x2F;disco.cloud&#x2F;" rel="nofollow">https:&#x2F;&#x2F;disco.cloud&#x2F;</a><p>After getting tired of high per-project pricing on platforms like Heroku and Render, and frustrated with Kubernetes&#x27; complexity, we created a platform with all the polish and convenience of commercial solutions, but as an Open Source project you can run anywhere. Disco gives you a streamlined experience (ie a clean CLI and web UI) with the freedom and economics of self-hosting.<p>Key features:<p>- Deploy from GitHub with fast deployment times - from git push to being live, our main static site deploys in 2 seconds (really); a medium sized Django app deploys in ~25 seconds<p>- Host multiple projects on a single server, cutting costs by 50%+ compared to per-project pricing<p>- Works with Node, Rust, Python, Django, Rails, static sites, and more<p>- Includes &quot;good enough&quot; Postgres for projects that don&#x27;t need enterprise features<p>- API keys for team access instead of SSH key management<p>- Run on your own infrastructure - from cloud VMs to Raspberry Pis to on-prem<p>- Built-in horizontal scaling - add servers to distribute the load and increase capacity<p>- Optionally, let us manage the infra for you: same Open Source stack, but less to worry about<p>A real-world example: We moved idealist.org &#x27;s staging environments, a highly trafficked site, from Heroku to Disco on a single $50&#x2F;month server, which now hosts 6 staging environments. On Heroku, each would have cost $500&#x2F;month ($3k total). We also moved all of Idealist&#x27;s production frontend SSR rendering to Disco, getting better stability at 1&#x2F;5th of the cost.<p>I personally moved a number of my hobby sites to a Raspberry Pi that sits at home, saving me hundreds for apps that used to be at Heroku and Render. See my (unhinged) Localhost talk at the Recurse Center about this - <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=z2lP7C8VT6M" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=z2lP7C8VT6M</a><p>Speaking of Recurse, we host a &quot;community&quot; Disco installation there i.e. a shared 8Gb Raspberry Pi that&#x27;s hosting 52 (static&#x2F;backend&#x2F;go&#x2F;python&#x2F;rust, etc.) web projects at the time of this writing. That&#x27;s also a fun use case!<p>TLDR: Disco is perfect for both DIY self-hosters and teams looking for a more cost-effective deployment platform. Available now for self-hosting (free and Open Source) or as a managed service.<p>Try it out <a href="https:&#x2F;&#x2F;disco.cloud&#x2F;" rel="nofollow">https:&#x2F;&#x2F;disco.cloud&#x2F;</a> and let us know what you think here or on our Discord. Cheers!