SlideShare a Scribd company logo
Introduction to Docker Compose
What is it?
● Tool
○ Define and Run
○ Multi-container docker apps
● Works in all environments
○ Development
○ Testing
○ Staging
○ Production
○ CI workflows
Prabhas Gupte
Common Use Cases
● Development environments
○ Document and configure your app’s service dependencies (db, cache, api, etc.)
● Automated testing environments
○ Convenient way to create and destroy isolated test environments
● Single host deployments
○ Single instance provisioned with Docker machine can host all your required services
Prabhas Gupte
What makes it effective?
● Multiple isolated environments on single host
● Recreate only changed containers
● Preserve volume data when containers are created
Prabhas Gupte
Demo
● docker-compose.yml
● docker-compose up
● docker-compose ps
● docker-compose stop
● docker-compose down
Prabhas Gupte
Further reading
● Compose file reference: https://docs.docker.com/compose/compose-file/
● Command line reference: https://docs.docker.com/compose/reference/
● Getting started: https://docs.docker.com/compose/gettingstarted/
● Examples:
○ Wordpress with MySQL: https://docs.docker.com/compose/wordpress/
○ Drupal with Postgres: https://docs.docker.com/samples/library/drupal/
○ Django with Postgres: https://docs.docker.com/compose/django/
○ Rails with Postgres: https://docs.docker.com/compose/rails/
● FAQs: https://docs.docker.com/compose/faq/
Prabhas Gupte
Questions?
Prabhas Gupte

More Related Content

PPTX
Docker intro workshop: Dockerize your PHP app
PPTX
Docker session I: Continuous integration, delivery and deployment
PDF
Rails in docker
PDF
Virtual Machines and Docker
ODP
Dockerfiles & Best Practices
PDF
Front-end development automation with Grunt
PDF
AllTheTalks 2020: Buildpacks - container for everyone!
PDF
Kompose
Docker intro workshop: Dockerize your PHP app
Docker session I: Continuous integration, delivery and deployment
Rails in docker
Virtual Machines and Docker
Dockerfiles & Best Practices
Front-end development automation with Grunt
AllTheTalks 2020: Buildpacks - container for everyone!
Kompose

What's hot (20)

PPTX
Docker session II: Introduction to Docker
PDF
Wordpress develompent with Docker
PPTX
Docker session III: Dockerfile
PDF
Headless approach and Acquia - Case study - Chris Ozog
PDF
Running Containerized Node.js Services on AWS Elastic Beanstalk
PPTX
Halton Software Peer 2 Peer Meetup #10
PDF
My Learnings on Setting up a Kubernetes Cluster on AWS using Kubernetes Opera...
PDF
OSDC.no 2015 introduction to node.js workshop
PDF
Introduction to Node.js
PDF
Docker 101
PDF
Production Ready Javascript With Grunt
PDF
I Just Want to Run My Code: Waypoint, Nomad, and Other Things
PDF
From Docker Run To Docker Compose
PDF
AWS ElasticBeanstalk and Docker
PDF
Kubernetes: training micro-dragons for a serious battle
PDF
Microservices on Kubernetes - The simple way
PDF
Dockerizing Rails
PDF
Preprocessor Workflow with Grunt
PDF
BBC's GraphDB (formerly Owlim) AWS Cloud Migration
Docker session II: Introduction to Docker
Wordpress develompent with Docker
Docker session III: Dockerfile
Headless approach and Acquia - Case study - Chris Ozog
Running Containerized Node.js Services on AWS Elastic Beanstalk
Halton Software Peer 2 Peer Meetup #10
My Learnings on Setting up a Kubernetes Cluster on AWS using Kubernetes Opera...
OSDC.no 2015 introduction to node.js workshop
Introduction to Node.js
Docker 101
Production Ready Javascript With Grunt
I Just Want to Run My Code: Waypoint, Nomad, and Other Things
From Docker Run To Docker Compose
AWS ElasticBeanstalk and Docker
Kubernetes: training micro-dragons for a serious battle
Microservices on Kubernetes - The simple way
Dockerizing Rails
Preprocessor Workflow with Grunt
BBC's GraphDB (formerly Owlim) AWS Cloud Migration
Ad

Similar to Introduction to Docker Compose (20)

PDF
Docker primer and tips
PPTX
Getting started with docker (2017)
PDF
Docker n co
PDF
Introduction to Docker and Monitoring with InfluxData
PPTX
Docker slides
PDF
Best Practices for Developing & Deploying Java Applications with Docker
PDF
Docker for developers
PDF
Docker for developers
PDF
Docker presentation
PPTX
Docker session IV: Docker Compose and Docker Swarm
PDF
Wordcamp Bratislava 2017 - Docker! Why?
PDF
Dockerize magento 2 24.02.2016
PDF
Docker Up and Running for Web Developers
PDF
Docker up and Running For Web Developers
PPTX
Run automated tests in Docker
PDF
Docker+java
PDF
Docker 0.11 at MaxCDN meetup in Los Angeles
PDF
Magento Docker Setup.pdf
PDF
Dockerizing Applications
PDF
DevEx | there’s no place like k3s
Docker primer and tips
Getting started with docker (2017)
Docker n co
Introduction to Docker and Monitoring with InfluxData
Docker slides
Best Practices for Developing & Deploying Java Applications with Docker
Docker for developers
Docker for developers
Docker presentation
Docker session IV: Docker Compose and Docker Swarm
Wordcamp Bratislava 2017 - Docker! Why?
Dockerize magento 2 24.02.2016
Docker Up and Running for Web Developers
Docker up and Running For Web Developers
Run automated tests in Docker
Docker+java
Docker 0.11 at MaxCDN meetup in Los Angeles
Magento Docker Setup.pdf
Dockerizing Applications
DevEx | there’s no place like k3s
Ad

Recently uploaded (20)

PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 41
PDF
Design an Analysis of Algorithms II-SECS-1021-03
PDF
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
PDF
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
PDF
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
PPTX
Introduction to Artificial Intelligence
PPTX
history of c programming in notes for students .pptx
PDF
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
PDF
Upgrade and Innovation Strategies for SAP ERP Customers
PDF
2025 Textile ERP Trends: SAP, Odoo & Oracle
PPTX
CHAPTER 2 - PM Management and IT Context
PDF
PTS Company Brochure 2025 (1).pdf.......
PDF
How Creative Agencies Leverage Project Management Software.pdf
PDF
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
PDF
medical staffing services at VALiNTRY
PDF
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
PPTX
Reimagine Home Health with the Power of Agentic AI​
PPTX
ai tools demonstartion for schools and inter college
PDF
Understanding Forklifts - TECH EHS Solution
PDF
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
Internet Downloader Manager (IDM) Crack 6.42 Build 41
Design an Analysis of Algorithms II-SECS-1021-03
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
Introduction to Artificial Intelligence
history of c programming in notes for students .pptx
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
Upgrade and Innovation Strategies for SAP ERP Customers
2025 Textile ERP Trends: SAP, Odoo & Oracle
CHAPTER 2 - PM Management and IT Context
PTS Company Brochure 2025 (1).pdf.......
How Creative Agencies Leverage Project Management Software.pdf
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
medical staffing services at VALiNTRY
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
Reimagine Home Health with the Power of Agentic AI​
ai tools demonstartion for schools and inter college
Understanding Forklifts - TECH EHS Solution
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool

Introduction to Docker Compose

  • 2. What is it? ● Tool ○ Define and Run ○ Multi-container docker apps ● Works in all environments ○ Development ○ Testing ○ Staging ○ Production ○ CI workflows Prabhas Gupte
  • 3. Common Use Cases ● Development environments ○ Document and configure your app’s service dependencies (db, cache, api, etc.) ● Automated testing environments ○ Convenient way to create and destroy isolated test environments ● Single host deployments ○ Single instance provisioned with Docker machine can host all your required services Prabhas Gupte
  • 4. What makes it effective? ● Multiple isolated environments on single host ● Recreate only changed containers ● Preserve volume data when containers are created Prabhas Gupte
  • 5. Demo ● docker-compose.yml ● docker-compose up ● docker-compose ps ● docker-compose stop ● docker-compose down Prabhas Gupte
  • 6. Further reading ● Compose file reference: https://docs.docker.com/compose/compose-file/ ● Command line reference: https://docs.docker.com/compose/reference/ ● Getting started: https://docs.docker.com/compose/gettingstarted/ ● Examples: ○ Wordpress with MySQL: https://docs.docker.com/compose/wordpress/ ○ Drupal with Postgres: https://docs.docker.com/samples/library/drupal/ ○ Django with Postgres: https://docs.docker.com/compose/django/ ○ Rails with Postgres: https://docs.docker.com/compose/rails/ ● FAQs: https://docs.docker.com/compose/faq/ Prabhas Gupte

Editor's Notes

  • #3: Compose is a tool for defining and running multi-container Docker applications. With Compose, you use a YAML file to configure your application’s services. Then, with a single command, you create and start all the services from your configuration.
  • #5: Compose uses a project name to isolate environments from each other. You can make use of this project name in several different contexts. on a dev host, to create multiple copies of a single environment on a CI server, to keep builds from interfering with each other on a shared host or dev host, to prevent different projects, which may use the same service names, from interfering with each other