Introduction This tutorial describes how to run Spring Boot application and Mongo DB in Docker containers.
For demo purpuses we’ll use the following project: spring-mongo-demo. All sources can be found on Github.
Our goal is to run our Spring Boot application and MongoDB in its own containers.
Some words about Demo project Demo project (spring-boot-demo) is very simple and does the following: it saves the users into Mongo DB. A new added user is displayed in the Users table on the bottom of the page: Requirements We need: