Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
TCP proxy for MySQL connection (v2.0) #4981
Do you want to request a feature or report a bug?
Did you try using a 1.7.x configuration for the version 2.0?
What did you do?
Using docker-compose and traefik.toml to expose a mysql database through a local domain name.
What did you expect to see?
Establish a connection to the database using as host
What did you see instead?
Connection error / timeout
thanks for your interest in the project and this report. After some digging, I finally know what's going on. Let me explain the situation:
It is possible to use Traefik as TCP proxy for your desired usecase, but only, if you make use of TLS encrypted connections. Otherwise, based on the level 4 protocol, it's not possible to distinguish between the different hostnames and you would have to use one entrypoint per TCP router. I'll enhance our documents in that regards.
However, with the current version even a matcher of
However, In the meantime, you could give it a pre-test by using the
docker image and let us know if this fix works out for you. We would really appreciate it.
Sorry for the inconvenience.