baijunyao/laravel-docker-compose

Docker compose for laravel

v0.2.2 2024-06-12 03:44 UTC

This package is auto-updated.

Last update: 2024-12-12 04:48:44 UTC


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