I don't think you would screw up your app if you were going to use Dockerfile, however I'd recommend using Docker compose - which Laravel Sail provides.
But you should be able to run the queue worker directly from the docker compose file.
So I'm using Docker Desktop to run Laravel.
I want to use queues both for Scout with Mailisearch and for other tasks, so I'd like to also install Supervisor in Docker and not just use php artisan queue:work, because I'd like to better understand how it would work in production, and also maybe to have all ready for deploy (but I don't know, I never deployed a Laravel app, it's my first one).
I'm not sure on how to do it. Should I use a Dockerfile (and by the way, why Laravel does not have one?)? Am I going to screw up all my app (which it's already about half developed) if I use a Dockerfile?
I've already found this guide but not sure if it's the best approach with Laravel/Sail:
https://ismatbabir.medium.com/use-supervisor-in-docker-container-9f61819bac4c
I'll answer by myself here: I've found out that in fact, if you want to customize the Sail installation, you can publish its config files:
sail artisan sail:publish
This command will create a docker dir in the project root and update accordingly the context in docker-compose.yaml. Then you can simply modify the config files, including Dockerfile, supervisord.conf and php.ini. Then just run sail build --no-cache.
Please or to participate in this conversation.