O'Reilly logo

Build Your Own PaaS with Docker by Oskar Hane

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 3. Creating Our First PaaS Image

You are now ready to write your own Dockerfiles, publish them to the Docker Registry Hub, and create containers for them. In this chapter you will:

  • Build your own image on top of another
  • Host your Dockerfiles in your GitHub account
  • Publish an image on the Docker Registry Hub

The WordPress image

For this project, we are going to use the official WordPress Docker image as a base, which has Apache2 as its web server.

Note

If you plan to host sites with a lot of traffic, I would recommend using an image based on Nginx instead of Apache2 as the web server. I have had great success running WordPress sites with Nginx and the memcached plugin, WP-FFPC. It can be a bit tricky to set up, and that's why it's out of the scope ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required