I'm trying to find out how to create a TCP service in a docker Swarm environment and I cannot find any working example; also the docs don't show anything useful there.
Is anyone able to show me a working example for MySQL, IMAP, or any other TCP service that they deployed as stack and really floats the traffic ?
It would be great to see and test to make TCP more understandable in Swarm environments if possible.
Make sure to enable docker.swarmMode and have the Traefik container constraint to Docker Swarm manager node, only there it can get all required information about the services.
Note that Traefik v3 has moved to a new swarm provider.