Skip to Content
Infrastructure as Code Cookbook
book

Infrastructure as Code Cookbook

by Stephane Jourdan, Pierre Pomès
February 2017
Intermediate to advanced
440 pages
8h 45m
English
Packt Publishing
Content preview from Infrastructure as Code Cookbook

Using Docker in Vagrant for a Ghost blog behind NGINX

Vagrant in Docker can be used more usefully to simulate traditional setups such as an application behind a load balancer or a reverse proxy. We've already set up NGINX, so what about using it as a front reverse proxy with a blog engine such as Ghost behind it? We'll end up by showing how to do something similar with docker-compose.

Getting ready

To step through this recipe, you will need the following:

  • A working Vagrant installation (no hypervisor needed)
  • A working Docker installation and basic Docker knowledge
  • An Internet connection

How to do it…

The previous example allows only one container to be launched simultaneously, which is sad considering the power of Docker. Let's define multiple containers ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Infrastructure as Code

Infrastructure as Code

Kief Morris
Implementing Modern DevOps

Implementing Modern DevOps

David Gonzalez, Danny Varghese

Publisher Resources

ISBN: 9781786464910