Running laravel sail on docker meant to speed up setup of local development environment.
It’s not meant to be used for deploying your application.
For details on how to deploy see https://laravel.com/docs/8.x/deployment
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
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!
Running laravel sail on docker meant to speed up setup of local development environment.
It’s not meant to be used for deploying your application.
For details on how to deploy see https://laravel.com/docs/8.x/deployment
Please or to participate in this conversation.