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

Sdílet
Vložit
  • čas přidán 17. 09. 2022
  • 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/SaiUpadhyayula/spr...
    ⭐️⭐️ You can follow me on Social Media through the below Links⭐️⭐️
    Twitter: / sai90_u
    Blog: programmingtechie.com/
    Dev.to: dev.to/saiupadhyayula
    Facebook Page: / programmingtechie

Komentáře • 136

  • @manee427
    @manee427 Před rokem +42

    Without a doubt the best microservices course in whole internet. Every minute I learned a lot . Keep going .very deep and nice content👌

  • @doen
    @doen Před rokem +14

    "Docker for java" would be awesome addition Mr ...
    Thank you so much 🙏🏻

  • @vinodlakshan3018
    @vinodlakshan3018 Před rokem +10

    Thank you! this tutorial series is great! I would highly appreciate a "Docker for Java" series!

  • @trustmandi
    @trustmandi Před rokem +8

    Great work.
    Much appreciated😊
    A docker tutorial for java developers will be great.

  • @brianlitalk
    @brianlitalk Před 2 měsíci +1

    the Best of best. Clear, practical, and concise.

  • @kalyanboro6338
    @kalyanboro6338 Před rokem +1

    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!!!

  • @madhurikumawat3560
    @madhurikumawat3560 Před rokem +2

    Best Tutorial on microservices I have ever seen. You must create Docker series. Will help a lot. Thank you

  • @JohnDoe-ej6vm
    @JohnDoe-ej6vm Před rokem +2

    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

  • @berndeveloper
    @berndeveloper Před 11 měsíci +1

    Best backend tutorial out there!, congrats good man!, you really cleared my mind

  • @aamirshayanshaikh2728
    @aamirshayanshaikh2728 Před rokem +1

    Thanks for a quick upload. Your tutorials really teach a lot

  • @oyekunlejohnson
    @oyekunlejohnson Před rokem +2

    Great work, please a detail series on docker for Java will be of great help. Thanks so much for your time and effort

  • @geliyang6495
    @geliyang6495 Před rokem +1

    Amazing tutorial. I really appreciate your efforts. Thank you so much

  • @prashantbalotra
    @prashantbalotra Před rokem +1

    Great tutorial, Thanks for making this video!

  • @NeerajSharma-mz4es
    @NeerajSharma-mz4es Před 4 měsíci

    Docker in java that is all we need, your content is gem. Thanks for creating such an awesome content. 🙂🙂

  • @PappuKumar-ho3ek
    @PappuKumar-ho3ek Před rokem +1

    Thanks for uploading this video....nice explanation 👍

  • @SampathkumarP
    @SampathkumarP Před 11 měsíci

    Fantastic video Sai. This helped me to learn various topics in the Spring world.
    😎

  • @nguyenquan4836
    @nguyenquan4836 Před rokem +1

    Many thanks, this is much value video.

  • @sandeepkumararya9949
    @sandeepkumararya9949 Před 6 měsíci

    This one is the best tutorial of microservices on CZcams. There is one thing that is now available the SAGA pattern implementation, can you please create a SAGA pattern implementation using Kafka.

  • @rashadchalabi
    @rashadchalabi Před rokem +1

    Good work!

  • @selandeemantha4933
    @selandeemantha4933 Před 11 měsíci +1

    Great!!! much appreciate🤩

  • @hoangang6586
    @hoangang6586 Před rokem

    thank you so much for this course💘

  • @ravi1341975
    @ravi1341975 Před rokem +2

    Thank you very much for this wonderful tutorial, please go ahead with the docker tutorial too.

    • @doen
      @doen Před rokem

      agree sir..

  • @sebagq23
    @sebagq23 Před rokem

    This is great man, thanks you so much!

  • @whoamixrun3851
    @whoamixrun3851 Před 6 měsíci

    Of course we whant. I am waiting to see your docker tutorial :)

  • @user-tj9fi9kk2p
    @user-tj9fi9kk2p Před 8 měsíci

    A Big thank you for making this tutorial. Learned a lot.
    Need a tutorial on how to deploy these microservices in AWS.

  • @ivansimeonov8342
    @ivansimeonov8342 Před 11 měsíci

    Really good one. Thank you. Would be nice if you make "Docker and Kubernetes tutorial" juxtaposing those and explaining the differences, pros and cons.

  • @user-ct7yh3cr9f
    @user-ct7yh3cr9f Před 6 měsíci +1

    Thank you bro ! Get a happy life !!!

  • @asishkumarsatapathy3466
    @asishkumarsatapathy3466 Před rokem +1

    Perfect 🙂

  • @PuneethSharma-rh3xs
    @PuneethSharma-rh3xs Před 3 měsíci

    Docker tutorial from you, would be great. Love your work

  • @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.

  • @user-gp5xz
    @user-gp5xz Před rokem +1

    Thanks!

  • @_ravi_kumar_gupta
    @_ravi_kumar_gupta Před rokem +1

    Great tutorial 🙏. docker tutorial please.

  • @Rajkumar-oo6bv
    @Rajkumar-oo6bv Před rokem

    Best video ever

  • @javasystems5850
    @javasystems5850 Před rokem +1

    Yes need every thing about Docker from 0:40

  • @yananchen7648
    @yananchen7648 Před 11 měsíci +2

    Best backend tutorial till now! Many thanks for the detailed explanation. Also, I would highly appreciate a "Docker for Java" series!

  • @liwen7252
    @liwen7252 Před 26 dny

    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...

  • @ismailforeveryone6889

    my god , what's a great man

  • @zazazaza3635
    @zazazaza3635 Před rokem +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  Před rokem +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.

  • @iamdavidtega
    @iamdavidtega Před rokem +2

    please i would love a docker tutorial for spring boot, thanks

  • @midlajj
    @midlajj Před 10 měsíci

    SIr u can also use alpine jdk, jre for reducing even more sizes

  • @rockdynamics7766
    @rockdynamics7766 Před rokem

    Hello , This tutorial is so great .Pls accept my thanks. Where is the tutorials on Kubernetes deployment?

  • @user-cf7bi1tx1h
    @user-cf7bi1tx1h Před 2 měsíci

    17:59 will use docker compose to run the images pushed to docker hub.

  • @theNikki1
    @theNikki1 Před rokem

    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 ?

  • @jonsmith7718
    @jonsmith7718 Před 5 měsíci +1

    nice video. where is next video refactored for k8S you mentioned?

  • @alexnoutash4380
    @alexnoutash4380 Před rokem

    Would be great to have a 'Docker for Java' course

  • @MS-rw7uv
    @MS-rw7uv Před 10 měsíci +1

    First of all, thank you for thi sincredible content. Where did this postgres come from?

  • @ahmedhayel1979
    @ahmedhayel1979 Před rokem

    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?

  • @manjosh1990
    @manjosh1990 Před rokem

    Thank you. Can you also make a video on running the services on HTTPS.

  • @JohnDoe-ej6vm
    @JohnDoe-ej6vm Před rokem +1

    0:40 yes sir please docker for java developer and latest ways for spring boot.

  • @shashank1210
    @shashank1210 Před rokem +1

    Please make a series of docker

  • @vishalghanghav748
    @vishalghanghav748 Před rokem +2

    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  Před rokem +2

      I will plan a blog post with the UI and Kubernetes Deployment

  • @sharathkumarpothula3358
    @sharathkumarpothula3358 Před 5 měsíci

    Good video can you do another video how to deploy microservices application into AWS EKS

  • @bennyInnovator
    @bennyInnovator Před rokem +2

    i have a issue! why are we using Postgres configurations instead of using mysql configuration on docker compose?

  • @SolidWaveThoughts
    @SolidWaveThoughts Před rokem

    "Docker for java" Please make this series. Thank you.

  • @maheshnadimpally
    @maheshnadimpally Před rokem +1

    Need a Docker video like complete guide.

  • @patel5532
    @patel5532 Před rokem

    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 CZcams 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 Před rokem

      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.

  • @chinnarajuluk3125
    @chinnarajuluk3125 Před rokem +1

    Plz do make video on docker

  • @maneshipocrates2264
    @maneshipocrates2264 Před rokem +2

    Thanks. I hope you have time to make a docker video.

    • @maneshipocrates2264
      @maneshipocrates2264 Před rokem

      Where do we save the settings.xml file containing someone's user name and pwd? It seems you just mentioned it on the fly?

  • @hunghoangngoc7336
    @hunghoangngoc7336 Před rokem +1

    Hope to create new video for guiding deploy to ḱ8s in this tutorial

  • @venkatramanab7387
    @venkatramanab7387 Před rokem +1

    please create a video on docker

  • @GiuseppeScrugli
    @GiuseppeScrugli Před 11 měsíci

    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?

  • @maxstepanenko7124
    @maxstepanenko7124 Před rokem

    Are application-docker.properties necessary? Or I just can define all the properties in docker-compose file?

  • @Tony_Limitless
    @Tony_Limitless Před rokem +2

    Do docker tutorial for Java Please

  • @user-wz1ub8gz7t
    @user-wz1ub8gz7t Před 11 měsíci +1

    Please make a video for Docker

  • @pianomusiclover4545
    @pianomusiclover4545 Před rokem +1

    sir please make video on docker please and saga pattern ,auth services and ELK in this project.

  • @JohnWeng-zb3pe
    @JohnWeng-zb3pe Před rokem

    Nice video. The docker desktop is not free now. So where and how do we install docker now?

  • @tararamgoyal2220
    @tararamgoyal2220 Před rokem

    could you please make a video for docker

  • @laluprasad3775
    @laluprasad3775 Před rokem +1

    Sir please make videos Angular

  • @javasystems5850
    @javasystems5850 Před rokem +1

    Yes needed 36:42

  • @toto_frs620
    @toto_frs620 Před rokem +2

    Could you make a playlist for keycloak? I would be interested in understanding how to manage roles and permissions

    • @ProgrammingTechie
      @ProgrammingTechie  Před rokem +4

      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 Před rokem +1

      @@ProgrammingTechie Thanks in advance, I really think this is the best programming channel. Well done!

  • @user-ft2rh3ox8j
    @user-ft2rh3ox8j Před 6 měsíci

    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 ?

  • @saidurgasrividyaupadhyayul4675

    A complete tutorial on Docker pls :)

    • @ProgrammingTechie
      @ProgrammingTechie  Před rokem

      Sure srividya 😁

    • @tonegrail650
      @tonegrail650 Před rokem +1

      @@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!

  • @nick-sx2zn
    @nick-sx2zn Před 11 měsíci

    Sir please make video on docker with spring boot

  • @RakeshKumar-en1uq
    @RakeshKumar-en1uq Před rokem

    I need a video docker tutorial for Java project

  • @aviksutar
    @aviksutar Před 8 měsíci

    yeah make a docker videos

  • @JohnDoe-ej6vm
    @JohnDoe-ej6vm Před rokem

    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  Před rokem +1

      Check out my Maven Tutorial in the section multi module project.

    • @ramosespann6496
      @ramosespann6496 Před rokem +2

      @@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

  • @senoremc4628
    @senoremc4628 Před rokem

    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  Před rokem +2

      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 Před rokem +1

      @@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 Před 11 měsíci

      @@shamilkagurusinghe2019 i have the same problem

    • @andreyfetisov7096
      @andreyfetisov7096 Před 10 měsíci

      edit the pom for postgresql @@shamilkagurusinghe2019

    • @baranemreturkmen9497
      @baranemreturkmen9497 Před 4 měsíci

      Is there any solution about it same error I've got too :( @@shamilkagurusinghe2019

  • @0xb0110
    @0xb0110 Před 9 měsíci

    33:05

  • @helsinkired8523
    @helsinkired8523 Před rokem +1

    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  Před rokem +1

      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 Před rokem

      @@ProgrammingTechie Thanks man, got it. You're the best.

  • @anhvuha7484
    @anhvuha7484 Před 6 měsíci

    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 Před 5 měsíci

      I'm getting the same error. Did you find any fix?

  • @tonegrail650
    @tonegrail650 Před rokem +1

    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 Před rokem +2

      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 Před rokem

      i have the same issue as you ,did you find a solution ?

    • @tonegrail650
      @tonegrail650 Před rokem +2

      @@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 Před rokem

      @@tonegrail650 Thanks Man

    • @BeneTanStarcraft
      @BeneTanStarcraft Před rokem

      @@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.

  • @sandhyaaa24
    @sandhyaaa24 Před rokem +1

    where we have to write setting.xml file???

    • @tonegrail650
      @tonegrail650 Před rokem +1

      It should be in c:\Users\\.m2\settings.xml

  • @yahyawins0550
    @yahyawins0550 Před 2 měsíci

    settings.xml ????

  • @kennedydre8074
    @kennedydre8074 Před rokem

    Hi, where can I find the settings.xml file?

  • @ilyessaskri5701
    @ilyessaskri5701 Před rokem

    where is setting.xml file???

    • @tonegrail650
      @tonegrail650 Před rokem +3

      It should be in c:\Users\\.m2\settings.xml

  • @laluprasad3775
    @laluprasad3775 Před rokem

    Sir how to contact you

  • @felixgato27
    @felixgato27 Před rokem +4

    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 Před rokem

      Did u find the solution for this?

    • @vishalghanghav748
      @vishalghanghav748 Před rokem

      @@gayannanayakkara8386 Hi gayan ,I recieved same error.Were you able to resolve it?

    • @gayannanayakkara8386
      @gayannanayakkara8386 Před rokem

      @@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 Před rokem

      @@gayannanayakkara8386 Ok ,I am trying .No success yet😐

  • @shamilkagurusinghe2019
    @shamilkagurusinghe2019 Před rokem +2

    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  Před rokem

      Please refer to the GitHub repo, I created branches for each part, please verify your changes with the existing code.

    • @vishalghanghav748
      @vishalghanghav748 Před rokem +1

      Did you find a solution to this?

    • @pradhidas
      @pradhidas Před 11 měsíci

      @@ProgrammingTechie I verified my changes from part 9 branch in github, but still facing the same error! :(

    • @andreyfetisov7096
      @andreyfetisov7096 Před 10 měsíci

      verify the inventory-server app.props )@@pradhidas

    • @user-ix2bd3mj5x
      @user-ix2bd3mj5x Před 9 měsíci

      @@pradhidas were you able to resolve this issue?

  • @user-ce3qc3qd8y
    @user-ce3qc3qd8y Před 4 měsíci

    nice video. where is next video refactored for k8S you mentioned?

  • @venkatramanab7387
    @venkatramanab7387 Před měsícem

    please create a video on docker