SlideShare a Scribd company logo
How To Deploy And Run
Mule in Docker
Ravi Singh
What I am Going to Discuss?
● What is Docker
● How to install Docker
● Advantages of Docker
● Create, deploy and run a demo Mule application in Docker
What is docker?
● A Docker is a container where an image runs
● A Docker environment contains multiple environment with different application
runs on every environment
● By creating multiple container, you can create multi-production server like
environment
● Using docker you can create separate container for Mule runtime, Java VM,
MQ and so much
Advantage Of Docker
● Consistency from Dev to Prod environment
● Wide cloud support Amazon web service and Google cloud to name a few
● Standard environment and version control
● Replication and redundancy makes it fast
● Each application run in its own container makes it isolated
● Each application uses its own CPU, memory etc keeps your application faster
and improved performance
● Dockers are secure; containers never read other’s data, digitally signed and
Installing Docker
● I will show demo installing Docker using Mac O/S
● https://www.docker.com/docker-mac
● Instal Docker on Mac
Run a sample container with Mule
sudo docker run codingtony/mule
codingtony/mule is docker image
Find process associated with Docker
How To Map Local Drive to Docker
● It is must before your run your Mule application in
Docker
● First, download latest Mule Runtime 3.8.1 from
here
● Create Mule-root folder in your local home
directory
● Create three folders apps,conf and logs and copy
the folder content from Mule runtime folder
● Your folder structure should look like this:
Create Sample Mule Application
● Create a sample hello World application in Mule anypoint studio
For testing purpose, I just set this in payload:
<set-payload
value="#[string:Hello World! It is now: #[server.dateTime]]"/>
● Now copy your Helloworld.xml in app folder
Create Sample Mule Application
● Alongwith Helloworld.xml, create two other file and copy it in apps folder
● Mule-config.xml as a placeholder
● Mule-deploy.properties
redeployment.enabled=true
encoding=UTF-8
domain=default
config.resources=HelloWorld.xml
● Update log4j.properties in conf directory with below lines
log4j.logger.org.mule=INFO
Deploy Mule application on Docker
● Within app folder create a zip of your application
zip mule-hello.zip mule-deploy.properties mule-config.xml HelloWorld.xml
● Start a Mule docker container using your local folder as mapping
sudo docker run -d -p 8181:8181 -v ~/mule-root/apps:/opt/mule/apps -v ~/mule-root/conf:/opt/mule/conf -v ~/mule-root/logs:/opt/mule/logs codingtony/mule
● Please note ‘p’ option in command to mention port#
● Use command docker ps -a to confirm your container running
Run Your Mule Application
● You can run application either in same container or from different container
● In MAC O/S , you cannot connect your local host PC to container and run the
app as there is limitation with the O/S
● Run application in same container
● Find container id using below command
Docker ps -a
● Login to the container
docker exec -it <containerid> bash
Run Your Mule Application
Rum Mule Application From Other Container
● You can also run your Mule application from another container using IP
address of the container where application is running
Thank you

More Related Content

ODP
Docker Basics
PDF
The WordPress developer's toolkit
PPTX
DevOps: Docker Workshop
PDF
Docker Up and Running Introduction
PDF
Docker Tooling for Eclipse
PPTX
Using vagrant
PPTX
Meetup docker paris
KEY
How To Make A Framework Plugin That Does Not Suck
Docker Basics
The WordPress developer's toolkit
DevOps: Docker Workshop
Docker Up and Running Introduction
Docker Tooling for Eclipse
Using vagrant
Meetup docker paris
How To Make A Framework Plugin That Does Not Suck

What's hot (20)

PPTX
Up & Running with Docker
PPT
Webenabled
PDF
Baking Docker Using Chef
PPTX
Docker session I: Continuous integration, delivery and deployment
PPTX
vodQA(Pune) 2018 - Docker in Testing
PDF
Automating Docker Containers with Puppet 2014 10-13
PDF
Docker presentation
PDF
Seamless Continuous Deployment Using Docker Containers
PDF
OpenCms Days 2013 - Site Management Tool
PPTX
vodQA(Pune) 2018 - Visual testing of web apps in headless environment manis...
PPTX
Session: WP Site Management using WP-CLI from Scratch
PPTX
Docker for .NET Developers
PDF
OpenCms Days 2015 Creating Apps for the OpenCms 10 workplace
PDF
Docker Containers: Developer’s experience and building robust developer envir...
PDF
An Introduction to Vagrant and Docker
PDF
macos installation automation
PDF
Wodby. cloud infrastructure platform
PDF
Docker slides
PDF
OpenCms Days 2013 - How to update smoothly to OpenCms 9ms 9
PDF
OpenCms Days 2013 - Start rolling with OpenCms 9
Up & Running with Docker
Webenabled
Baking Docker Using Chef
Docker session I: Continuous integration, delivery and deployment
vodQA(Pune) 2018 - Docker in Testing
Automating Docker Containers with Puppet 2014 10-13
Docker presentation
Seamless Continuous Deployment Using Docker Containers
OpenCms Days 2013 - Site Management Tool
vodQA(Pune) 2018 - Visual testing of web apps in headless environment manis...
Session: WP Site Management using WP-CLI from Scratch
Docker for .NET Developers
OpenCms Days 2015 Creating Apps for the OpenCms 10 workplace
Docker Containers: Developer’s experience and building robust developer envir...
An Introduction to Vagrant and Docker
macos installation automation
Wodby. cloud infrastructure platform
Docker slides
OpenCms Days 2013 - How to update smoothly to OpenCms 9ms 9
OpenCms Days 2013 - Start rolling with OpenCms 9
Ad

Similar to How to deploy and run mule in docker (20)

PPTX
Dockerizing mule soft esb
PDF
MuleSoft Surat Virtual Meetup#35 - Setting up MuleSoft Runtime and Anypoint C...
PPTX
Warsaw MuleSoft Meetup - Runtime Fabric
PPTX
Deploy apps in standalone with maven
PPTX
Deploy with maven
PDF
Containerizing MuleSoft applications for hybrid deployment
PPTX
Deploying and running mule standalone
PPTX
How muleworks
PDF
Docker: A New Way to Turbocharging Your Apps Development
PPTX
How muleworks
PPTX
Deploying and running in mule standalone
PPTX
[Codelab 2017] Docker 기초 및 활용 방안
PPSX
Docker and containers - Presentation Slides by Priyadarshini Anand
ODP
Example mule
PDF
Deploy microservices in containers with Docker and friends - KCDC2015
PDF
Best Practices for Developing & Deploying Java Applications with Docker
PPTX
Deploying and Running in Mule
PPTX
Deploying and running in mule standalone
PPTX
Deploying and running in mule standalone
PPTX
Deploying and running in mule standalone
Dockerizing mule soft esb
MuleSoft Surat Virtual Meetup#35 - Setting up MuleSoft Runtime and Anypoint C...
Warsaw MuleSoft Meetup - Runtime Fabric
Deploy apps in standalone with maven
Deploy with maven
Containerizing MuleSoft applications for hybrid deployment
Deploying and running mule standalone
How muleworks
Docker: A New Way to Turbocharging Your Apps Development
How muleworks
Deploying and running in mule standalone
[Codelab 2017] Docker 기초 및 활용 방안
Docker and containers - Presentation Slides by Priyadarshini Anand
Example mule
Deploy microservices in containers with Docker and friends - KCDC2015
Best Practices for Developing & Deploying Java Applications with Docker
Deploying and Running in Mule
Deploying and running in mule standalone
Deploying and running in mule standalone
Deploying and running in mule standalone
Ad

More from Ravi Prakash Singh (11)

PPTX
DP-700_ Microsoft Certified Fabric Data Engineer.pptx
PPTX
AWS Certified AI Practitioner (AIF-C01): Ultimate Guide to Preparation, Recom...
PPTX
Pune_MuleSoft_Meetup_Async_API_Dwl_Library.pptx
PDF
Gappsy Review - Create faster and Amazing apps for IOS and Android
PPT
5 Reason Why I have selected Generatepress Theme for my Blog
PDF
Black friday deals for bloggers 2018
PPTX
Elementor pro review and comparison with thrive architect
PPTX
How to access Microsoft Azure cloud storage using Mulesoft
PPTX
How to access Oracle Cloud storage using Mulesoft
PPTX
Understanding flows and subflows in mule
PPTX
IOT and Mulesoft
DP-700_ Microsoft Certified Fabric Data Engineer.pptx
AWS Certified AI Practitioner (AIF-C01): Ultimate Guide to Preparation, Recom...
Pune_MuleSoft_Meetup_Async_API_Dwl_Library.pptx
Gappsy Review - Create faster and Amazing apps for IOS and Android
5 Reason Why I have selected Generatepress Theme for my Blog
Black friday deals for bloggers 2018
Elementor pro review and comparison with thrive architect
How to access Microsoft Azure cloud storage using Mulesoft
How to access Oracle Cloud storage using Mulesoft
Understanding flows and subflows in mule
IOT and Mulesoft

Recently uploaded (20)

PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PPTX
Big Data Technologies - Introduction.pptx
PPT
Teaching material agriculture food technology
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPTX
Spectroscopy.pptx food analysis technology
PDF
Empathic Computing: Creating Shared Understanding
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Encapsulation theory and applications.pdf
PPTX
sap open course for s4hana steps from ECC to s4
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
The Rise and Fall of 3GPP – Time for a Sabbatical?
Big Data Technologies - Introduction.pptx
Teaching material agriculture food technology
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Spectroscopy.pptx food analysis technology
Empathic Computing: Creating Shared Understanding
MIND Revenue Release Quarter 2 2025 Press Release
Dropbox Q2 2025 Financial Results & Investor Presentation
Encapsulation theory and applications.pdf
sap open course for s4hana steps from ECC to s4
Digital-Transformation-Roadmap-for-Companies.pptx
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Review of recent advances in non-invasive hemoglobin estimation
Encapsulation_ Review paper, used for researhc scholars
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
“AI and Expert System Decision Support & Business Intelligence Systems”
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Mobile App Security Testing_ A Comprehensive Guide.pdf

How to deploy and run mule in docker

  • 1. How To Deploy And Run Mule in Docker Ravi Singh
  • 2. What I am Going to Discuss? ● What is Docker ● How to install Docker ● Advantages of Docker ● Create, deploy and run a demo Mule application in Docker
  • 3. What is docker? ● A Docker is a container where an image runs ● A Docker environment contains multiple environment with different application runs on every environment ● By creating multiple container, you can create multi-production server like environment ● Using docker you can create separate container for Mule runtime, Java VM, MQ and so much
  • 4. Advantage Of Docker ● Consistency from Dev to Prod environment ● Wide cloud support Amazon web service and Google cloud to name a few ● Standard environment and version control ● Replication and redundancy makes it fast ● Each application run in its own container makes it isolated ● Each application uses its own CPU, memory etc keeps your application faster and improved performance ● Dockers are secure; containers never read other’s data, digitally signed and
  • 5. Installing Docker ● I will show demo installing Docker using Mac O/S ● https://www.docker.com/docker-mac ● Instal Docker on Mac
  • 6. Run a sample container with Mule sudo docker run codingtony/mule codingtony/mule is docker image
  • 8. How To Map Local Drive to Docker ● It is must before your run your Mule application in Docker ● First, download latest Mule Runtime 3.8.1 from here ● Create Mule-root folder in your local home directory ● Create three folders apps,conf and logs and copy the folder content from Mule runtime folder ● Your folder structure should look like this:
  • 9. Create Sample Mule Application ● Create a sample hello World application in Mule anypoint studio For testing purpose, I just set this in payload: <set-payload value="#[string:Hello World! It is now: #[server.dateTime]]"/> ● Now copy your Helloworld.xml in app folder
  • 10. Create Sample Mule Application ● Alongwith Helloworld.xml, create two other file and copy it in apps folder ● Mule-config.xml as a placeholder ● Mule-deploy.properties redeployment.enabled=true encoding=UTF-8 domain=default config.resources=HelloWorld.xml ● Update log4j.properties in conf directory with below lines log4j.logger.org.mule=INFO
  • 11. Deploy Mule application on Docker ● Within app folder create a zip of your application zip mule-hello.zip mule-deploy.properties mule-config.xml HelloWorld.xml ● Start a Mule docker container using your local folder as mapping sudo docker run -d -p 8181:8181 -v ~/mule-root/apps:/opt/mule/apps -v ~/mule-root/conf:/opt/mule/conf -v ~/mule-root/logs:/opt/mule/logs codingtony/mule ● Please note ‘p’ option in command to mention port# ● Use command docker ps -a to confirm your container running
  • 12. Run Your Mule Application ● You can run application either in same container or from different container ● In MAC O/S , you cannot connect your local host PC to container and run the app as there is limitation with the O/S ● Run application in same container ● Find container id using below command Docker ps -a ● Login to the container docker exec -it <containerid> bash
  • 13. Run Your Mule Application
  • 14. Rum Mule Application From Other Container ● You can also run your Mule application from another container using IP address of the container where application is running