What is Docker Compose | How to create docker compose file | How to use Compose

Sdílet
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

Komentáře • 662

  • @RaghavPal
    @RaghavPal  Před 5 lety +16

    Free online courses - automationstepbystep.com/online-courses/

  • @ajeetis
    @ajeetis Před 5 lety +9

    Awesome gyaan, Raghav. Thank you for making a crisp and to-the-point video covering basics and showcasing the concepts with practical working.

  • @devopswisdom
    @devopswisdom Před 3 lety +13

    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.

    • @RaghavPal
      @RaghavPal  Před 3 lety +1

      Hi Rishabh, you're most welcome

  • @aameraftab8767
    @aameraftab8767 Před 5 lety +42

    Very short and comprehensive Explanation. 100/100 marks .

  • @protonvashishtha
    @protonvashishtha Před 5 lety +2

    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!

    • @RaghavPal
      @RaghavPal  Před 5 lety +1

      Thanks for watching Shwetank. Will do.

  • @NasimMahmud
    @NasimMahmud Před 5 lety +2

    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.

    • @melisabegic2428
      @melisabegic2428 Před 5 lety

      do you know how to get out of composeFile, how to get an insert and the like? Where can I find these abbreviations?

    • @RaghavPal
      @RaghavPal  Před 5 lety

      Glad it was helpful Nasim

  • @be236
    @be236 Před 4 lety

    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.

  • @AshishBurnwal
    @AshishBurnwal Před 5 lety +1

    That was awesome explanation... Really looking forward for the continuation of this tutorial

  • @mukundsridhar4250
    @mukundsridhar4250 Před 4 lety

    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".

    • @RaghavPal
      @RaghavPal  Před 4 lety

      So happy to know this Mukund. Do share your knowledge with others.

  • @dmth741
    @dmth741 Před 5 lety +3

    Nice short tutorial. The best part is you DO show errors and HOW to resolve. Not many folks do that. Thank you.

  • @pavelzarembo4880
    @pavelzarembo4880 Před 3 lety

    Thanks! Worked perfectly as an introduction to docker compose. Samples are simple and shows very basic thins which perfectly fits for starting!

  • @clayman1325
    @clayman1325 Před 4 lety +1

    Hey Shout out, Excellent set of videos on Docker I loved it. Thanks for share

  • @Udzial
    @Udzial Před 2 lety +1

    The notes you show with a music at the end makes us revise the whole video. Magnificent work you are doing. Thank you

  • @MustangBoss1973
    @MustangBoss1973 Před 4 lety +1

    thank you so much great explanation, I had been looking everywhere for that.

  • @venkatah9847
    @venkatah9847 Před 5 lety

    Thanks Raghav pal for your Docker series videos. Very useful to kick start with. Thank you and waiting for advance concepts further

    • @RaghavPal
      @RaghavPal  Před 5 lety

      Sure Venkata, will try to work on this

  • @Teruroom
    @Teruroom Před 4 lety +1

    Thanks a lot for your this video❗I can cleary understand docker-compose‼️

  • @humanOSx
    @humanOSx Před 6 lety +1

    Great tutorial man, thanks for it.

  • @prashi222
    @prashi222 Před 4 lety

    Very simplified way of training people who are new to dockers... Good one Raghav, Thank you.

  • @anuragkunchamwar8465
    @anuragkunchamwar8465 Před 5 lety +1

    Thank you! you made it look vvv simple!!!

  • @mouhcinebenchekroun5579

    Hey ! just a comment, excellent job ! keep on the good work !

  • @HaribabuPasupathy
    @HaribabuPasupathy Před 4 lety

    I have gone through all the 11 videos all are nice, neat and clear. thanks.

  • @dips2805
    @dips2805 Před 3 lety

    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 ..

    • @RaghavPal
      @RaghavPal  Před 3 lety

      You are most welcome Dipanshu

  • @bonvivant8618
    @bonvivant8618 Před 5 lety

    Awesome, Fantastic , superb.. Million thanks,,

  • @sreekanth551
    @sreekanth551 Před 4 lety

    Thanks much for the detailed explanation....Cheers..!! :)

  •  Před 5 lety

    Thank you, very good and simple!

  • @suprotimroy
    @suprotimroy Před 3 lety

    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.

    • @RaghavPal
      @RaghavPal  Před 3 lety

      Great Suprotim, Yes Sunday Special ep is coming

  • @binodranabhat341
    @binodranabhat341 Před rokem

    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.

    • @RaghavPal
      @RaghavPal  Před rokem +1

      Welcome aboard Binod and all the best for next sessions

  • @madhusudanreddykutagula573

    hi Raghav Pal, very nice and simple tutorial. Thank you so much.

  • @victorjohn4137
    @victorjohn4137 Před 3 lety +1

    Amazing explanation as always Raghav, highly impressed

  • @raghavayoga
    @raghavayoga Před 5 lety

    Simple, super, step by step raghav .......

    • @RaghavPal
      @RaghavPal  Před 5 lety

      Thanks for the message Raghavendra

  • @anison1111
    @anison1111 Před 4 lety

    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

    • @RaghavPal
      @RaghavPal  Před 4 lety

      So happy and humbled to see your message. Thanks for the kind words

  • @neal000ooo
    @neal000ooo Před 6 lety

    Wow, very nice. Easy to understand. Thanks.

  • @maheshm3677
    @maheshm3677 Před 5 lety +1

    Man.., Loved the way you explain.., very easy to understand., simple yet elegant ..., Thank you...!!

  • @easytodevelop
    @easytodevelop Před 4 lety

    Wonderful boss, very clear, very precise. i had little experience but using commands blindly now its clear, thank you.

    • @RaghavPal
      @RaghavPal  Před 4 lety

      You are most welcome Paramesh

  • @devnullex
    @devnullex Před 4 lety

    Thanks. This is the explanation I was looking for

  • @maheshkudumula9794
    @maheshkudumula9794 Před 4 lety

    The way you explaining about it is really awesome ..Thx alot for composing on it & sharing with us

  • @abhishekarora259
    @abhishekarora259 Před 4 lety

    This is awesome explanation. Thank you!

  • @zameerahmedjose7251
    @zameerahmedjose7251 Před 4 lety

    Super ... Raghav.
    Awesome explanation.
    Keep up the good work.

  • @kandulaabhishek2822
    @kandulaabhishek2822 Před 5 lety +1

    well explained the docker-compose and it can be understand to beginners.

  • @channattem4246
    @channattem4246 Před 5 lety +1

    Thank you very much sir, Please keep it up....

  • @beunmin6
    @beunmin6 Před 5 lety

    Easy to understand. Thank you.

  • @meytal-3478
    @meytal-3478 Před 4 lety

    Clear and useful session!!! Thanks a lot!!!!

  • @pwnograffik
    @pwnograffik Před 2 lety

    very informative, thank you

  • @northernlights2222
    @northernlights2222 Před 4 lety

    amazing dude... best video so far.

  • @rahuludemy3976
    @rahuludemy3976 Před 3 lety

    A big round of applause for Raghav & his skills...

  • @user-jj9bc1bc9o
    @user-jj9bc1bc9o Před 11 měsíci

    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

    • @RaghavPal
      @RaghavPal  Před 11 měsíci

      You are most welcome Parikshit

  • @ChristopherLum
    @ChristopherLum Před 2 lety

    Great tutorial, thanks for sharing!

    • @RaghavPal
      @RaghavPal  Před 2 lety

      Glad you enjoyed it Christopher

  • @RajeshVerma-mp8qk
    @RajeshVerma-mp8qk Před 2 lety

    well explained, very helpful. Thank you so much.

  • @malek6021
    @malek6021 Před 4 lety

    Thank you very much for your clear tutorial ;)

  • @Stoic623
    @Stoic623 Před 2 lety

    Thank You, Raghav for your explanation.

  • @sandeepreddy475
    @sandeepreddy475 Před 2 lety

    Great Explanation Raghav..!

  • @_normal_iszz_boring_
    @_normal_iszz_boring_ Před 2 lety

    Hey, You're awesome.. just love the way you teach! :)

  • @jilesingh1124
    @jilesingh1124 Před 4 lety

    Thanks a lot. This is really very very helpful. :)

  • @nagarjunahota4498
    @nagarjunahota4498 Před rokem

    great sir, in one video i have completely get the clear understanding of docker compose

    • @RaghavPal
      @RaghavPal  Před rokem +1

      Great to know this Nagarjuna

  • @ananditsoul499
    @ananditsoul499 Před 4 lety

    you got a subscriber man!!!Nice explanations

    • @RaghavPal
      @RaghavPal  Před 4 lety

      Thanks for watching and subsribing

  • @indianjaya
    @indianjaya Před 2 lety

    If I didn't like this video, That will be the first mistake of mine for today.. Very well explained 👌

  • @vinayvinc5911
    @vinayvinc5911 Před 5 lety

    Awesome video, thank you.

  • @SandeepKumarPalliKuniyil

    Sharing the notes in video description is awesome helpful, thank you

  • @maxweber6556
    @maxweber6556 Před 3 lety

    Thanks for the video,its comprehensive.

  • @guylemay1471
    @guylemay1471 Před 5 lety

    Nicely done ....thanks!

  • @kaffepause011
    @kaffepause011 Před 6 lety +3

    very nice tutorial thanks so much for that

    • @RaghavPal
      @RaghavPal  Před 6 lety

      You're welcome

    • @kaffepause011
      @kaffepause011 Před 6 lety +1

      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 :)

    • @RaghavPal
      @RaghavPal  Před 6 lety +1

      I will try to create more sessions with example like this.

  • @fahis1996
    @fahis1996 Před 2 lety

    Great video. simply explained.

  • @ameerulbess
    @ameerulbess Před 11 měsíci

    thank you very much for the video!!

  • @dragonball41876
    @dragonball41876 Před měsícem

    Great video, even after five years! I believe they have helped many users.

    • @RaghavPal
      @RaghavPal  Před měsícem

      Great to hear that.. so happy and humbled

  • @dhrusoni1
    @dhrusoni1 Před 3 lety

    Thanks Raghav, It is really nice tutorial.

  • @myjourneyinforex6486
    @myjourneyinforex6486 Před 4 lety

    Raghav this was a very useful video.. keep it coming.

    • @RaghavPal
      @RaghavPal  Před 4 lety

      Sure Saji. Can check all here - automationstepbystep.com/

  • @mohanp7819
    @mohanp7819 Před 5 lety

    Thanks a lot. Please keep going.

  • @itsmendyou
    @itsmendyou Před 11 měsíci

    Thanks mate, it's highly impressive and easy to digest video, much appreciated!

  • @sandeepmahajan1036
    @sandeepmahajan1036 Před 4 lety +1

    Very nice explained videos...! thank you very much...

  • @i.am.gaurav.khanna
    @i.am.gaurav.khanna Před 3 lety +1

    प्रिय राघव,
    इस तरह के उपयोगी वीडियो बनाने के लिए कोटि कोटि से धन्यवाद् ||

  • @kumbhambhargavi44
    @kumbhambhargavi44 Před 7 měsíci

    Thanks. Really helps me alot.
    Good explanation.

  • @KrishnaMoorthy-oq6fv
    @KrishnaMoorthy-oq6fv Před 6 lety

    Excellent tutorial and gread work ! , also could you please add more docker related videos ..

    • @RaghavPal
      @RaghavPal  Před 6 lety +1

      Thanks Krishna, will do surely

  • @nforlife
    @nforlife Před 3 lety +1

    Simple and easy to understand thank you!

  • @thecordels
    @thecordels Před 3 lety

    great tutorial, thanks!

  • @Farrukhw
    @Farrukhw Před 4 lety

    Very precise and to the point discussion and very helpful replies in comments. Thank you mate... Watching from Pakistan... Really appreciated ...

  • @parthachattopadhyay2181
    @parthachattopadhyay2181 Před 5 lety +3

    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.

  • @sruthikuppili7828
    @sruthikuppili7828 Před 4 lety

    Excellent videos ...loved it

  • @saurabhchako89
    @saurabhchako89 Před 4 měsíci

    Thanks Raghav. Your videos are still helping in 2024 !

    • @RaghavPal
      @RaghavPal  Před 4 měsíci

      Glad to hear that Saurabh

  • @fabianleon7640
    @fabianleon7640 Před 2 lety

    Really helpfull, thank you!

  • @sdevatraj
    @sdevatraj Před 4 lety

    Thank you for wonderful clean videos

  • @salarkhan7102
    @salarkhan7102 Před 2 lety

    Thanks bro it really helped!!!!. 👍🏻

  • @jacobanderson10
    @jacobanderson10 Před 3 lety

    Your videos are great. Thanks

  • @ahmadzulmamuhamed4664
    @ahmadzulmamuhamed4664 Před 3 lety

    Thank you very much.. This video help me a lot

  • @avijitbhattacharjee311

    Very useful video. Thank you

  • @thulasichebrolu6040
    @thulasichebrolu6040 Před rokem

    Very useful vedio. Very clear to understand thank you sir

  • @msurajnair7149
    @msurajnair7149 Před 3 lety

    Thank you so much, This really helped me a lot.

  • @sravanvenus1180
    @sravanvenus1180 Před 2 lety

    Just awesome explanation sir

  • @saurabhr.deshpande3033

    awesome docker tutorial

  • @HambaAllah-xn2zp
    @HambaAllah-xn2zp Před 4 lety

    Gooood... Thanks for the video.

  • @VivekBhore-ud7lg
    @VivekBhore-ud7lg Před rokem +1

    Thank you
    Your videos are very helpful

  • @HeyMani92
    @HeyMani92 Před 5 lety

    Thank you so much, Raghav for you make me a Stand in front of my manager and soon I will purchase your note.

    • @RaghavPal
      @RaghavPal  Před 5 lety

      Glad to know this Mani, Keep learning

  • @vkgsbr
    @vkgsbr Před 3 lety

    To the point video, keep it up

  • @motolola
    @motolola Před 4 lety

    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.

    • @RaghavPal
      @RaghavPal  Před 4 lety

      Hi Akinjide, I will try to do a session on this, For now you can take online help

  • @priyankasahu8780
    @priyankasahu8780 Před rokem

    thank you,very helpful

  • @josephnour6888
    @josephnour6888 Před 2 lety

    thank you very much, bro, all hope for you to be the best programmer ever .....

  • @pradipnath2293
    @pradipnath2293 Před 4 lety

    Short concise and very efficient video. Thanks Raghav

  • @hemant19
    @hemant19 Před 5 lety

    NICE TUTORIAL RAGHAV .

  • @ToufiqMustafiz
    @ToufiqMustafiz Před 4 lety

    Helpful. Love it

  • @shansuresh2335
    @shansuresh2335 Před 5 lety +2

    good one.

  • @codeZarathustra
    @codeZarathustra Před 2 lety

    Thank for sharing.!