TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Production-ready Django on Docker

6 点作者 morninj超过 9 年前

2 条评论

brianwawok超过 9 年前
So I really want to believe in docker. In general I think the idea of containers are awesome, and they can be awesome in a lot of ways. Have seen them do awesome things for some complex setups.<p>I honestly do not see what you are getting here though other than just saying &quot;I used docker&quot;. Let&#x27;s compare this to a simple alternative that I used learning DJango:<p>1) Local - Dev server with virtualenv<p>2) Prod - Set of ansible scripts applied on top of a default AMI or image from a cloud provider. This adds nginx and gnuicorn and all the stuff you would expect. Runs the same virtualenv stuff used above.<p>The dev experience seems better in my way, as dev server handles reloads easier.<p>My prod experience should have some tiny perf boost (as it&#x27;s just in a VPC container vs a container in a container). Deployments should be faster as it is just a git pull and a gnuicorn bounce. What do I give up?<p>An example of the prod ansible stack would be <a href="https:&#x2F;&#x2F;github.com&#x2F;jcalazan&#x2F;ansible-django-stack" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;jcalazan&#x2F;ansible-django-stack</a> , but there are others (or you can write your own).
cjbprime超过 9 年前
Huh. Why do you think putting a bunch of services all inside a single Docker container is a good idea for production?
评论 #11131146 未加载