What is Docker Compose | How to create docker compose file | How to use Compose
Vložit
- čas přidán 25. 07. 2024
- Free Tutorials - automationstepbystep.com/
I am Raghav & Today we will learn :
1. What | Why - Docker Compose
2. How to install
3. How to create docker compose file
4. How to use docker compose file to create services
5. Basic Commands
TIPS
Docker compose
: tool for defining & running multi-container docker applications
: use yaml files to configure application services (docker-compose.yml)
: can start all services with a single command : docker compose up
: can stop all services with a single command : docker compose down
: can scale up selected services when required
Step 1 : install docker compose
(already installed on windows and mac with docker)
docker-compose -v
2 Ways
1. github.com/docker/compose/rel...
2. Using PIP
pip install -U docker-compose
Step 2 : Create docker compose file at any location on your system
docker-compose.yml
Step 3 : Check the validity of file by command
docker-compose config
Step 4 : Run docker-compose.yml file by command
docker-compose up -d
Steps 5 : Bring down application by command
docker-compose down
TIPS
How to scale services
-scale
docker-compose up -d --scale database=4
References:
hub.docker.com
github.com/docker/compose/rel...
docs.docker.com/compose/compo...
www.google.co.in/search?q=mic...
_____________________________________________________________
#DockerCompose #DockerComposeIntroduction #DockerContainers #DockerTutorials #DockerTraining #DevOpsTools #DevOpsTraining #DockerCommands #DockerForBeginners #DockerFreeTutorials #DockerforDevOps
DOCKER PLAYLIST
• Docker
CZcams PLAYLIST
/ @raghavpal
CZcams
/ automationstepbystep
FACEBOOK
/ automationstepbystep
TWITTER
/ automationsbs
If you like videos on the channel Automation Step by Step, hit the like button and share with others.
Click the SUBSCRIBE button and hit the bell icon to keep getting new videos.
Ask Raghav- bit.ly/2CoJGWf
Interviews - bit.ly/2NIPPxk
All Playlists - bit.ly/2LSiezA
----------- Follow -----------
CZcams - / automationstepbystep
Share your knowledge with everyone and,
Never Stop Learning
Raghav
Free online courses - automationstepbystep.com/online-courses/
long live man!
Awesome gyaan, Raghav. Thank you for making a crisp and to-the-point video covering basics and showcasing the concepts with practical working.
You're welcome Ajeetz
I have gone through Udemy courses, there instructor focuses on their task such as CI/CD but here videos are for free and very well explained. Anyone can understand easily and practice for same. I learnt Jenkins, GIT, Docker from your videos.
Thanks a lot for these awesome playlists.
Hi Rishabh, you're most welcome
Very short and comprehensive Explanation. 100/100 marks .
Glad to see this message Aamer
100/100
Beautifully explained to start with docker compose. Suggestion: Every time you use DOCKER PS, please show us output of DOCKER PS -A as well (curious to see if containers are dead on DOCKER-COMPOSE DOWN command). Please keep posting more and more videos. Thanks a lot. Cheers!
Thanks for watching Shwetank. Will do.
Very concise and crisp explanation. What I liked most is, describing in just required detail, and the explaining the alternative ways in a very smart and quick way.
do you know how to get out of composeFile, how to get an insert and the like? Where can I find these abbreviations?
Glad it was helpful Nasim
Nice! Easy tutorial, nice examples , step-by-step and easy terminal fonts and big to read. Nice slow pace, not too fast to see what you are doing on the screen! Good job.
Glad you enjoyed it Andrew
That was awesome explanation... Really looking forward for the continuation of this tutorial
Glad to know this Ashish
Thank you so much. I loved watching all your videos and the best part is at the end "If you don't succeed try one more time".
So happy to know this Mukund. Do share your knowledge with others.
Nice short tutorial. The best part is you DO show errors and HOW to resolve. Not many folks do that. Thank you.
You're welcome Pavel
Thanks! Worked perfectly as an introduction to docker compose. Samples are simple and shows very basic thins which perfectly fits for starting!
Glad it helped Pavel
Hey Shout out, Excellent set of videos on Docker I loved it. Thanks for share
You're welcome David
The notes you show with a music at the end makes us revise the whole video. Magnificent work you are doing. Thank you
You're very welcome!
thank you so much great explanation, I had been looking everywhere for that.
So happy to know it helped
Thanks Raghav pal for your Docker series videos. Very useful to kick start with. Thank you and waiting for advance concepts further
Sure Venkata, will try to work on this
Thanks a lot for your this video❗I can cleary understand docker-compose‼️
Glad to hear that Teru
Great tutorial man, thanks for it.
You're welcome
Very simplified way of training people who are new to dockers... Good one Raghav, Thank you.
My pleasure Prashanth
Thank you! you made it look vvv simple!!!
You're welcome Anurag
Hey ! just a comment, excellent job ! keep on the good work !
Thanks Mouhcine
I have gone through all the 11 videos all are nice, neat and clear. thanks.
You're welcome Haribabu
What a video it is...I have seen many videos about docker but the way you explained is absolutely amazing...
Thank you so much for making it easy for us... Wonderful job ..
You are most welcome Dipanshu
Awesome, Fantastic , superb.. Million thanks,,
You're welcome Harpit
Thanks much for the detailed explanation....Cheers..!! :)
You're welcome Sreekanth
Thank you, very good and simple!
You're welcome Zoran
I just love the end part summary with the music. Many thanks for the video.
Hope you are already ready with tomorrow's Sunday Special video.
Great Suprotim, Yes Sunday Special ep is coming
I know it's quite late, but I have just began my journey in this area as of Automation and CI/CD. What a video, great explanation mate. Thank you so much.
Welcome aboard Binod and all the best for next sessions
hi Raghav Pal, very nice and simple tutorial. Thank you so much.
You're welcome Madhusudan
Amazing explanation as always Raghav, highly impressed
Thanks a ton Victor
Simple, super, step by step raghav .......
Thanks for the message Raghavendra
it a well well done video, very very audible, smooth delivery, step by step, a new person can follow, its absolutely fantastic, keep it up, great job, shows you have worked hard honestly, great work again
So happy and humbled to see your message. Thanks for the kind words
Wow, very nice. Easy to understand. Thanks.
Great to know this Neelesh
Man.., Loved the way you explain.., very easy to understand., simple yet elegant ..., Thank you...!!
You're welcome Mahesh
Wonderful boss, very clear, very precise. i had little experience but using commands blindly now its clear, thank you.
You are most welcome Paramesh
Thanks. This is the explanation I was looking for
You're welcome Kris
The way you explaining about it is really awesome ..Thx alot for composing on it & sharing with us
Glad you liked it Mahesh
This is awesome explanation. Thank you!
You're very welcome Abhishek
Super ... Raghav.
Awesome explanation.
Keep up the good work.
Most welcome Sohail
well explained the docker-compose and it can be understand to beginners.
Happy to know this Kandula
Thank you very much sir, Please keep it up....
You're welcome Channat
Easy to understand. Thank you.
You're welcome
Clear and useful session!!! Thanks a lot!!!!
You're welcome Meytal
very informative, thank you
amazing dude... best video so far.
Thanks for watching.
A big round of applause for Raghav & his skills...
Thanks for watching Rahul
I have used different resources and videos to get actual creating of docker compose file. With this all my doubts are cleared. Thank you for great content
You are most welcome Parikshit
Great tutorial, thanks for sharing!
Glad you enjoyed it Christopher
well explained, very helpful. Thank you so much.
Most welcome Rajesh
Thank you very much for your clear tutorial ;)
You're welcome
Thank You, Raghav for your explanation.
You're most welcome Shanth
Great Explanation Raghav..!
Thanks Sandeep
Hey, You're awesome.. just love the way you teach! :)
Thanks a lot Nazia
Thanks a lot. This is really very very helpful. :)
You're welcome Jile
great sir, in one video i have completely get the clear understanding of docker compose
Great to know this Nagarjuna
you got a subscriber man!!!Nice explanations
Thanks for watching and subsribing
If I didn't like this video, That will be the first mistake of mine for today.. Very well explained 👌
Glad it helped Jaya
Awesome video, thank you.
You're welcome Vinay
Sharing the notes in video description is awesome helpful, thank you
You are welcome Sandeep
Thanks for the video,its comprehensive.
Most welcome Tarrique
Nicely done ....thanks!
thanks
very nice tutorial thanks so much for that
You're welcome
by the way, do you have any example for an webapp that using this docker and webserver ? until now we have configure docker and can run on localhost:port and may have have some other tutorials that extend this first one ? it was so good that is the reason :)
I will try to create more sessions with example like this.
Great video. simply explained.
Thanks Fahis
thank you very much for the video!!
Most welcome
Great video, even after five years! I believe they have helped many users.
Great to hear that.. so happy and humbled
Thanks Raghav, It is really nice tutorial.
Most welcome!
Raghav this was a very useful video.. keep it coming.
Sure Saji. Can check all here - automationstepbystep.com/
Thanks a lot. Please keep going.
Sure Mohan I will
Thanks mate, it's highly impressive and easy to digest video, much appreciated!
Most welcome Tim
Very nice explained videos...! thank you very much...
You're welcome Sandeep
प्रिय राघव,
इस तरह के उपयोगी वीडियो बनाने के लिए कोटि कोटि से धन्यवाद् ||
धन्यवाद
Thanks. Really helps me alot.
Good explanation.
Most welcome
Excellent tutorial and gread work ! , also could you please add more docker related videos ..
Thanks Krishna, will do surely
Simple and easy to understand thank you!
You're welcome!
great tutorial, thanks!
You're welcome Dave
Very precise and to the point discussion and very helpful replies in comments. Thank you mate... Watching from Pakistan... Really appreciated ...
Thanks for watching Farrukh
Very good doc Raghab. Please create next video with interconnected containers, with dependencies (like, build agent containers will be up once Jenkins server container is up). A jenkins setup will be a perfect example. Through docker compose we need to setup jenkins server, build agents and agents needs to be connected using java web start.Thanks.
Will try this Partha
this would definitely be great !
Excellent videos ...loved it
Thanks a lot Sruthi
Thanks Raghav. Your videos are still helping in 2024 !
Glad to hear that Saurabh
Really helpfull, thank you!
Most welcome Fabian
Thank you for wonderful clean videos
You are so welcome!
Thanks bro it really helped!!!!. 👍🏻
most welcome
Your videos are great. Thanks
Most welcome Jacob
Thank you very much.. This video help me a lot
You are welcome Ahmad
Very useful video. Thank you
Glad it was helpful Avijit
Very useful vedio. Very clear to understand thank you sir
You're most welcome Thulasi
Thank you so much, This really helped me a lot.
So happy to know Suraj
Just awesome explanation sir
Thanks and welcome Sravan
awesome docker tutorial
thanks Saurabh
Gooood... Thanks for the video.
You're welcome Furqon
Thank you
Your videos are very helpful
Most welcome
Thank you so much, Raghav for you make me a Stand in front of my manager and soon I will purchase your note.
Glad to know this Mani, Keep learning
To the point video, keep it up
Thanks,
Thanks for yet another awesome video on docker, I was wondering, maybe beyond the scope of this video, how the web service accesses the database service in the docker-compose.
Hi Akinjide, I will try to do a session on this, For now you can take online help
thank you,very helpful
You are welcome Priyanka
thank you very much, bro, all hope for you to be the best programmer ever .....
thanks Youssef
Short concise and very efficient video. Thanks Raghav
Most welcome Pradip
NICE TUTORIAL RAGHAV .
Thank Hemant
Helpful. Love it
Thanks Toufiq
good one.
thanks for watching
Thank for sharing.!
Welcome Jorge