Can't connect to MySQL server: Connection refused

This is a docker question not a traefik one.

You need to use an address of the host. The ip address of docker0 interface is usually good.

Closing this resurrected solved topic.