Narrator: In the last section,
we added in Nginx service to our Docker composed file
and we're now ready to actually test this out
at our terminal and inside the browser.
Now before we test it out,
I just want you to know that it is extremely likely
that the first time we start this thing up,
it will crash.
It's very likely that one of these services
is gonna fail to start up appropriately.
The reason for that is that the first time
that we start up Docker Compose,
we have to build and download
many of these different images.
And some of the code around the API
and some of the code around the worker
kind of want to make sure that a copy of Redis
is already running before they start up.
And so it's entirely possible that since it might take
longer this first time to start up Redis,
either the worker or the API
might fail to start up appropriately.
I really do also expect Nginx to crash
the first time we run it.
But since we put on the restart policy right here,
it should automatically reboot itself and keep going.
So with all that in mind,
we're probably gonna start up Docker Compose one time
and then maybe just kill it right away
and then start it up a second time, okay?
All right so let's get to it.
I'll flip over to my terminal.
Now I've got a previous copy of Docker Compose running.
I'm gonna kill it by hitting Control C
and then I will start up all of the services
listed inside of my Docker Compose file
with Docker Compose up and I'm gonna force
a rebuild of everything by adding on the --build flag.
One last thing really quickly,
make sure you're in the complex directory.
Just wanna make sure we're in the right spot.
All right, so we're gonna see a little bit
of build process going on right here.
This is gonna take just a moment or two.
So I will pause the video right here
and we'll continue in the next section.
Just as a quick reminder, if anything crashes,
totally fine, we'll fix it all up in the next section.
So I'll see you in just a minute.