In docker networking connection need to be made with hostname as IPs will be changing on restart, do consider https://docs.docker.com/engine/network/. also confirm ports you are expecting to connect is exposed or not.