You will always have preferences when selecting a tool to solve a problem. Sometimes, you select a tool because you're comfortable using it and it's good enough; sometimes, you select it because it has great performance or because you just want to try something new.
That's why we will go through this problem and solve it with two different tools. The end result will be the same, but the tools have a slightly different setup.
Before we start implementing the solutions, we use Crane to start an instance of our three-container application and verify that it's working by connecting it to the site. Have Docker decide the public port for you, so it's 491XX
. Remember this port since we will use it when implementing the solutions.
We need to point out the domain names we want to use to our Docker host's IP address. We can do this either by setting the domain names A-record to our server's IP address or by adding a line in our local /etc/hosts
file, which directs requests to...