This is a sample project showcasing a fullstack application built with Next.js, utilizing MongoDB as the NoSQL database and Docker for seamless deployment and runtime environment management.
- Fullstack development with Next.js.
- Integration of MongoDB as the NoSQL database.
- Utilization of Mongo Express for MongoDB database management.
- Persistence of database records using Docker volumes.
- Simplified image building and container execution with Docker.
- Running services in a Docker network using Docker Compose.
First see this docker cheat sheet
Then install Docker on your machine.
$ yarn
$ docker build -t nextjs-docker:1.0 .
$ docker-compose -f docker-compose.yaml up
⚡: for runnig services in detached mode run this command:
$ docker-compose -f docker-compose.yaml start
Client ===> http://localhost:3000/
Mongo Express ===> http://localhost:8080/