Spring Boot Microservices Project Example - Part 9 | Dockerize the application

  Рет қаралды 47,382

Programming Techie

Programming Techie

Күн бұрын

Spring Boot Microservices Project Example - Part 9 | Dockerize the application
This video will teach how to dockerize our application and orchestrate the containers using Docker Compose.
Source Code
github.com/Sai...
⭐️⭐️ You can follow me on Social Media through the below Links⭐️⭐️
Twitter: / sai90_u
Blog: programmingtec...
Dev.to: dev.to/saiupad...
Facebook Page: / programmingtechie

Пікірлер: 138
@manee427
@manee427 2 жыл бұрын
Without a doubt the best microservices course in whole internet. Every minute I learned a lot . Keep going .very deep and nice content👌
@JohnDoe-ej6vm
@JohnDoe-ej6vm Жыл бұрын
No doubt the best content.
@kbpmowrya
@kbpmowrya 6 ай бұрын
indeed💌
@doen
@doen 2 жыл бұрын
"Docker for java" would be awesome addition Mr ... Thank you so much 🙏🏻
@vinodlakshan3018
@vinodlakshan3018 2 жыл бұрын
Thank you! this tutorial series is great! I would highly appreciate a "Docker for Java" series!
@trustmandi
@trustmandi 2 жыл бұрын
Great work. Much appreciated😊 A docker tutorial for java developers will be great.
@MS-rw7uv
@MS-rw7uv Жыл бұрын
First of all, thank you for thi sincredible content. Where did this postgres come from?
@bennyInnovator
@bennyInnovator Жыл бұрын
i have a issue! why are we using Postgres configurations instead of using mysql configuration on docker compose?
@iamdavidtega
@iamdavidtega Жыл бұрын
please i would love a docker tutorial for spring boot, thanks
@hunghoangngoc7336
@hunghoangngoc7336 Жыл бұрын
Hope to create new video for guiding deploy to ḱ8s in this tutorial
@JohnDoe-ej6vm
@JohnDoe-ej6vm Жыл бұрын
12:20 . Waow I didn't expect you also covered jib. You are the best bro . Started from docker then explained docker layerd and then jib. Awesome
@felixgato27
@felixgato27 Жыл бұрын
Hi Nice tutorial. I am getting an error java.lang.RuntimeException: Driver com.mysql.cj.jdbc.Driver claims to not accept jdbcUrl, jdbc:postgresql://postgres-order:5431/order-service Do I need to install Postgres?
@gayannanayakkara8386
@gayannanayakkara8386 Жыл бұрын
Did u find the solution for this?
@vishalghanghav748
@vishalghanghav748 Жыл бұрын
@@gayannanayakkara8386 Hi gayan ,I recieved same error.Were you able to resolve it?
@gayannanayakkara8386
@gayannanayakkara8386 Жыл бұрын
@@vishalghanghav748 No. Then I tried with Mysql too. I think something is missing here where docker image inter connection create. Tried lots of ways and still not Luck. Had to give up. Let me know here if you were able to find a solution
@vishalghanghav748
@vishalghanghav748 Жыл бұрын
@@gayannanayakkara8386 Ok ,I am trying .No success yet😐
@sharathkumarpothula3358
@sharathkumarpothula3358 8 ай бұрын
Good video can you do another video how to deploy microservices application into AWS EKS
@vishalghanghav748
@vishalghanghav748 Жыл бұрын
Finally ,I have almost reached an end. Can we expect a Spring ,Angular project with Cloud deployment in future? If no ,please suggest some place where I can find such project with explanation skills close to you
@ProgrammingTechie
@ProgrammingTechie Жыл бұрын
I will plan a blog post with the UI and Kubernetes Deployment
@oyekunlejohnson
@oyekunlejohnson Жыл бұрын
Great work, please a detail series on docker for Java will be of great help. Thanks so much for your time and effort
@madhurikumawat3560
@madhurikumawat3560 Жыл бұрын
Best Tutorial on microservices I have ever seen. You must create Docker series. Will help a lot. Thank you
@liwen7252
@liwen7252 3 ай бұрын
Great video and thank you so much bro @Programming Techie! One question, please? Where is the video for the k8s related content? It seems the next part of the video is not for k8s...
@zazazaza3635
@zazazaza3635 2 жыл бұрын
YOU ARE AMAZING. Just when i needed this. thank you. Plaese make a tutorial in depth about the docker-compose file you used in main project. until then, 1 question: is it possible to create independent docker compose files and dockerfiles for each service?
@ProgrammingTechie
@ProgrammingTechie 2 жыл бұрын
Yes, it's possible to use multiple docker-compose files. For our case, you can use one docker-compose file for all external services like DB, Kafka, zookeeper, keycloak, etc. And another docker-compose file just for our services.
@jonsmith7718
@jonsmith7718 8 ай бұрын
nice video. where is next video refactored for k8S you mentioned?
@Tony_Limitless
@Tony_Limitless Жыл бұрын
Do docker tutorial for Java Please
@pianomusiclover4545
@pianomusiclover4545 2 жыл бұрын
sir please make video on docker please and saga pattern ,auth services and ELK in this project.
@qkolpdkqwdl
@qkolpdkqwdl 8 ай бұрын
Thank you bro ! Get a happy life !!!
@mhdies-d8g
@mhdies-d8g 8 ай бұрын
despite every time reset the Keycloak's docker container we need get secret client agian ,for android client or IOS client that can set the secret client one time in their program per version,how to can handle it ?
@ravi1341975
@ravi1341975 2 жыл бұрын
Thank you very much for this wonderful tutorial, please go ahead with the docker tutorial too.
@doen
@doen 2 жыл бұрын
agree sir..
@JohnDoe-ej6vm
@JohnDoe-ej6vm Жыл бұрын
0:40 yes sir please docker for java developer and latest ways for spring boot.
@berndeveloper
@berndeveloper Жыл бұрын
Best backend tutorial out there!, congrats good man!, you really cleared my mind
@techlead_ashu
@techlead_ashu 5 ай бұрын
17:59 will use docker compose to run the images pushed to docker hub.
@Ravindarb-x8z
@Ravindarb-x8z 7 ай бұрын
nice video. where is next video refactored for k8S you mentioned?
@saidurgasrividyaupadhyayul4675
@saidurgasrividyaupadhyayul4675 Жыл бұрын
A complete tutorial on Docker pls :)
@ProgrammingTechie
@ProgrammingTechie Жыл бұрын
Sure srividya 😁
@tonegrail650
@tonegrail650 Жыл бұрын
@@ProgrammingTechie Yes we need that because a lot of the stuff in this section does not work unless there is some pre-existing docker configuration. Please walk us though setting that setup!
@anhvuha7484
@anhvuha7484 9 ай бұрын
When running Dockerfile of API Gateway at the start of the video I got ERROR: failed to solve: lstat /var/lib/docker/tmp/buildkit-mount1536772929/target: no such file or directory Can anyone help? I've searched for solutions but still not working.
@ACESpraySo
@ACESpraySo 7 ай бұрын
I'm getting the same error. Did you find any fix?
@PappuKumar-ho3ek
@PappuKumar-ho3ek 2 жыл бұрын
Thanks for uploading this video....nice explanation 👍
@maneshipocrates2264
@maneshipocrates2264 2 жыл бұрын
Thanks. I hope you have time to make a docker video.
@maneshipocrates2264
@maneshipocrates2264 Жыл бұрын
Where do we save the settings.xml file containing someone's user name and pwd? It seems you just mentioned it on the fly?
@brianlitalk
@brianlitalk 5 ай бұрын
the Best of best. Clear, practical, and concise.
@kalyanboro6338
@kalyanboro6338 2 жыл бұрын
today I completed till part 8 and disappointed that I'll have to wait for weeks for the next video. but this is a great surprise. Thank you sir!!!
@shamilkagurusinghe2019
@shamilkagurusinghe2019 Жыл бұрын
java.lang.RuntimeException: Driver com.mysql.cj.jdbc.Driver claims to not accept jdbcUrl, jdbc:postgresql://postgres-order:5431/order-service- this error occurs when I See the Order service log(docker logs -f order-service)
@ProgrammingTechie
@ProgrammingTechie Жыл бұрын
Please refer to the GitHub repo, I created branches for each part, please verify your changes with the existing code.
@vishalghanghav748
@vishalghanghav748 Жыл бұрын
Did you find a solution to this?
@pradhidas
@pradhidas Жыл бұрын
@@ProgrammingTechie I verified my changes from part 9 branch in github, but still facing the same error! :(
@andreyfetisov7096
@andreyfetisov7096 Жыл бұрын
verify the inventory-server app.props )@@pradhidas
@TheSeeker-l7u
@TheSeeker-l7u Жыл бұрын
@@pradhidas were you able to resolve this issue?
@geliyang6495
@geliyang6495 2 жыл бұрын
Amazing tutorial. I really appreciate your efforts. Thank you so much
@_ravi_kumar_gupta
@_ravi_kumar_gupta 2 жыл бұрын
Great tutorial 🙏. docker tutorial please.
@javasystems5850
@javasystems5850 2 жыл бұрын
Yes need every thing about Docker from 0:40
@amitanvekar7618
@amitanvekar7618 Ай бұрын
Please do in-depth video on java docker container
@prashantbalotra
@prashantbalotra Жыл бұрын
Great tutorial, Thanks for making this video!
@nguyenquan4836
@nguyenquan4836 Жыл бұрын
Many thanks, this is much value video.
@toto_frs620
@toto_frs620 2 жыл бұрын
Could you make a playlist for keycloak? I would be interested in understanding how to manage roles and permissions
@ProgrammingTechie
@ProgrammingTechie 2 жыл бұрын
I already have a playlist for Keycloak, but it's missing the roles and permissions part, I will add this to my list.
@toto_frs620
@toto_frs620 2 жыл бұрын
@@ProgrammingTechie Thanks in advance, I really think this is the best programming channel. Well done!
@maheshnadimpally
@maheshnadimpally Жыл бұрын
Need a Docker video like complete guide.
@NeerajSharma-mz4es
@NeerajSharma-mz4es 7 ай бұрын
Docker in java that is all we need, your content is gem. Thanks for creating such an awesome content. 🙂🙂
@helsinkired8523
@helsinkired8523 Жыл бұрын
Hi Man, you're the best. I have one doubt, when in docker profile, we have not added all the properties from application.properties to application-docker.properties. So, how does that work. You've just added the urls in application-docker.properties but other properties are missing. So I did not get how does this work.
@ProgrammingTechie
@ProgrammingTechie Жыл бұрын
The properties in the application.properties file are common across all the profiles. So spring boot will only read the properties defined in the application-docker.properties file, rest of all it will read from application.properties. In this case, I don't need to duplicate the properties in the application-docker.properties file if I have the same value as the original properties file .
@helsinkired8523
@helsinkired8523 Жыл бұрын
@@ProgrammingTechie Thanks man, got it. You're the best.
@aamirshayanshaikh2728
@aamirshayanshaikh2728 2 жыл бұрын
Thanks for a quick upload. Your tutorials really teach a lot
@sandeepkumararya9949
@sandeepkumararya9949 9 ай бұрын
This one is the best tutorial of microservices on KZbin. There is one thing that is now available the SAGA pattern implementation, can you please create a SAGA pattern implementation using Kafka.
@shashank1210
@shashank1210 2 жыл бұрын
Please make a series of docker
@laluprasad3775
@laluprasad3775 2 жыл бұрын
Sir please make videos Angular
@GiuseppeScrugli
@GiuseppeScrugli Жыл бұрын
Why did you choose to expose all services to the host? In my compose project, I opted to create a network and only exposed the gateway and KC. What are your thoughts on my approach?
@kavyachinnari
@kavyachinnari Жыл бұрын
Please make a video for Docker
@mahammadalishaik6151
@mahammadalishaik6151 2 ай бұрын
Thank you so much and awesome content
@venkatramanab7387
@venkatramanab7387 Жыл бұрын
please create a video on docker
@SathishVp-u3g
@SathishVp-u3g 11 ай бұрын
A Big thank you for making this tutorial. Learned a lot. Need a tutorial on how to deploy these microservices in AWS.
@rockdynamics7766
@rockdynamics7766 Жыл бұрын
Hello , This tutorial is so great .Pls accept my thanks. Where is the tutorials on Kubernetes deployment?
@santhoshthatikonda9051
@santhoshthatikonda9051 Жыл бұрын
Thanks you.This video very useful to us. Apart from this should share any video about creating how to create docker files in target folder.
@chinnarajuluk3125
@chinnarajuluk3125 Жыл бұрын
Plz do make video on docker
@user-gp5xz
@user-gp5xz Жыл бұрын
Thanks!
@maxstepanenko7124
@maxstepanenko7124 Жыл бұрын
Are application-docker.properties necessary? Or I just can define all the properties in docker-compose file?
@voidcry9757
@voidcry9757 26 күн бұрын
I need a Docker for Java video
@selandeemantha4933
@selandeemantha4933 Жыл бұрын
Great!!! much appreciate🤩
@ahmedhayel1979
@ahmedhayel1979 Жыл бұрын
Hi thanks bro for this beautiful course, great work. can you add ELK integration for microservices plz (i guess that you forgot this part) also config server?
@venkatramanab7387
@venkatramanab7387 4 ай бұрын
please create a video on docker
@whoamixrun3851
@whoamixrun3851 9 ай бұрын
Of course we whant. I am waiting to see your docker tutorial :)
@ivansimeonov8342
@ivansimeonov8342 Жыл бұрын
Really good one. Thank you. Would be nice if you make "Docker and Kubernetes tutorial" juxtaposing those and explaining the differences, pros and cons.
@PuneethSharma-rh3xs
@PuneethSharma-rh3xs 5 ай бұрын
Docker tutorial from you, would be great. Love your work
@midlajj
@midlajj Жыл бұрын
SIr u can also use alpine jdk, jre for reducing even more sizes
@SolidWaveThoughts
@SolidWaveThoughts Жыл бұрын
"Docker for java" Please make this series. Thank you.
@theNikki1
@theNikki1 Жыл бұрын
very nice course! One question still, more related to docker(compose), in the dockercompose file we are not exposing any microservice downstream application (like inventory-service for example) ports. I guess that all is somehow automatically handled by the docker-compose? Otherwise service discovery with running multiple instances of same downstream application would be impossible ?
@aviksutar
@aviksutar 10 ай бұрын
yeah make a docker videos
@JohnWeng-zb3pe
@JohnWeng-zb3pe Жыл бұрын
Nice video. The docker desktop is not free now. So where and how do we install docker now?
@nick-sx2zn
@nick-sx2zn Жыл бұрын
Sir please make video on docker with spring boot
@tonegrail650
@tonegrail650 Жыл бұрын
Getting the following error: => ERROR [builder 4/4] RUN java -Djarmode=layertools -jar app.jar extract 0.3s ------ > [builder 4/4] RUN java -Djarmode=layertools -jar app.jar extract: #9 0.336 Error: Unable to access jarfile app.jar ------ executor failed running [/bin/sh -c java -Djarmode=layertools -jar app.jar extract]: exit code: 1
@tonegrail650
@tonegrail650 Жыл бұрын
Solution : I am using Eclipse and I needed to explicitly create the app.jar file using a Maven build. It works fine now. Not sure why you left this step out.
@ilyessaskri5701
@ilyessaskri5701 Жыл бұрын
i have the same issue as you ,did you find a solution ?
@tonegrail650
@tonegrail650 Жыл бұрын
@@ilyessaskri5701 Yes. He omitted the step where you have to run a Maven build for each application. I'm assuming that Intellij auto-generates the jar files but I'm not sure since I use eclipse. Eclipse definitely does not auto-generate them. Do the following steps for each app (module) in eclipse: 1. Right click on the application (module). 2. Select Run as -> Maven Build. On the dialog box within the "Goals" field enther "clean install -X" 3. Check the "Update Snapshots" and "Skip Tests" boxes. 4. Click Run to generate the jar files. 5. At the console within the current app folder (example -"../microservices-new/api-gateway>") execute "docker build -t apigateway-layered -f Dockerfile.layered ." Copy the "Dockerfile.layered" file to each of the root folders of each app (module) and repeat the above steps.
@vishalghanghav748
@vishalghanghav748 Жыл бұрын
@@tonegrail650 Thanks Man
@BeneTanStarcraft
@BeneTanStarcraft Жыл бұрын
@@tonegrail650 Thank you! At least for me, it also did not build the jar in Intellij. In case anyone else finds this. In Intellij: "Run Anything" -> "mvn clean install -X" does the trick.
@SampathkumarP
@SampathkumarP Жыл бұрын
Fantastic video Sai. This helped me to learn various topics in the Spring world. 😎
@yahyawins0550
@yahyawins0550 5 ай бұрын
settings.xml ????
@manjosh1990
@manjosh1990 Жыл бұрын
Thank you. Can you also make a video on running the services on HTTPS.
@javasystems5850
@javasystems5850 2 жыл бұрын
Yes needed 36:42
@buildleadinnovate24
@buildleadinnovate24 Жыл бұрын
where we have to write setting.xml file???
@tonegrail650
@tonegrail650 Жыл бұрын
It should be in c:\Users\\.m2\settings.xml
@RakeshKumar-en1uq
@RakeshKumar-en1uq Жыл бұрын
I need a video docker tutorial for Java project
@yananchen7648
@yananchen7648 Жыл бұрын
Best backend tutorial till now! Many thanks for the detailed explanation. Also, I would highly appreciate a "Docker for Java" series!
@rashadchalabi
@rashadchalabi Жыл бұрын
Good work!
@asishkumarsatapathy3466
@asishkumarsatapathy3466 2 жыл бұрын
Perfect 🙂
@sebagq23
@sebagq23 Жыл бұрын
This is great man, thanks you so much!
@tararamgoyal2220
@tararamgoyal2220 Жыл бұрын
could you please make a video for docker
@patel5532
@patel5532 2 жыл бұрын
Sir, Are you going to also cover the fronted part as well? I mean how to connect our micro-services to the front end? Because no one on the KZbin covers it. My humble request is to create front end connection part as well. So, After this course as a student we can build our own full stake projects. And Thanks for teaching such a world class education for free.
@Mateusz-dl1mr
@Mateusz-dl1mr Жыл бұрын
As u can see all microservices are exposin one url from api gateway which is lohalhost:8080. All u have to do is fetch data threw this address and u can build frontent.
@kennedydre8074
@kennedydre8074 Жыл бұрын
Hi, where can I find the settings.xml file?
@ProgrammingTechie
@ProgrammingTechie Жыл бұрын
User folder/.m2
@ismailforeveryone6889
@ismailforeveryone6889 Жыл бұрын
my god , what's a great man
@JohnDoe-ej6vm
@JohnDoe-ej6vm Жыл бұрын
Could you please create a tutorial on how you set up a parent project and added other Spring Boot modules to it? I have been struggling to create a similar project structure and have been experiencing difficulties with version control when adding modules.
@ProgrammingTechie
@ProgrammingTechie Жыл бұрын
Check out my Maven Tutorial in the section multi module project.
@ramosespann6496
@ramosespann6496 Жыл бұрын
@@ProgrammingTechie Why do you put postgres if the database you are using is Mysql that part I did not understand???? in the docker-compose.yml please
@hoangang6586
@hoangang6586 2 жыл бұрын
thank you so much for this course💘
@Rajkumar-oo6bv
@Rajkumar-oo6bv Жыл бұрын
Best video ever
@senoremc4628
@senoremc4628 Жыл бұрын
You are the best! I have a question, when the docker profile is active, application-docker.properties is read and application.properties is not? If so, shouldn't we copy all the information from application.properties to application-docker properties?how does it work? Thanks!
@ProgrammingTechie
@ProgrammingTechie Жыл бұрын
Hi, when the docker profile is active, the properties configured inside the application-docker.properties are read, there is no need to copy the information one more time inside the docker properties file.
@shamilkagurusinghe2019
@shamilkagurusinghe2019 Жыл бұрын
@@ProgrammingTechie java.lang.RuntimeException: Driver com.mysql.cj.jdbc.Driver claims to not accept jdbcUrl, jdbc:postgresql://postgres-order:5431/order-service- this error occurs when I See the Order service log(docker logs -f order-service)
@redaelmallahi1584
@redaelmallahi1584 Жыл бұрын
@@shamilkagurusinghe2019 i have the same problem
@andreyfetisov7096
@andreyfetisov7096 Жыл бұрын
edit the pom for postgresql @@shamilkagurusinghe2019
@baranemreturkmen9497
@baranemreturkmen9497 6 ай бұрын
Is there any solution about it same error I've got too :( @@shamilkagurusinghe2019
@0xb0110
@0xb0110 11 ай бұрын
33:05
@ilyessaskri5701
@ilyessaskri5701 Жыл бұрын
where is setting.xml file???
@tonegrail650
@tonegrail650 Жыл бұрын
It should be in c:\Users\\.m2\settings.xml
@laluprasad3775
@laluprasad3775 2 жыл бұрын
Sir how to contact you
@ProgrammingTechie
@ProgrammingTechie 2 жыл бұрын
you can drop an email at programmingtechie@gmail.com
Automation Session Task-1
2:26:48
Software Testing with Eid
Рет қаралды 1,2 М.
Nastya and balloon challenge
00:23
Nastya
Рет қаралды 70 МЛН
Players vs Corner Flags 🤯
00:28
LE FOOT EN VIDÉO
Рет қаралды 78 МЛН
SpringBoot to Kubernetes in 15 minutes
19:50
EkitLab
Рет қаралды 22 М.
Spring Boot Microservices Project Example - Part 1 | Building Services
1:35:06
Programming Techie
Рет қаралды 480 М.
Spring Boot APIs Gateway in 20 Minutes
22:50
The IT Wizard
Рет қаралды 11 М.
The intro to Docker I wish I had when I started
18:27
typecraft
Рет қаралды 125 М.