How to connect Spring Boot (Gradle) and MySQL in Docker-Compose

preview_player
Показать описание
In this video, I showcase how to set up Spring Boot and MySQL-connected services using Docker-Compose. In this specific case, Spring Boot is running using Gradle, but everything would be more or less the same if Spring Boot were running with Maven.

Welcome to my programming and software engineering channel! Here, you'll find a variety of videos on topics such as Java, Python and Docker. Whether you're a beginner looking to learn a new language or an experienced developer looking to stay up-to-date with the latest trends, my channel has something for everyone. Join me on this journey and let's learn together!

Рекомендации по теме
Комментарии
Автор

while running docker-compose i am getting this error everytime and i am not able to go forward even jar file is there in target it is showing this error ( "ERROR [springboot-app internal] load build context 0.0s")
but i am able to do this using just dockerfile for normal text message but i am not able to do docker-compose

jayanth-ghwx
Автор

This simple conf in yaml is noit working because running into few serious problems, especially a pitfall for those who is a beginner. I do not know is it purpose of being evil to beginners or just a negligence?

nz
Автор

Why is it necessary to create an init file? I thought hibernate helped create the database?

angnguyen-nrud