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

Summary


In this chapter, we saw how you can solve the problem of having multiple containers that want to serve data on the same public port. We learned what a proxy server and reverse proxy server is and how a reverse proxy is used in load balancing.

We installed and configured two different reverse proxies: HAProxy and Nginx. In my workflow, the Nginx setup fits better, just copying a file, replacing a few words, and then reloading Nginx to have it working. HAProxy might work better in your setup; the choice is yours and one cannot be said to be better than the other.

nginx-proxy automates the process of creating a reverse proxy for containers that are started and is an OK solution for a PaaS, except for one thing: easy and straightforward deployment. That's what the next chapter is all about.