4 ms·
Ask HN: How is your docker based production flow?
Hello, I've started to use docker and docker-compose recently and I've been enjoying so far!
Just wondering how everyone is using docker in their production environment, I am doing a side project to learn docker & django and basically what I do is:
git push -> webhook -> run tests -> tag images -> docker push image to docker hub.
Then I am using docker machine to an AWS instance (ec2), in which I connect and docker pull the images and then docker-compose up -d
This is probably not the best set up so I am open to suggestions / learn from you :)
Cheers
- mjhea0 11y agohttps://realpython.com/blog/python/django-development-with-docker-compose-and-machine/ https://realpython.com/blog/python/django-development-with-d...
- aprdm 11y agoThat was one of my starting points and I am one of the guys asking lots of questions on Disqus haha that's the repo I've made out of it -> https://github.com/andrecp/django-tutorial-docker-nginx-postgres https://github.com/andrecp/django-tutorial-docker-nginx-post... and I am using a setup close to this in my side project, only changed the nginx conf which was my first one and was terrible
- dennybritz 11y agoI am using Rancher (https://github.com/rancher/rancher https://github.com/rancher/rancher) to deploy my containers to AWS and have been pretty happy with it so far. It has a nice UI, good documentation and all the features I need (except for data container persistence, but that's coming soon). I like that it plays nicely with docker-compose files. I previously used Kubernetes (http://kubernetes.io/ http://kubernetes.io/) to deploy my containers. It's a very powerful platform, but documentation and usability is seriously lacking compared to Rancher. Kubernetes seems like a good choice if you run a large datacenter and need a lot of control. For a small company the management overhead isn't worth it IMO.
- kitwalker12 11y agoThanks for this info. I'm going to try this out. We host on rackspace and kubernetes wasn't playing well with networking on rackspace nodes.