Docker Community Forums

Share and learn in the Docker community.

How do we scale up "client" containers in below application

The docker-compose.yml file is pasted here

version: “2”

services:
hwserver:
build: server-zmq
command: [“python”, “-u”, “./hwserver.py”]
environment:
SERVER_LISTEN_URI: tcp://0.0.0.0:5557

hwclient:
build: client-zmq
command: [“python”, “-u”, “./hwclient.py”]
environment:
SERVER_CONNECT_URI: tcp://hwserver:5557

How do I launch multiple clients to connect to the same server? How do I manage the ports?
“scale” flag indicates an error while pulling the image, permission denied error!

Regards,
Sakar Kalkotwar

Have a look at the

docker-compose scale

command. See here for guidance. It’s necessary to exercise some care there, since the current compose file version is 3.7, while I notice you are using version 2 compose file formats.