

NOTE: I have added comments in the Dockerfile and docker-compose.yml to make sure you understand each and every lineĭockerfile FROM node:18.12-slim WORKDIR /usr/app COPY. The following is the project structure of my ExpressJs application.ĭocker-compose.yml is used run multiple services and manage them with ease.ĭockerfile is used to create our custom docker image. Later we will see how we can access MongoDB from MongoDB Compass.

In this article, let me walk you through how we can set up Docker to run NodeJs, and MongoDB like a breeze.

In my latest project, I got a chance to work extensively on Docker. You might have configured your operating system-specific settings the same has to be shared with your colleagues, this will be an overhead in itself to manage all these settings and dependencies of your project.
#MONGODB COMPASS UBUNTU SOFTWARE#
