Totally Dockerized, Introduction
In this series of posts I’m going to show how I set up a much more slick Docker hosting environment and migrated several websites to it. I’ll cover how I used Docker Compose and Docker Machine, along with some really handy Docker containers from Github. I’ll also describe a lot of the gotchas and quirks I encountered along the way.
After my last post, I had a long todo list of things to change with the hosting of the websites I’m using. I was using Vagrant with the AWS provider to run an EC2 instance to host my Docker containers. Each container was a separate website and I ran haproxy on the host machine to direct traffic to the right site. I also hacked together a setup using Dropbox so different people could update the content of their own sites. It all worked, it just didn’t seem entirely… dockerish. I wanted a setup where I could recreate the whole thing by running one command, and not rely on hand editing or configuring anything.