docker-compose


How to start arbitrarily many identical containers with docker-compose?


I am testing a typical load-balancing setting with docker. For this I need to start a container running a load balancer acting as a proxy to access an arbitrarily large pool of workers running in their containers.
How can I build my docker-compose file or command line, to be able to specify how many containers running a worker I want to have?
docker-compose scale is the command you're looking for.

Related Links

JHipster - Doubts in the development using Microservices Architecture
Gogs + Drone getsockopt: connection refused
Concourse result keeps loading
Docker-compose: AttributeError: 'module' object has no attribute 'ssl'
scaling a service with docker compose
Docker Compose apparently ignores COMPOSE_FILE
Where does Docker install gems on a mac
What is the difference between docker-machine and docker-compose?
Docker Compose port issue. Cannot launch docker project on localhost
Name an image built from running a docker-compose file
Race conditions after changing names in docker-compose.yml
Docker compose - image not found
How to work out the hostname that compose gives containers?
docker-compose restart container if service is dead
Swarm scheduling not working as expected using filters in compose file
issues in buiding Slate with Docker

Categories

HOME
classification
skype-for-business
azure-documentdb
ns2
gsm
popover
postsharp
arcgis
spss
where
overrides
xss
python-3.4
point-of-sale
guidewire
camunda
cakephp-2.0
tag-cloud
game-engine
facebook-marketing-api
pylint
accordion
git-branch
datazen-server
coccinelle
multipart
aspxgridview
core-animation
priority-queue
formtastic
git-submodules
drawrect
blockly
mplab
spring-oauth2
zimbra
bootcamp
tunnel
perf
device-driver
strategy-pattern
wicket-tester
libzip
servicebus
yank
dcom
visualizer
fluent-nhibernate-mapping
playframework-1.x
node-java
activesupport
apache-commons-cli
symantec
class-design
xcode7.1
foreground
mate-desktop
git-cherry-pick
hfp
django-taggit
user-profile
phpdesigner
radar-chart
android-progressbar
ideavim
video-embedding
google-finance-api
clear
ios8-share-extension
recode
om
roslyn-code-analysis
joomla3.3
page-refresh
nfa
formbuilder
powerpoint-2010
windows-search
rpt
cs193p
visual-studio-setup-proje
cvi
grape-api
objectdatasource
forward-declaration
asp.net-4.0
reference-manual
ntdll
vline
setcookie
libx264
yii-components
datasheet
eeprom
idtabs
umfpack
wdm
norton
viewdata
chromebug
code-golf
hotfix
memory-consumption

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App