docker compose example | spring boot & mysql docker-compose

preview_player
Показать описание
How to deploy spring boot and mysql in docker container using docker-compose .

Deploy spring boot & mysql using docker
Рекомендации по теме
Комментарии
Автор

is there someone snoring in the background on min 9:41

rex
Автор

Really detailed and concise, thank you sir!
Just solved the problem been bothering me for days by seeing your video.

高造擎
Автор

i want to ask question sir in application properties y u not mentioned username and password as root because in yml file u mention as root

is it compulsary to have different???? in both?

prathameshhiremath
Автор

Thank you very much for this video and the previous one. It is much more valuable than most paid courses on platforms. You went straight to the point with an excellent practical example. I've followed step-by-step everything you've done, and everything works perfectly.

pablon
Автор

Been having trouble with this for a while now, and your video was what helped to finally get my project up and running. Thanks!

JustAUsernameIGuess
Автор

I dont even use java, I wanted to use it for a golang app and this video did explain everything very clearly, thanks sir :)

soham
Автор

I followed the process slightly in a different way.
I used buildpacks to build the dockerfile(no dockerfile actually, buildpacks were making the image in the background),
and postgres.

I managed to do everything the tutorial was trying to teach. One thing I stumbled was that when I was doing docker compose down,
I sometimes had to remove the stopped containers else the database was acting weird and I had errros.

Other that that, it was an amazing tutorial mate! thank you very much! Liked and subscribed!!

petersteel
Автор

Thank you very much sir . I really appreciate the video due to excellent hand son practical. really help me a lot ....and finnaly my project is up and running

priyaghadgevlog
Автор

Thank you. That was very well explained!

SteadyFreedom
Автор

Sir, It's awesome, I have basic ideas of docker and I was trying to learn advance docker my own but not able to start and getting irritation and last left but when I randomly watched your video, I say it's simply awesome. Thank you so much and going to subscribe to your channel to get more and more.

sanjayshah
Автор

you can use "depends_on" attribute for starting services in order

ahasanulhadi
Автор

when I tried using Postman with the POST method to insert data it is not inserted in the database. But it is stored in the volume that I have created

kumarguru
Автор

Enjoying your video's as you give more detail which is very usefull. Thanks!

karely
Автор

i ve one doubt. U r connecting Dbeaver with mysql host localhost user and pwd as root and db as test and port as 3307. When u r telling host as localhost whether its an local db or container db? Suppose u r running spring boot app instance in docker container and not in localhost, db will be persisted to container db and not in local db. Then why r u restarting and checking in local db with localhost and not in container db. And another doubt if u add more data in container db and not in local db. Suppose if u remover container db and again create cont db, whether through volume, it will sync up in both sides and if i make any changes in localdb whether it will sync with container db and vice versa. I dont know whether am making things complicated or not

meenatchisundar
Автор

absolute legend, mate. helped a lot, thanks.

vanamutt
Автор

How to test it with postman ?, why you create db folder in destop ?

chickenchicken
Автор

Don't we have to use links command with spring boot service to link it with MySQL service so that it is able to connect to MySQL container name and its corresponding container specific host 3306?

anubhavnigam
Автор

Hey i need some help.When I am rebuild the jar after adding the properties of mysql in the application.properties file the build is not getting successful. During mvn package the app is not able to connect to mysql

dogomation
Автор

Sir pls answer one more question, what is difference between java application and spring boot application?

jyotikansal
Автор

Sir, multiple microservices main, main sarvice ka kaise pata kar sakte hai, ki pehle kon si chalge fir kon

AjayKumar-lmyr
join shbcf.ru