Search by

baijunyao / laravel-docker-compose

baijunyao

Docker compose for laravel

Package info

github.com/baijunyao/laravel-docker-compose

pkg:composer/baijunyao/laravel-docker-compose

Statistics

Installs: 86

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v0.5.0 2026-10-10 20:22 UTC

This package is auto-updated.

Last update: 2026-10-10 20:22:58 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, docker-compose.yml and nginx config files

php artisan laravel-docker-compose:publish

This will generate:

  • config/laravel-docker-compose.php — nginx / php image versions
  • deploy/docker/nginx/default.conf — nginx virtual host (server name comes from APP_URL)
  • docker-compose.yml — nginx + php services, connected to the external traefik network

Container names are prefixed with the project directory name (e.g. msh-nginx, msh-php). MySQL and Redis are expected to run on the host machine and are accessed via docker.for.mac.host.internal.