I'm curious about this subject, so I'm addinging comment to follow for updates.
Laravel Octane and Docker
Hi there
I see a lot of online guides and even the official Laravel documentation saying that Laravel Octane should run with supervisor even inside a Docker container.
Is there any reason not to simply run php artisan octane:start as an entry point and use docker-compose to restart on failure?
Is there anything I am missing here because this way seems to tap into what is already possible with Docker and avoid introducing another component in my setup.
Thanks!
@datapult I think you can just do that. Sail is a bit strange as it does not use a real webserver. It uses php artisan serve. So to make it simple to configure he just set up a supervisor file to keep serve alive. Maybe there was a problem using php artisan serve as an entry point. But either way I think it's mostly based on the original implementation of that, and not octane. Hope that makes sense
Sail was made to get people who does not know docker up and running very fast, and with as simple config as possible
Please or to participate in this conversation.