Now there are four containers up and running, and they are API front and Maunga and Mongo Express.
And there are corresponding images that were utilized for all those containers.
Here are four those containers we used of you sold Docker images from Docker hub.
And for the front end and API, we used custom built images.
And for that, we created Docker files with corespondent instructions.
No was go ahead and connect just to Mongo Seelye in order to see how Mongo looks from inside.
For that, we could open a nas a connection to the running Monga container and for that we could utilize
this container name.
Let's open up New tab until let's use Docker Exec Command with options.
Best idea here will be the name of the container.
And next, let's add name of the products we want to start, and you could run either source so hero
or BSL as we did before.
But basically, we need to run Mongo Shell and using Mongo Shell, we could connect to Mongo server
and perform their different operations, for example, in some documents and so on.
This way, instead of shell, let's use your more executable.
And also, we need to specify username and password for Mongo server and those username and password
where asset here are on those lines using those two environment variables.
This way, let's apply this username and password in Mongo command.
Let's go here.
Afterwards will be option.
There's this username.
Next time around, next will be option business password and here, insert this pass.
Let me copy it in order to avoid any typing errors and insult you like that?
And let's press enter.
And low, I'm inside, I was a Mongo cell monger, so abortion is fraud.
4.5 It may just Wizemann got Sarah Paulson because Mongoose Cell and Mongoose cell are actually running
inside of the same container.
This one and no inside it was a modern gazelle.
You could perform different MongoDB operations, for example.
You could list currently created databases using command.
So Déby's and there are three default databases admin, config and local.
You could also switch to a particular database and analyze collections down.
For example, let's use command use admin.
Now we will switch to database admin, and he'll list list collections using command.
So collections and there are two collections system that users and system that were awesome, great.
We could actually go ahead and create new test database here instead of them on Gazelle.
Create new collections there and insert some simple documents down.
But it's not really convenient to continue working inside of the Seelye this way.
Let's now switch to the Mongo Express graphical user interface, and Mongo Express is another container
that is running right here.
Let's open connection to local host IP address to this broad 88 one that is that broad that is exposed
by this one to express container.
Here you see this information.
Let's go to a browser and open up new tab and connect the local host.
88 to one like that, and I'm inside of the Mongol Express container.
And here I also see three default databases admin config and local.
I could click on view and go inside of the admin database.
There are two collections system that users and system that were awesome.
I could click on system but users and see all the records inside of this collection.
For example, there was such a record as you see here on those grid is admin, the root user ID is here
and so on and so forth.
Great.
Also below you see several staples, for example, icy MongoDB, but in your case, you might see a
more recent version if you use lay the stick for Docker container image.
Also, see several time available connections, current connections and so on.
Listen, I'll play a bit with Mongo Express using this graphical user interface, and let's create a
new database and let's create a new collection inside of the database.
And afterwards, let's insert new record inside of that collection.
You could create new database here, and let's name it and be like that.
Let's create this database.
It was created.
Let's click on it.
And here let's create a new collection named, for instance, persons like that.
Let's create a new collection.
It was created, and now I'm inside of this collection.
Let's not insert new document to it.
New document and here after this line at Comma and let's add here name and value, for example, bogged
down.
You could add your name, of course, and let's click Save.
New record was added, and nor does that underscore it was generated automatically by Mongo.
And now this record looks like this.
There are two guys on the score idea and name will of the others.
Sacred is object idea with this generated value and name is bogged down.
And if you want, you could even edit such document here at some Isaac use, for example, at gear use
recording, of course, and well, you will be true like that.
You could add the record is loosening the girls and let's say what changes changes well saved and document
was updated.
You could click on it, and here is the updated document.
You could perform same operations in the SEAL II, of course.
Let's go back to Seelye here, and let's go back to the step where I'm running one gazelle.
And no, let's show Déby's and low IQ database on this list.
Let's switch to this database using command use DMP.
Like that?
Switch to delete DMP.
And no, let's find some records in the Paracels collection for that use syntax Debbie Dot Paracels
Dot Find, and he'll simply add pair of parentheses like that.
And with such command, you will find all existing documents inside of the person's collection.
Let's find them, and they found a single record.
This one does that record that they just inserted using graphical user interface?
All right, let's exit from one go.
So here we don't need anymore because we are now able to perform all crud operations using graphical
user interface here.
Great.
Let's go to the homepage of Mongo Express and here I still see DMP database on this list.
No, after the small pause, let's try to the following list try to bring down all the containers and
afterwards bring all of them up again and check whether this DMP database will be present or not.
Let's get to it after the small pause.