0% found this document useful (0 votes)
33 views1 page

Docker Compose

Uploaded by

wizarc 2k13
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
33 views1 page

Docker Compose

Uploaded by

wizarc 2k13
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

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. https://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

You might also like