See the full doc from my blog
- Build the docker image through the following command
docker build . -t my-app
- Run docker compose to start up all containers
docker-compose -f docker-compose.yaml up -d
- Create database, collection and user through mongo-express
- go the localhost:8080
- create a new database "user-account"
- create a new collection "users"
- create one object
{
userid: 1,
name: "colerfullife"
email: "colorfullife.example.com"
interests: "coding"
}
-
Access localhost:3000 to enjoy the application
-
Close al containers through the following command
docker-compose -f docker-compose.yaml down