Docker Compose is a tool available since 2014 for defining and running multi-container Docker applications. Rules are defined in docker-compose.yml and executed by running docker-compose up. docker-compose allows to define start order dependencies between containers. For reference of valid options for docker compose check: https://docs.docker.com/compose/compose-file/ brew install docker-compose docker-compose -h (for list of commands and options) docker-compose up docker-compose up -d -d daemon Start your containers with a command line variable: YOUR_VARIABLE=YOUR_VALUE docker-compose up docker-compose -p NAME --project-name Logs: docker-compose logs View output from containers docker-compose logs -f View output from containers docker-compose pull SERVICE_NAME or docker-compose pull docker-compose docker-compose build docker-compose bundle docker-compose config docker-compose create docker-compose down docker-compose down --remove-orphans docker-compose events docker-compose exec docker-compose help docker-compose images docker-compose kill docker-compose logs: docker-compose logs SERVICE_NAME (You will find your SERVICE_NAME looking into your docker-compose.yml file) docker-compose pause docker-compose port docker-compose ps docker-compose pull.docker-compose pull SERVICE_NAME. Just pull container images but do not start them. To update your image and start your services: docker-compose pull && docker-compose up -d docker-compose push docker-compose restart docker-compose rm docker-compose run docker-compose scale docker-compose start docker-compose stop docker-compose top docker-compose unpause docker-compose up Read docker-compose StackOverflow questions: https://stackoverflow.com/questions/tagged/docker-compose?tab=Votes Read docker-compose changelog: https://github.com/docker/compose/blob/master/CHANGELOG.md Review docker compose file format evolution Read docker-compose source code: https://github.com/docker/compose Read Ansible module documentation about docker_compose: https://docs.ansible.com/ansible/latest/modules/docker_compose_module.html Learn to use extension-fields or templating added in 3.4 version. docker stack and docker swarm commands docker start Kubernetes Pods https://docs.docker.com/compose/ https://www.oreilly.com/ideas/3-docker-compose-features-for-improving-team-development-workflow https://docs.docker.com/compose/reference/ https://docs.docker.com/compose/reference/logs/ https://docs.docker.com/compose/reference/pull/ https://docs.docker.com/compose/compose-file/#extension-fields https://www.oreilly.com/ideas/3-docker-compose-features-for-improving-team-development-workflow ← docker tag DevOps/Docker
{'wiki_source': 'wikiversity', 'other_info': "{'content_model': 'wikitext', 'language': 'en', 'title': 'DevOps/Docker/docker compose', 'type': 'text'}"}