Docker Tutorial - Docker Compose (SCALE, CONFIG, UP, DOWN) - Part10

preview_player
Показать описание
This part covers
1. How to scale up services (containers) with docker-compose scale

Docker helps Developers/DevOps/System Admin to solve problems related to build/ship/deploy in multiple environment with having consistent behavior.....This video series is to provide How beginners can start learning docker technology with the help of real time examples & hands on commands. Target audience for this series is
1. Developers
2, DevOps,
3. System Administrator
4. Anyone who is planning to start their career in software industry.
Рекомендации по теме
Комментарии
Автор

One viewer has asked very interesting question how to scale a service which is exposed to specific port within docker-compose file. In such case use range of port rather giving specific port so docker will take care of that & you will not get into Port already allocated issue... provide this ports:
- 8081+:8081 . this way it will allow you to do scaling as Host port will different for each scaled instance... Another option can be create Load balance top of your service but that would unnecessary increase complexity... Good option to

renujain
Автор

Hello, thanks for the video :D !!!! One question, you have to up or down if you want yo scale... if its up, you cant scale with docker-compose ? Thanks !

gouterelo
Автор

Hey Man.. Good video. Just a doubt. If i am scaling any web image/container and i have to access that service on web browser/postman/soapui, how can i do it? As when you were scaling Nginx, all instances were running on port 80. Now i understand, multiple services cannot share port, so docker might have assigned new ports to them. How to access it?

rishidx
Автор

wouldn't the scaling of the instances consume more performance, HOST's memory? in this case, a service that consumes X of memory and performance would double that amount, wouldn't it? I really liked it, but I was thinking about this "problem" if it exists.

Athennavision