{"action":"created","issue":{"url":"https://api.github.com/repos/eBayClassifiedsGroup/PanteraS/issues/179","labels_url":"https://api.github.com/repos/eBayClassifiedsGroup/PanteraS/issues/179/labels{/name}","comments_url":"https://api.github.com/repos/eBayClassifiedsGroup/PanteraS/issues/179/comments","events_url":"https://api.github.com/repos/eBayClassifiedsGroup/PanteraS/issues/179/events","html_url":"https://github.com/eBayClassifiedsGroup/PanteraS/issues/179","id":128958425,"number":179,"title":"Exposing multiple ports breaks haproxy_tcp","user":{"login":"cookandy","id":6495064,"avatar_url":"https://avatars.githubusercontent.com/u/6495064?v=3","gravatar_id":"","url":"https://api.github.com/users/cookandy","html_url":"https://github.com/cookandy","followers_url":"https://api.github.com/users/cookandy/followers","following_url":"https://api.github.com/users/cookandy/following{/other_user}","gists_url":"https://api.github.com/users/cookandy/gists{/gist_id}","starred_url":"https://api.github.com/users/cookandy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cookandy/subscriptions","organizations_url":"https://api.github.com/users/cookandy/orgs","repos_url":"https://api.github.com/users/cookandy/repos","events_url":"https://api.github.com/users/cookandy/events{/privacy}","received_events_url":"https://api.github.com/users/cookandy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-26T22:11:40Z","updated_at":"2016-01-28T14:01:33Z","closed_at":null,"body":"Hi,\r\n\r\nWhen using multiple ports in Marathon, it breaks the `haproxy_tcp` service tag.  For example, the following works\r\n\r\n```\r\n      \"portMappings\": [\r\n        { \"containerPort\": 25, \"servicePort\": 0, \"protocol\": \"tcp\" }\r\n      ]\r\n    },\r\n   \"env\": {\r\n   \"SERVICE_TAGS\" : \"james,haproxy,haproxy_tcp=25\",\r\n   \"SERVICE_NAME\" : \"james\"\r\n},\r\n```\r\n\r\nHowever, the following doesn't:\r\n\r\n```\r\n      \"portMappings\": [\r\n        { \"containerPort\": 25, \"servicePort\": 0, \"protocol\": \"tcp\" },\r\n        { \"containerPort\": 110, \"servicePort\": 0, \"protocol\": \"tcp\" },\r\n        { \"containerPort\": 143, \"servicePort\": 0, \"protocol\": \"tcp\" }\r\n      ]\r\n    },\r\n   \"env\": {\r\n   \"SERVICE_TAGS\" : \"james,haproxy,haproxy_tcp=25,haproxy_tcp=110,haproxy_tcp=143\",\r\n   \"SERVICE_NAME\" : \"james\"\r\n},\r\n```\r\n\r\nEven just adding the additional `portMappings` without the `SERVICE_TAGS` breaks it... i.e.:\r\n\r\n```\r\n      \"portMappings\": [\r\n        { \"containerPort\": 25, \"servicePort\": 0, \"protocol\": \"tcp\" },\r\n        { \"containerPort\": 110, \"servicePort\": 0, \"protocol\": \"tcp\" },\r\n        { \"containerPort\": 143, \"servicePort\": 0, \"protocol\": \"tcp\" }\r\n      ]\r\n    },\r\n   \"env\": {\r\n   \"SERVICE_TAGS\" : \"james,haproxy,haproxy_tcp=25\",\r\n   \"SERVICE_NAME\" : \"james\"\r\n},\r\n```\r\n\r\nIs this the correct way to expose multiple TCP ports?  "},"comment":{"url":"https://api.github.com/repos/eBayClassifiedsGroup/PanteraS/issues/comments/176197253","html_url":"https://github.com/eBayClassifiedsGroup/PanteraS/issues/179#issuecomment-176197253","issue_url":"https://api.github.com/repos/eBayClassifiedsGroup/PanteraS/issues/179","id":176197253,"user":{"login":"kopax","id":1866564,"avatar_url":"https://avatars.githubusercontent.com/u/1866564?v=3","gravatar_id":"","url":"https://api.github.com/users/kopax","html_url":"https://github.com/kopax","followers_url":"https://api.github.com/users/kopax/followers","following_url":"https://api.github.com/users/kopax/following{/other_user}","gists_url":"https://api.github.com/users/kopax/gists{/gist_id}","starred_url":"https://api.github.com/users/kopax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kopax/subscriptions","organizations_url":"https://api.github.com/users/kopax/orgs","repos_url":"https://api.github.com/users/kopax/repos","events_url":"https://api.github.com/users/kopax/events{/privacy}","received_events_url":"https://api.github.com/users/kopax/received_events","type":"User","site_admin":false},"created_at":"2016-01-28T14:01:33Z","updated_at":"2016-01-28T14:01:33Z","body":"This feature miss a lot.\r\nThe way haproxy template has been made cannot handle multiple tcp port exposition.\r\nHave a look at `docker exec -ti panteras_panteras_1 cat /etc/haproxy/haproxy.cfg` when adding multiple tcp port. The template doesn't know which port has been allocated to which service.\r\n@sielaq and his team are working on another proxy called Fabio which hasn't been release in PanteraS yet."}}