Wow...in love with these new features. Slowly but surely Boot is simplifying everything, once spring developer had to suffer, now using docker will be easy peasy even for kids 🥰
Just one question. From where does the image for postgres get pulled in? Like for maven dependencies, we have a central repository. Anything similar to that for docker-compose? And without mentioning the db URL, how it works?
@Javatechie where can we get our data if we do not have physical database, means by pulling postgres image and used once application get stop we lost our data right? that confusion I have please tell.
Hi, I was referring spring with mongodb dockrization, I don't know where it is storing tha data, but my requirement. Is I already have a db in my local I want connect with that,please help
Hi Basant! as a prerequisite of this tutorial, We need docker up and running in our machines. Generally docker for windows have many issues. Do you have any link of your previous videos where you described how can we do this in windows 11 machines?
Sir i have one question, Docker Desktop have to download in my system before using docker compose feature. is it compulsory or spring automatically handle it?
Hi Basant, I just copied your code & started my docker engine however I'm getting error as... FATAL : Password Authentication failed for user 'postgres' Is there any default password for postgres using docker ?
@@Javatechie ya tried with both, the one you gave...and the one I've for my locally installed postgres...also tried with removing username, password attributes.. nothing working
@@Javatechie Thank you for the solution. It worked like a charm. See, sometimes silly things kills our huge time, yesterday I spent whole night but nvr thought to stop that daemon process of postgres db engine 😁
@@Javatechie where can we get our data if we do not have physical database, means by pulling postgres image and used once application get stop we lost our data right? that confusion I have please tell.
its asking me for docker login and that is why its failing with this error "Stderr: db Pulling db Error Error response from daemon: pull access denied for postgre, repository does not exist or may require 'docker login': denied: requested access to the resource is denied" i have started the docker desktop and its properly running on my machine . please help me with this.
Are you using the latest docker desktop ? It shouldn't ask for login . It might be different for os let's give a try try do docker login with your docker hub credential
Wow...in love with these new features. Slowly but surely Boot is simplifying everything, once spring developer had to suffer, now using docker will be easy peasy even for kids 🥰
amazing.. the way 3.1 supports docker compose and the way this video clarifies it in simple way.. thank you @javatechie for all your videos..
this kind of concept was thought by myself and my co worker.. thankfully it is here ❤
Really good teacher, simple examples which makes it good to code along :) thanks bro!
Nice Video, Thanks @java techie
AS USUAL VERY INFORMATIVE AND RESOURCEFUL,thx
Just one question. From where does the image for postgres get pulled in? Like for maven dependencies, we have a central repository. Anything similar to that for docker-compose? And without mentioning the db URL, how it works?
It will fetch from central docker hub
Thanks for this nice tutorial.
Super my brother
@Javatechie where can we get our data if we do not have physical database, means by pulling postgres image and used once application get stop we lost our data right? that confusion I have please tell.
Hi, I was referring spring with mongodb dockrization, I don't know where it is storing tha data, but my requirement. Is I already have a db in my local I want connect with that,please help
this new feature changes the way we setup our local db.. no more property file config!
Hi Basant! as a prerequisite of this tutorial, We need docker up and running in our machines. Generally docker for windows have many issues. Do you have any link of your previous videos where you described how can we do this in windows 11 machines?
I have tried in windows 10 but not in 11 , what was the issue in 11 you are facing
checkout this video, this might help installing and running docker in windows 10/11 using wsl 2,
ruclips.net/video/NAmr0fW5SC0/видео.html
This all is good for development and everything, but how would you deploy this to Prod? The properties would need to be specified for that.
This is recommended only for development buddies not for prod
was thinking the same
What the cons of docker compose running at the same time with spring boot?
You should understand why docker and docker compose required
Sir I have one doubt in entity class variables we can use both wrapper class and primitives but which one is best
Yes we can use both, it's good to play with a wrapper object rather than primitive
Sir i have one question, Docker Desktop have to download in my system before using docker compose feature. is it compulsory or spring automatically handle it?
Thanks for the Great video. Does it work with Rancher Desktop?
No idea about Rancher
First view and comment. Great explanation
How you are getting formatted json in browser response
I have added pojoschematojson plugin in chrome browser
Any offline course available?
I am getting No docker compose file found in directory why?
Is your docker compose file present in root directory
@@Javatechie yes it is in root only and i am using spring 3.2.1 version
@@rahulcse3970 please share your error message with screenshot to javatechie4u@gmail.com
Is there anyway to integrate it with kubernetes
Yes spring kubernetes module is there
If possible can you please make video on that as well I think that is really required
@@Javatechie yes Basant, please make one video on spring-boot-kubernetes module as well.
Hi Basant, I just copied your code & started my docker engine however I'm getting error as...
FATAL : Password Authentication failed for user 'postgres'
Is there any default password for postgres using docker ?
Can you please Try with the same credential that I have mentioned
@@Javatechie ya tried with both, the one you gave...and the one I've for my locally installed postgres...also tried with removing username, password attributes.. nothing working
Do you have installed postgres in your machine? If yes can you please stop that service
@@Javatechie Thank you for the solution. It worked like a charm. See, sometimes silly things kills our huge time, yesterday I spent whole night but nvr thought to stop that daemon process of postgres db engine 😁
@@Javatechie where can we get our data if we do not have physical database, means by pulling postgres image and used once application get stop we lost our data right? that confusion I have please tell.
its asking me for docker login and that is why its failing with this error "Stderr:
db Pulling
db Error
Error response from daemon: pull access denied for postgre, repository does not exist or may require 'docker login': denied: requested access to the resource is denied"
i have started the docker desktop and its properly running on my machine .
please help me with this.
Are you using the latest docker desktop ? It shouldn't ask for login . It might be different for os let's give a try try do docker login with your docker hub credential
This kills h2 database for testing
No not exactly but you can use a test container rather than h2
Hii Sir
👍🙏🙏