Andrew Schmelyun created the package “Laravel Fleet” to operate numerous Laravel Sail websites locally under unique domain names:
Laravel Sail sets up containers that give your application a local development environment using Docker and Docker Compose.
The containers are by default tied to the local machine’s port: 80. Due to port conflicts, spinning up a second application fails, but you can always change it so that the second app is accessible at something like:8081.
Instead, Fleet offers a modest collection of instructions that you can use to add support for Traefik, a reverse proxy that runs within a Docker container, to your docker-compose.yml file.
For applications to add Fleet support, this package offers artisan commands. After installing the Fleet package, you may use the fleet to add your application: Adding a command
- php artisan fleet:add
- php artisan fleet:add my-app.localhost
- ./vendor/bin/sail up
Also Read :Frontier Airlines has just announced a $399 summer pass that allows unlimited flights Where’s the Catch
Additionally, your application must be accessible via the supplied domain. You can end all fleet-powered programmes by using the fleet:stop Artisan command. For thorough setup instructions and documentation, see aschmelyun/fleet.
If you’re interested in learning more about how Andrew uses Traefik to manage numerous sites with Docker Compose, check out his YouTube video.