PHPackages                             yunior22/laravel-docker - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [DevOps &amp; Deployment](/categories/devops)
4. /
5. yunior22/laravel-docker

ActiveLibrary[DevOps &amp; Deployment](/categories/devops)

yunior22/laravel-docker
=======================

Docker files for running a basic Laravel application for development only. Do not use for deployment with out making deployment settings.

1.0.2(4y ago)121MITPHP

Since Mar 25Pushed 4y ago1 watchersCompare

[ Source](https://github.com/yunior22/laravel-docker)[ Packagist](https://packagist.org/packages/yunior22/laravel-docker)[ RSS](/packages/yunior22-laravel-docker/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (4)Used By (0)

Laravel-Docker
==============

[](#laravel-docker)

A simple Docker-Compose workflow that sets up a LEMP network and services for local Laravel development. This repo is inspire by Andrew Schmelyum's [docker-compose-laravel repo](https://github.com/aschmelyun/docker-compose-laravel).

How to install?
---------------

[](#how-to-install)

If you are interested in using Docker with an existing Laravel application, you may simply install my docker-compose file settings using the Composer package manager.

```
composer require yunior22/laravel-docker --dev
```

After package has been installed, you may run the docker:install Artisan command. This command will publish my docker-compose.yml file to the root of your application:

```
php artisan docker
```

Common Commands
---------------

[](#common-commands)

Here is a list of docker commands.

```
# Build and run docker.
docker-compose up nginx --build

# stop docker
docker-compose down

# Run docker detached
docker-compose up -d nginx --build

# Run standard laravel artisan commands
docker-compose run --rm artisan ...

# Run standard composer commands
docker-compose run --rm composer ...

# Run standard node(npm) commands
docker-compose run --rm npm ...

# or yarn
docker-compose run --rm yarn ...
```

I like to create some aliases to shorten the commands abit, add the following to your `.zshrc` or `.bashrc` file:

```
# Docker-Compose aliases
alias dc="docker-compose "
alias dcr="docker-compose run --rm "
alias dce="docker-compose exect "
alias dcb="docker-compose build"
alias dcu="docker-compose up -d --build"
alias dcd="docker-compose down"
alias dcps="docker-compose ps"
```

What's included?
----------------

[](#whats-included)

This is a simple laravel develoment enviroment. It includes:

- PHP 8.1
- MySQL 8.0
- Nginx
- Redis (latest)

Services:

- NodeJS (latest)
- Composer
- Artisan

Requirement and suported systems
--------------------------------

[](#requirement-and-suported-systems)

This package assumes that php and composer are install locally on your system.

Docker is also require, and currently only works on Windows, Mac and Linux.

> Windows requires running Hyper-V. Using Git Bash (MINGW64) and WSL are supported. Native Windows is still under development.

MacLinuxWindowsInstall Docker on [Mac](https://docs.docker.com/docker-for-mac/install/)Install Docker on [Debian](https://docs.docker.com/engine/installation/linux/docker-ce/debian/)Install Docker on [Windows](https://docs.docker.com/docker-for-windows/install/)Install Docker on [Ubuntu](https://docs.docker.com/engine/installation/linux/docker-ce/ubuntu/)Install Docker on [CentOS](https://docs.docker.com/engine/installation/linux/docker-ce/centos/)

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

3

Last Release

1509d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1a10e272a0b510b27c7d6841879228c9dc642301ec1477675a461af1f29d1b73?d=identicon)[yunior22](/maintainers/yunior22)

---

Top Contributors

[![yunior22](https://avatars.githubusercontent.com/u/15946980?v=4)](https://github.com/yunior22 "yunior22 (15 commits)")

---

Tags

dockerdocker-composelaravellaraveldocker

### Embed Badge

![Health badge](/badges/yunior22-laravel-docker/health.svg)

```
[![Health](https://phpackages.com/badges/yunior22-laravel-docker/health.svg)](https://phpackages.com/packages/yunior22-laravel-docker)
```

###  Alternatives

[neo/little-sail

Smaller Alpine based image for Laravel Sail runtimes

389.0k](/packages/neo-little-sail)[downtoworld/laravel-devops

Laravel Cloudflare-Tunnels Ready Production Docker-Compose

161.1k](/packages/downtoworld-laravel-devops)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
