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

What's hot (20)

PPTX
Docker session II: Introduction to Docker
Degendra Sivakoti
 
PDF
Wordpress develompent with Docker
Koombea
 
PPTX
Docker session III: Dockerfile
Degendra Sivakoti
 
PDF
Headless approach and Acquia - Case study - Chris Ozog
DrupalCamp Kyiv
 
PDF
Running Containerized Node.js Services on AWS Elastic Beanstalk
zupzup.org
 
PPTX
Halton Software Peer 2 Peer Meetup #10
David Ashton
 
PDF
My Learnings on Setting up a Kubernetes Cluster on AWS using Kubernetes Opera...
Sathyajith Bhat
 
PDF
OSDC.no 2015 introduction to node.js workshop
leffen
 
PDF
Introduction to Node.js
Setyo Nugroho
 
PDF
Docker 101
Hung-Che Lo
 
PDF
Production Ready Javascript With Grunt
XB Software, Ltd.
 
PDF
I Just Want to Run My Code: Waypoint, Nomad, and Other Things
Michael Lange
 
PDF
From Docker Run To Docker Compose
Fitra Aditya
 
PDF
AWS ElasticBeanstalk and Docker
kloia
 
PDF
Kubernetes: training micro-dragons for a serious battle
Amir Moghimi
 
PDF
Microservices on Kubernetes - The simple way
Suraj Deshmukh
 
PDF
Dockerizing Rails
iGbanam
 
PDF
Preprocessor Workflow with Grunt
Vlad Filippov
 
PDF
BBC's GraphDB (formerly Owlim) AWS Cloud Migration
logomachy
 
Docker session II: Introduction to Docker
Degendra Sivakoti
 
Wordpress develompent with Docker
Koombea
 
Docker session III: Dockerfile
Degendra Sivakoti
 
Headless approach and Acquia - Case study - Chris Ozog
DrupalCamp Kyiv
 
Running Containerized Node.js Services on AWS Elastic Beanstalk
zupzup.org
 
Halton Software Peer 2 Peer Meetup #10
David Ashton
 
My Learnings on Setting up a Kubernetes Cluster on AWS using Kubernetes Opera...
Sathyajith Bhat
 
OSDC.no 2015 introduction to node.js workshop
leffen
 
Introduction to Node.js
Setyo Nugroho
 
Docker 101
Hung-Che Lo
 
Production Ready Javascript With Grunt
XB Software, Ltd.
 
I Just Want to Run My Code: Waypoint, Nomad, and Other Things
Michael Lange
 
From Docker Run To Docker Compose
Fitra Aditya
 
AWS ElasticBeanstalk and Docker
kloia
 
Kubernetes: training micro-dragons for a serious battle
Amir Moghimi
 
Microservices on Kubernetes - The simple way
Suraj Deshmukh
 
Dockerizing Rails
iGbanam
 
Preprocessor Workflow with Grunt
Vlad Filippov
 
BBC's GraphDB (formerly Owlim) AWS Cloud Migration
logomachy
 

Similar to Introduction to Docker Compose (20)

PDF
Docker primer and tips
Samuel Chow
 
PPTX
Getting started with docker (2017)
JEMLI Fathi
 
PDF
Docker n co
Rohit Jnagal
 
PDF
Introduction to Docker and Monitoring with InfluxData
InfluxData
 
PPTX
Docker slides
Ayla Khan
 
PDF
Best Practices for Developing & Deploying Java Applications with Docker
Eric Smalling
 
PDF
Docker for developers
sparkfabrik
 
PDF
Docker for developers
DrupalDay
 
PDF
Docker presentation
Jaskaran Singh
 
PPTX
Docker session IV: Docker Compose and Docker Swarm
Degendra Sivakoti
 
PDF
Wordcamp Bratislava 2017 - Docker! Why?
Adam Štipák
 
PDF
Dockerize magento 2 24.02.2016
Andreas Pointner
 
PDF
Docker Up and Running for Web Developers
Amr Fawzy
 
PDF
Docker up and Running For Web Developers
BADR
 
PPTX
Run automated tests in Docker
Oleksandr Metelytsia
 
PDF
Docker+java
DPC Consulting Ltd
 
PDF
Docker 0.11 at MaxCDN meetup in Los Angeles
Jérôme Petazzoni
 
PDF
Magento Docker Setup.pdf
Abid Malik
 
PDF
Dockerizing Applications
ehazlett
 
PDF
DevEx | there’s no place like k3s
Haggai Philip Zagury
 
Docker primer and tips
Samuel Chow
 
Getting started with docker (2017)
JEMLI Fathi
 
Docker n co
Rohit Jnagal
 
Introduction to Docker and Monitoring with InfluxData
InfluxData
 
Docker slides
Ayla Khan
 
Best Practices for Developing & Deploying Java Applications with Docker
Eric Smalling
 
Docker for developers
sparkfabrik
 
Docker for developers
DrupalDay
 
Docker presentation
Jaskaran Singh
 
Docker session IV: Docker Compose and Docker Swarm
Degendra Sivakoti
 
Wordcamp Bratislava 2017 - Docker! Why?
Adam Štipák
 
Dockerize magento 2 24.02.2016
Andreas Pointner
 
Docker Up and Running for Web Developers
Amr Fawzy
 
Docker up and Running For Web Developers
BADR
 
Run automated tests in Docker
Oleksandr Metelytsia
 
Docker+java
DPC Consulting Ltd
 
Docker 0.11 at MaxCDN meetup in Los Angeles
Jérôme Petazzoni
 
Magento Docker Setup.pdf
Abid Malik
 
Dockerizing Applications
ehazlett
 
DevEx | there’s no place like k3s
Haggai Philip Zagury
 
Ad

Recently uploaded (20)

PDF
GetOnCRM Speeds Up Agentforce 3 Deployment for Enterprise AI Wins.pdf
GetOnCRM Solutions
 
PPTX
Fundamentals_of_Microservices_Architecture.pptx
MuhammadUzair504018
 
PDF
Powering GIS with FME and VertiGIS - Peak of Data & AI 2025
Safe Software
 
DOCX
Import Data Form Excel to Tally Services
Tally xperts
 
PDF
Digger Solo: Semantic search and maps for your local files
seanpedersen96
 
PPTX
Feb 2021 Cohesity first pitch presentation.pptx
enginsayin1
 
PDF
Executive Business Intelligence Dashboards
vandeslie24
 
PPTX
Why Businesses Are Switching to Open Source Alternatives to Crystal Reports.pptx
Varsha Nayak
 
PDF
Streamline Contractor Lifecycle- TECH EHS Solution
TECH EHS Solution
 
PPTX
MailsDaddy Outlook OST to PST converter.pptx
abhishekdutt366
 
PPTX
Tally software_Introduction_Presentation
AditiBansal54083
 
PDF
Alexander Marshalov - How to use AI Assistants with your Monitoring system Q2...
VictoriaMetrics
 
PPTX
Revolutionizing Code Modernization with AI
KrzysztofKkol1
 
PDF
iTop VPN With Crack Lifetime Activation Key-CODE
utfefguu
 
PDF
Odoo CRM vs Zoho CRM: Honest Comparison 2025
Odiware Technologies Private Limited
 
PPTX
Engineering the Java Web Application (MVC)
abhishekoza1981
 
PPTX
Tally_Basic_Operations_Presentation.pptx
AditiBansal54083
 
PPTX
Human Resources Information System (HRIS)
Amity University, Patna
 
PPTX
An Introduction to ZAP by Checkmarx - Official Version
Simon Bennetts
 
PPTX
MiniTool Power Data Recovery Full Crack Latest 2025
muhammadgurbazkhan
 
GetOnCRM Speeds Up Agentforce 3 Deployment for Enterprise AI Wins.pdf
GetOnCRM Solutions
 
Fundamentals_of_Microservices_Architecture.pptx
MuhammadUzair504018
 
Powering GIS with FME and VertiGIS - Peak of Data & AI 2025
Safe Software
 
Import Data Form Excel to Tally Services
Tally xperts
 
Digger Solo: Semantic search and maps for your local files
seanpedersen96
 
Feb 2021 Cohesity first pitch presentation.pptx
enginsayin1
 
Executive Business Intelligence Dashboards
vandeslie24
 
Why Businesses Are Switching to Open Source Alternatives to Crystal Reports.pptx
Varsha Nayak
 
Streamline Contractor Lifecycle- TECH EHS Solution
TECH EHS Solution
 
MailsDaddy Outlook OST to PST converter.pptx
abhishekdutt366
 
Tally software_Introduction_Presentation
AditiBansal54083
 
Alexander Marshalov - How to use AI Assistants with your Monitoring system Q2...
VictoriaMetrics
 
Revolutionizing Code Modernization with AI
KrzysztofKkol1
 
iTop VPN With Crack Lifetime Activation Key-CODE
utfefguu
 
Odoo CRM vs Zoho CRM: Honest Comparison 2025
Odiware Technologies Private Limited
 
Engineering the Java Web Application (MVC)
abhishekoza1981
 
Tally_Basic_Operations_Presentation.pptx
AditiBansal54083
 
Human Resources Information System (HRIS)
Amity University, Patna
 
An Introduction to ZAP by Checkmarx - Official Version
Simon Bennetts
 
MiniTool Power Data Recovery Full Crack Latest 2025
muhammadgurbazkhan
 
Ad

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