Hello Guys ,
Welcome back to DevOps Tutorial . Today we are going to learn Docker compose .
Docker compose -
Docker compose is a simple yet powerful tool that is used to defining and run multiple containers as a single service. For example, suppose you have an application which requires Nginx as a web server and MySql as a database service. In this case by docker-compose, you can create one single file (docker-compose.yml ) which will create both the containers as a single service without starting each separately
How to install docker compose .
Step 1. Run Below command on your terminal
sudo curl -L "https://github.com/docker/compose/rel... -s)-$(uname -m)" -o /usr/local/bin/docker-compose
Step 2: Apply executable permissions to the binary
sudo chmod +x /usr/local/bin/docker-compose
Step 3: Check the Version of docker Compose
docker-compose -v
or
docker-compose --version
or
docker-compose version
Basic Command of Docker compose
1. start services with detached mode
docker-compose up -d
2. start specific service
docker-compose start [service_name]
3. stop specific service
docker-compose stop [service_name]
4. stop all contaners and remove images, volumes
docker-compose down
5. list containers
docker-compose ps
6. kill services
docker-compose kill
7. scale services
docker-compose up -d --scale [service_name]=[number]
Reference :
https://github.com/Abhishek08/Docker
YOUTUBE PLAYLIST
/ @abhishekmodi08
#DockerCompose #DockerComposeIntroduction #DockerContainers #DockerTutorials #DockerTraining #DevOpsTools #DevOpsTraining #DockerCommands #DockerForBeginners #DockerFreeTutorials #DockerforDevOps #devOpsBeginner#freetutorial
On this page of the site you can watch the video online DevOps Tutorial : Docker Compose | Basic command of Docker compose with a duration of hours minute second in good quality, which was uploaded by the user Abhishek Modi 12 May 2020, share the link with friends and acquaintances, this video has already been watched 411 times on youtube and it was liked by 34 viewers. Enjoy your viewing!