Title: ZeroMq (NetMq) - Xpub Xsub - with docker (issue) cannot expose same port in yaml
Tags: docker;zeromq
Question: Pub1 --&gt; XSub - XPub --&gt; XSub1
Pub2 --&gt; XSub - XPub --&gt; XSub2
Pub3 --&gt; XSub - XPub --&gt; XSub3
My issue is that XSub suppose to listen on specific ip:port, meaning that all Pub1,2,3 have to publish to the same ip:port (conflict and conflict in the docker compose to expose port output in the yaml).
Each publisher are located in their own docker in the same machine 1
Where the Xpub-Xsub and the subscribers are in the same machine 2 each one on their own container.
Best regards.


Here is another answer: Problem resolved, didn't pray attention that my publisher has been configured as server instead client. (bind vs connect )..

{'source': 'StackExchangeDataset', 'subset': 'stackoverflow.com', 'metadata': {'AnswerCount': 1, 'CommentCount': 0, 'ContentLicense': 'CC BY-SA 4.0', 'CreationDate': '2021:00:06/09/21', 'FavoriteCount': None, 'PostTypeId': 1, 'Tags': '<docker><zeromq>', 'Title': 'ZeroMq (NetMq) - Xpub Xsub - with docker (issue) cannot expose same port in yaml', 'ViewCount': 35, 'id': 67898886, 'user_AboutMe': None, 'user_AccountId': 6610293.0, 'user_DisplayName': 'guy Chemouny', 'user_Reputation': 1.0, 'user_Views': 0.0, 'user_id': 5105702.0}}