baijunyao / laravel-docker-compose
Docker compose for laravel
v0.2.2
2024-06-12 03:44 UTC
Requires
- illuminate/console: ^9.0|^10.0|^11.0
- illuminate/support: ^9.0|^10.0|^11.0
Requires (Dev)
- baijunyao/php-cs-fixer-config: ^0.1.0
README
Laravel Docker Compose provides a Docker powered local development experience for Laravel.
Installation
Require this package with composer using the following command:
composer require baijunyao/laravel-docker-compose --dev
Usage
Publish the config and docker-compose.yml files
php artisan laravel-docker-compose:publish
Set Up Docker For Mac with Native NFS
The default file system that Docker uses is quite slow in the Mac environment, for that reason, many dev’s used NFS.
Setup native NFS for Docker:
./vendor/baijunyao/laravel-docker-compose/bin/setup_native_nfs_docker_osx.sh
Use docker-compose-nfs.yml
docker compose -f docker-compose-nfs.yml up