Book Image

Build Your Own PaaS with Docker

By : Oskar Hane
Book Image

Build Your Own PaaS with Docker

By: Oskar Hane

Overview of this book

<p>Docker is a great tool in many ways for developers and people in DevOps.</p> <p>We begin by learning how easy it is to create and publish your own customized Docker images and making them available to everyone. We also see how practical it is to separate every service to its own container. When you have published separated service containers, the process of running all kinds of platforms in the same server for easier cloud computing is a walk in the park.</p> <p>This book walks you through a use case project that will teach you how to customize and create your own Docker image, allowing you to run any platform you want. The project evolves throughout the book and emerges as a complete three containers Wordpress/MySQL platform when finished.</p> <p>By the end of the book, you will know how to create such a container on a Wordpress/MySQL platform, among others.</p>
Table of Contents (15 chapters)
Build Your Own PaaS with Docker
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Implementing the solution


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...