Unable to Connect Mysql container from a spring-boot application

I used ‘host’ network instead of ‘bridge’ and the spring boot container connected to the mysql container.