Cannot connect to MySQL from other container

SOLVED.

Problem was that I wasn’t actually removed cached versions of the build WAR file so none of my multiple experiments was actually using new builds. Need to use the “rmi” argument with docker down I’m told. In any case, the correct working JDBC was to use the mysql container name from the docker-compose file above and port 3306.

Hope this helps someone else.

Thanks to all.

2 Likes