baijunyao/laravel-docker-compose

Docker compose for laravel

v0.2.1 2024-05-19 09:52 UTC

This package is auto-updated.

Last update: 2024-05-19 09:53:22 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