In this article, I’m going to explain how to use docker compose on spring boot application with MongoDB.

Technology stack which going to use in this tutorial,

  • Spring Boot 2.4.1-RELEASE
  • Spring Data MongoDB
  • MongoDB – 4.4.3
  • Lombok
  • Docker – version 19.03.14
  • Docker-Compose – version 1.27.4
  • IntellijIdea for IDE

Main topics inside this tutorial,

  • Setting Up Spring Boot MongoDB Project
  • Setup Docker Image For Spring Boot Application
  • Docker Compose File With Spring Boot and MongoDB
  • Using links to Build Communication Between Services
  • Using Depends On to Build Communication Between Services
  • Running Spring Boot Application and MongoDB Database Using Docker Compose
  • Conclusion

https://javatodev.com/docker-compose-for-spring-boot-with-mongodb/

#spring #spring-boot #spring-framework

Docker Compose For Spring Boot with MongoDB - Java to Dev
6.25 GEEK