Now there are two containers up and running, and we see here that Docker compose boards is also running.
And let's first interrupt this protest by press and key combination control.
See like that you'll see that two containers are no stopping this one and this one containers where
I stopped.
And if I enter Docker pipes now, I'll see empty output because Docker compose has stopped both containers.
No less try to run both containers using same comment as before Docker compose up.
But now let's run them in background.
And first, let's have a look at all options that you have in Docker compose up command for that plus
type Docker compose up this desk help.
Here you'll find a list of options.
In this options list you could find auctioned this desk build that allows you to rebuild all image as
defined in the Docker compose file.
And also at the beginning of this options list, you should find option that is called this deal or
does this detach?
And this will run all containers defined in the Docker compose file in detached mode.
And this water will dry right now.
Well, it's clear terminal and type Docker desk compose up desk deep distance for detached mode.
Let's go ahead.
Start in both containers.
You can just gallery API one and images gallery front and one.
Done and done here.
No, I returned to the command prompt and I could continue doing all those operations.
Let's have a look at county run containers door Gropius and I see both containers that are up and running.
Same as before API and front and containers wait lists.
No verify whether our application works as before.
Refresh page here.
Search for something.
And they got results.
Same as before.
Wait, no, let me show you how you're able to stop those containers by using Docker compose down command.
Let's clear terminal and type Docker desk compose down.
And it's important to mention that you need to run those commands like Docker compose down or Docker
compose up in a specific folder where there was correspondent Docker compose YAML file.
OK, let's bring down both containers.
Both containers are being stopped at the moment.
Stopped.
Also, those containers were removed and also network that was created specifically for communication
between those containers was removed as well.
Network name is image gallery default.
Let's start those containers back again.
Docker compose up this detection mode.
And network.
Greed in containers.
Notice that we don't build new images because images are already built.
Done here and done here and containers.
Oh no.
Again, up and running.
Great.
No, let's go meet the changes made in Docker compose file.
It is actually its initial version.
Let's go to source control and here will be initial version of the Docker compose like that.
Well, that's coming.
It changes.
Changes committed.
And now let's proceed.
And next, I'll explain to you how to map volumes to the containers and you'll understand why we actually
need to do that.
I'll see you guys just in a bit.