- Make sure that you have Docker and Docker Compose installed
- Windows or macOS: Install Docker Desktop
- Linux: Install Docker and then Docker Compose
- Download some or all of the samples from this repository.
docker-compose upTo stop and remove all containers of the sample application run:
docker-compose downTo stop and remove all containers with Volume of the sample application run:
docker-compose down -v
- username - root
- password - example
- port - 27017
Excess the web based mongodb Client on port 8081 to create,view, update and delete the database
- Run the following command to open the mssql client terminal and enter the password (Passw0rd.) when prompted.
docker exec -it mongo_db mongosh --username root --password example- To See list of database:
show dbs;- Create database command
use lks;- Change database context command
use lks;- Create database command
drop database lks;