To create a level application,
we can have a look at the official level docs.
And they are under getting started.
We see these requirements,
but if we scroll down to installing level,
we see this command, which you can execute
to install level or this command.
And we will use this command here,
since it uses just composer to then set up a level project.
We'll tweak it a little bit regarding the folder
in which we set up this project,
but generally this the command.
So, we can already copy this command here
and then go back and open our terminal.
And now I wanna run just this composer container.
And that is something I showed you in the last section.
You can run individual containers
in your docker compose YAML file
with the docker dash compose run command.
You don't need to start the entire container set up here,
you can just run single containers.
And that is what you typically do,
with these utility containers.
So here I wanna run this composer container.
So I wanna docker compose run composer,
and I will add --rm to make sure
that everything related to the container
is removed when it's shut down,
so that we don't have a lot of debt containers.
After running this a couple of times.
Then, we can paste in that command we copied
from the level site, though of course
we don't need composer twice here
since our entry point in this composer docker file
is already this composer executable.
So we will call create project on that executable.
And then, I got one last edition at the end here
we need to specify the folder in which
this should be created, and this should be just dot.
Keep in mind that because of our docker file,
this all runs in this folder inside of the container,
and that is then the root folder in which
this level project should be created.
And thanks to our bind Mount here,
this will then be reflected in this source folder.
So let's give this a try, and let's hit enter.
And this is looking quite decent, it's doing something here.
It's building the image to be precise.
So that's working,
let's see what it does once it's done.
And that also looks promising.
It's creating a level project at our root folder,
which ends up the container is this var/www/html folder.
So let's wait for this to finish.
And this can take a couple of minutes.
So I'll be back once this is done,
and this is looking good,
it's finishing up here and it took quite a while.
That's normal.
So let's see if it finishes successfully.
And here we are.
So, that looks good.
And if we now have a look into the source folder,
inside of it, we see our level application.
And, in case you know level,
this is now where you could start writing level code.
Now, we're not going to do this together here.
This is no level course.
So, we're not going to worry about that.
I just want to show you how you can set it up.
Now nonetheless, we're not done at this point.
Now of course, we also want to see
whether we can run this application
with our free application servers.