How to use MongoDB in a Docker container



How to use MongoDB in a Docker container

How to use MongoDB in a Docker container

0:00 introduction
0:18 Downloading the mongo docker image
1:23 Creating a container + port forwarding
3:07 The Visual Studio Code MongoDB extension
4:42 Creating a database and a collection
6:28 The problem with non-persistent containers
7:37 Using a volume to get persistency among containers
9:19 Adding data to the container and checking its persistency