TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Production Quality MongoDB Setup with Docker

42 pointsby arunodaover 11 years ago

5 comments

paultover 11 years ago
Docker is <i>awesome</i> and I&#x27;ve totally redesigned my development workflow around it. Instead of running a monolithic dev server with dependencies for every project I start (mongodb, mysql, ruby, a giant mess of gems, node, memcached, jvm, etc etc--at a certain point these things start stepping on each others toes), I have a docker image for each dependency and configure a cluster for each project. Source version control is handled independently by simply mounting a project&#x27;s root folder on each container and passing around config files. File system layering means the container branches for each project only take up as much disk space as whatever gems or node packages they don&#x27;t have in common. For me, the moment I &quot;got&quot; docker felt like the first time I really understood the git workflow. Starting a new project is now a matter of minutes instead of hours, and the reduced friction allows for tons of experimentation that I would have avoided before. It&#x27;s also fun to be able to spin up a 12 server mongo cluster on a single VM and watch how the sharding and replication works with different key schemes. I really can&#x27;t say enough good things about the project, with the caveat that I&#x27;ve only used it for local development so far. I&#x27;m super excited to see where it goes once it hits 1.0.
评论 #6492848 未加载
_lexover 11 years ago
Docker is awesome, but specifically NOT ready for production.<p>From Docker&#x27;s website &quot;we make a point of saying that we’re not production ready&quot;.<a href="http://blog.docker.io/2013/08/getting-to-docker-1-0/" rel="nofollow">http:&#x2F;&#x2F;blog.docker.io&#x2F;2013&#x2F;08&#x2F;getting-to-docker-1-0&#x2F;</a><p>While I love your enthusiasm, I worry that you&#x27;ll mislead others into thinking that its a good idea to replicate your setup and run something important.
评论 #6464701 未加载
gmonacoover 11 years ago
I&#x27;ve been checking out all of this new stuff recently, like <a href="http://www.packer.io" rel="nofollow">http:&#x2F;&#x2F;www.packer.io</a> and <a href="http://www.coreos.com" rel="nofollow">http:&#x2F;&#x2F;www.coreos.com</a>. It all seems cool, but I can&#x27;t help but think it&#x27;s too little too late.<p>I want to deploy at the application level, not the OS image level. The abstraction that I want is:<p>Servers: Something that runs applications. Could be a physical server, an instance on EC2, or a local process, etc.<p>Applications: My code. Black boxes.<p>I want to be able to boot up a new server and throw some applications on it, like a new MongoDB shard or whatever. Then tear some applications down, or tear whole servers down.<p>And I want it all to be managed by a RESTful API over HTTP so that I can write a script to automate deployment, and even automate the scaling of my service.<p>I think you can do it with just Docker, a bare Linux distro, and a few scripts.<p>Does this exist yet?
评论 #6464014 未加载
googamoogaover 11 years ago
I&#x27;ve been playing with docker, mongodb, hipache and meteor app a month ago, and I&#x27;d like to say that it was great experience. Here is my collection of scripts of Dockerfiles which allow you to run multiple instances of Meteor app behind hipache reverse proxy. MongoDB data is persisted using docker volumes too. <a href="https://github.com/vlebedev/docker-test" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;vlebedev&#x2F;docker-test</a>
评论 #6464653 未加载
评论 #6464635 未加载
binocarlosover 11 years ago
Great summary - especially spinning up another container to use as the client - I was wondering how to do that : )<p>Docker is seriously another planet of cool!
评论 #6463885 未加载