PHPackages                             meeeet-dev/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. [Database &amp; ORM](/categories/database)
4. /
5. meeeet-dev/laravel-docker

ActiveLibrary[Database &amp; ORM](/categories/database)

meeeet-dev/laravel-docker
=========================

Compose a Laravel Docker image for Production, using PHP 7 / 8, redis, 'mysql/mariadb' and nginx

v1.2.0(1y ago)112MITDockerfilePHP ^7.4|^8.0|^8.1|^8.2|^8.3

Since May 29Pushed 1y ago1 watchersCompare

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

READMEChangelog (5)Dependencies (4)Versions (6)Used By (0)

Initialize a Docker for Laravel projects
========================================

[](#initialize-a-docker-for-laravel-projects)

#### Help you to create `docker-compose.yml` and `Dockerfile` as well as `Database Volume` and `Network`

[](#help-you-to-create-docker-composeyml-and-dockerfile-as-well-as-database-volume-and-network)

[![Latest Version on Packagist](https://camo.githubusercontent.com/35d5341ea99ff00335f4beb80095fe4d881780d9cac778e8e07e7004b1dd01b9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d65656565742d6465762f6c61726176656c2d646f636b65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/meeeet-dev/laravel-docker)[![Total Downloads](https://camo.githubusercontent.com/1b30cf5f7759c3a666aa7f586f10a4157e18fe326642740d201c4fc368c69cd7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d65656565742d6465762f6c61726176656c2d646f636b65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/meeeet-dev/laravel-docker)[![GitHub Actions](https://github.com/meeeet-dev/laravel-docker/actions/workflows/main.yml/badge.svg)](https://github.com/meeeet-dev/laravel-docker/actions/workflows/main.yml/badge.svg)

This is where your description should go. Try and limit it to a paragraph or two, and maybe throw in a mention of what PSRs you support to avoid any confusion with users and contributors.

Installation
------------

[](#installation)

You can install the package via composer:

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

Usage
-----

[](#usage)

1. Simply Run the `docker:install` command with your `image` name and your bridge `network` name

    ```
    # You can run php artisan docker:install --help to see all the options available
    php artisan docker:install yourimagename yournetworkname
    ```

    - It will ask you to choose your php version and then it will ask you to create the bridge network and create the database volume for the database.
    - Note:

        - *Do not delete the `docker-compose.yml` file and `.docker` folder.*
        - *After successfully publishing all the docker config, the command will ask you whether to uninstall itself since its work is done. If you have no further use of it, you can proceed to uninstall it.*

2. Change Database and Docker Variables in `.env` according to your need.

    ```
    # Sample Database Variables
    DB_CONNECTION=mysql
    DB_HOST=db
    DB_PORT=3306
    DB_DATABASE=laravel
    DB_USERNAME=secret
    DB_PASSWORD=secret
    ```
3. Now you can run `docker-compose build app` to build your image
4. Then `docker-compose up -d` to run your services.

    - Do not forget to run following commands on installation to get started: `docker-compose exec app composer install``docker-compose exec app php artisan migrate` to run the migrations `docker-compose exec app php artisan storage:link` to link storage `docker-compose exec app npm install` to install npm packages

    *Note: run `docker-compose down` to stop your services*
5. Done. Happy Coding!

### Testing

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Meeeet Dev](https://github.com/meeeet-dev) - Creator and Maintainer of the new package
- [Sam Maosa](https://github.com/savannabits) - Creator of the original package
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

Laravel Package Boilerplate
---------------------------

[](#laravel-package-boilerplate)

This package was generated using the [Laravel Package Boilerplate](https://laravelpackageboilerplate.com).

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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

5

Last Release

715d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/fa29d2bdcb1a0b4203cc47ddd55ff9aec404ec0a6b680961c1c02e193c26f356?d=identicon)[meeeet-dev](/maintainers/meeeet-dev)

---

Top Contributors

[![Meetbhana9567](https://avatars.githubusercontent.com/u/46040270?v=4)](https://github.com/Meetbhana9567 "Meetbhana9567 (22 commits)")

---

Tags

dockerlaravelphplaravelmysqlmariadbredisdockernginxlaravel-dockerdocker-compose

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[spiritix/lada-cache

A Redis based, automated and scalable database caching layer for Laravel

591444.8k2](/packages/spiritix-lada-cache)[matthew-p/docker-server

Universal docker server, Nginx, PHP-FPM, MySql, Redis

112.8k](/packages/matthew-p-docker-server)[moharrum/laravel-adminer

Adminer database management tool for your Laravel application.

451.0k](/packages/moharrum-laravel-adminer)

PHPackages © 2026

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