Spring Boot 3.1.0 New Feature 🚀 | Docker Compose Module | JavaTechie
Vložit
- čas přidán 22. 08. 2024
- In this Tutorial, we will discuss spring boot 3.1.0 new module i.e spring boot docker compose , This module will start/stop your containers for you that are declared in a Docker Compose file.
#JavaTechie #springBoot
Spring boot microservice Premium course lunched with 70% off 🚀 🚀
Hurry-up & Register today itself!
COURSE LINK : javatechie5246...
PROMO CODE : JAVATECHIE50
Join this channel to get access to perks:
www.youtube.co...
GitHub:
github.com/Jav...
Blogs:
/ javatechie
Facebook:
/ javatechie
guys if you like this video please do subscribe now and press the bell icon to not miss any update from Java Techie
Disclaimer/Policy:
--------------------------------
Note : All uploaded content in this channel is mine and its not copied from any community ,
you are free to use source code from above mentioned GitHub account
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
Thanks for this nice tutorial.
Super my brother
Hello sir, plz create a full series on spring boot. Try to cover most of the annotations and other features. Please
Hi Ashish please check this czcams.com/video/htyq-mER0AE/video.html
this new feature changes the way we setup our local db.. no more property file config!
First view and comment. Great explanation
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
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,
czcams.com/video/NAmr0fW5SC0/video.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
Thanks for the Great video. Does it work with Rancher Desktop?
No idea about Rancher
@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.
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
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
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, 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
Any offline course available?
This kills h2 database for testing
No not exactly but you can use a test container rather than h2
How you are getting formatted json in browser response
I have added pojoschematojson plugin in chrome browser
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.
👍🙏🙏