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

preview_player
Показать описание
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
: 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

2. Using PIP
pip install -U docker-compose

Step 2 : Create docker compose file at any location on your system

Step 3 : Check the validity of file by command
docker-compose config

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:

_____________________________________________________________

#DockerCompose #DockerComposeIntroduction #DockerContainers #DockerTutorials #DockerTraining #DevOpsTools #DevOpsTraining #DockerCommands #DockerForBeginners #DockerFreeTutorials #DockerforDevOps

DOCKER PLAYLIST

YOUTUBE PLAYLIST

YOUTUBE

FACEBOOK

TWITTER

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.

------------ Follow ------------

Share your knowledge with everyone and,
Never Stop Learning
Raghav
Рекомендации по теме
Комментарии
Автор

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.

devopswisdom
Автор

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

ajeetis
Автор

Very short and comprehensive Explanation. 100/100 marks .

aameraftab
Автор

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!

protonvashishtha
Автор

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.

NasimMahmud
Автор

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.

be
Автор

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

dmth
Автор

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

Udzial
Автор

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

pavelzarembo
Автор

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

mukundsridhar
Автор

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

AshishBurnwal
Автор

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

venkatah
Автор

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

prashi
Автор

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.

binodranabhat
Автор

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

dips
Автор

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.

suprotimroy
Автор

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

anison
Автор

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

MustangBoss
Автор

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

maheshm
Автор

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

HaribabuPasupathy