From the course: Building Role-Based Access using AI for Java Developers
Unlock this course with a free trial
Join today to access over 24,800 courses taught by industry experts.
Docker and MongoDB configuration
From the course: Building Role-Based Access using AI for Java Developers
Docker and MongoDB configuration
- [Instructor] Alright, so now that we have Spring Boot set up in our project that we can see in our pom.xml file, we are now ready for the next step, which is setting up the database. In this project we are going to leverage MongoDB and we need a way for us to connect to a Mongo database. For that, we are going to set up a Docker container. Now keep in mind that your current code space is already running inside a Docker container on a remote GitHub infrastructure. So how can you run a Docker inside a Docker? Now this is where code space depends upon dev containers and dev containers has a feature called Docker and Docker. And in order to show that, I'm going to do command + shift + A or command + shift + O. And in order to install Docker Insights Docker as a feature, I'm going to click on this link and say, show and run commands. A new window pops up and I'm going to type code spaces. And you will see a list item that says add dev container configuration files. I'm going to click…