DevOps/Docker/docker compose

Docker Compose is a tool available since 2014 for defining and running multi-container Docker applications.

Rules are defined in  and executed by running.

allows to define start order dependencies between containers.

For reference of valid options for docker compose check: https://docs.docker.com/compose/compose-file/

Basic commands

 * (for list of commands and options)
 * -d daemon
 * -d daemon
 * -d daemon


 * Start your containers with a command line variable:



Logs:
 * View output from containers
 * View output from containers
 * or




 * :  (You will find your SERVICE_NAME looking into your docker-compose.yml file)
 * . . Just pull container images but do not start them. To update your image and start your services:
 * :  (You will find your SERVICE_NAME looking into your docker-compose.yml file)
 * . . Just pull container images but do not start them. To update your image and start your services:
 * :  (You will find your SERVICE_NAME looking into your docker-compose.yml file)
 * . . Just pull container images but do not start them. To update your image and start your services:
 * . . Just pull container images but do not start them. To update your image and start your services:
 * . . Just pull container images but do not start them. To update your image and start your services:
 * . . Just pull container images but do not start them. To update your image and start your services:
 * . . Just pull container images but do not start them. To update your image and start your services:

Basic

 * 1) Read   StackOverflow questions: https://stackoverflow.com/questions/tagged/docker-compose?tab=Votes
 * 2) Read    changelog: https://github.com/docker/compose/blob/master/CHANGELOG.md
 * 3) /Review docker compose file format evolution/

Advanced

 * 1) Read   source code: https://github.com/docker/compose
 * 2) Read Ansible module documentation about  : https://docs.ansible.com/ansible/latest/modules/docker_compose_module.html
 * 3) Learn to use extension-fields or templating added in 3.4 version.