Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

atthakasem's avatar

Deploying local Laravel 8 project installed via Docker

Hi, since Laravel 8 the recommended way to create a new Laravel project is to use Docker according to the official doc: https://laravel.com/docs/8.x/installation

I'm not very familiar with Docker and was wondering if this new method was solely introduced to ease setting up the local environment or if in addition it helps with deploying the project as a containerized app (as opposed to copy-pasting to the server).

With my current understanding, looking inside docker-compose.yml in the root directory, I would try to modify the service "laravel.test" to somehow act as a web server, but how? Am I barking up the wrong tree here? Or do I have to set up my own docker-compose.yml with nginx, php, composer, npm to replace "laravel.test"?

Thanks in advance!

0 likes
1 reply

Please or to participate in this conversation.