I try to achieve the following:
- have several docker containers that perform some tasks of the period
- there is a component running on the local host that, among other tasks, manages (starts / stops) containers
- from time to time, services in containers are performed; it is necessary to publish the result. Therefore, they bind to the open port using ZMQ and send the result.
- The component running on localhost subscribes to a specific port and listens for what.
The problem is that each container requires a specific / different port on the local network to bind and publish the results. And that means that I need to listen on all ports of the container.
Is it possible to listen on one port, and all containers publish their work there?
If not, what are the options?
thank
steve source
share