In this topic, we are going to deploy the same container using
docker-compose with a twist. The twist is with Puppet, where we can turn the
docker-compose.yml file into
docker-compose.yml.erb. This allows us to take advantage of all the tools Puppet gives us to manipulate template files. This is definitely the way I like to deploy containers with Puppet; however, I will let you decide for yourself the method you like best as we continue through the book.
In the chapter, we are going to look at how to use
docker-compose as an
.erb template file. In this example, we are only deploying a single container, but when an application contains five or six containers with links, this way is much ...