August 2017
Intermediate to advanced
332 pages
9h 16m
English
The Ansible playbook is very similar to the Docker Compose configuration. They even both share the same YAML file format. What's more, it is possible to use docker-compose.yml directly from Ansible. We will show how to do it, but first, let's define the docker-compose.yml file.
version: "2"services: calculator: image: leszko/calculator:latest ports: - 8080 redis: image: redis:latest
It is almost the same as what we defined in the previous chapter. This time we get the calculator image directly from the Docker Hub registry, and do not build it in docker-compose.yml, since we want to build the image once, push it to the registry, and then reuse it in every deployment step (on every environment), to make sure the same image ...
Read now
Unlock full access