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

Trying to figure out why eslint-watch doesn't work with docker-compose correctly
docker-compose the latest stable version on ubuntu
docker compose environment variable for command
java.net.UnknownHostException: failed to resolve 'inventory-microservice'. Exceeded max queries per resolve 3
What does working_dir tag mean in a docker-compose yml file
If I upgrade an image in docker-compose, will its volumes be lost?
How to solve this docker-compose upgrading error?
Fabric Network - what happens when a downed peer connects back to the network?
Docker-compose and load balancing
Run arguments in Docker Compose
Docker compose file config
Systemd “No such file or directory” itself during “docker-compose up”
Docker compose yml static IP addressing
compose extend file results in a validation error
hubot rocketchat adapter does not work
Docker compose lables constraint:node not work

Categories

HOME
c#
drupal
javafx
postgresql-9.3
pelican
webvr
glsl
skypedeveloper
conceptual
crm
x509certificate
itext7
google-docs-api
checkpoint
jquery-select2
token
google-my-business-api
mongodb-replica-set
xmlhttprequest
game-engine
project-reactor
audio-streaming
gpo
glibc
computation-theory
beaker-notebook
gsuite
oracle10g
nsopenpanel
visual-studio-community
drombler-fx
git-submodules
dynamics-ax-2012-r3
boost-log
wercker
rtos
tunnel
minitest
sampling
campaign-monitor
outlook-2010
kepserverex
anypoint-studio
client-server
redhat-brms
server-side-swift
amazon-rds-aurora
jenkins-2
activeandroid
google-chrome-storage
g77
stanford-nlp-server
boost-regex
firebase-polymer
dbi
joystick
deck.js
hotkeys
jmap
apache2-module
webservices-client
redquerybuilder
identifying
dnvm
jsoncpp
syncano
hexagonal-tiles
applinks
xcode5
code-smell
opencobol
power-management
infor-eam
logo-lang
node-amqp
xcode6.1-gm-seed
surfaceview
xcode5.1
raddatepicker
kendo-window
caroufredsel
nokogiri
google-checkout
xcode4.6.3
android-memory
mvcmailer
eeprom
idtabs
mscorlib
openwrap
designated-initializer
n2
norton
mediastreamsource
xslt-grouping
coderush-xpress

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