After much research and struggle this is a configuration of the docker-compose that I got to be able to run my projects in Laravel.
In the docker-compose.yaml file you configure the docker services/containers.
In the ./docker folder you configure the dependencies (nginx, php) of the docker services/containers.
Run docker-compose up -d
to raise the containers.
To check the containers by running docker ps
.
To access the project http://localhost.
To kill docker-compose kill
containers.
To remove the docker-compose rm
containers.