PHPackages                             grobles16/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. grobles16/laravel-docker

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

grobles16/laravel-docker
========================

A laravel and docker extension for easy installation

143Dockerfile

Since Aug 22Pushed 3y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

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

[](#laravel---docker)

Install
-------

[](#install)

After creating your laravel project you need to do some configuration first and have docker-compose installed

1. Install package

```
composer require grobles16/laravel-docker
```

2. To detect the routes file it is necessary to add the following code in config / app.php

```
'providers' => [
   Grobles16\LaravelDocker\LaravelDockerProvider::class,
],
```

3. Publish files in our root folder

```
php artisan vendor:publish --provider="Grobles16\LaravelDocker\LaravelDockerProvider" --tag=laravel-docker --force
```

Docker settings
---------------

[](#docker-settings)

1. Edit the .env file assign the name of the DB, user, password

```
DB_CONNECTION=mysql
DB_HOST=mysql
DB_PORT=3306
DB_DATABASE=laravel
DB_USERNAME=laravel
DB_PASSWORD=laravel
```

2. Once the changes have been made in the .env file, execute the following command, this will allow us to create our containers:

```
docker-compose build app
```

3. Turn on the containers and the network:

```
docker-compose up -d
```

4. To display information about the status of active services, run:

```
docker-compose ps
```

5. After executing step 3 our containers are already up, but we still need to run a couple of commands to finish configuring our application. You can use the docker-compose exec command to run commands on service containers, such as ls -l to display detailed information about the files in our application directory:

```
docker-compose exec app ls -l
```

6. If necessary, run the following command to assign permissions to our project

```
docker-compose exec app chown -R www-data: /var/www
```

7. Now we run "composer install" to install the app dependencies:

```
docker-compose exec app rm -rf vendor composer.lock
docker-compose exec app composer install
```

8. Generate a unique app key

```
docker-compose exec app php artisan key:generate
```

9. Go to the browser and put the following

```
localhost:8000
```

Optional information
--------------------

[](#optional-information)

- If you want to pause your Docker Compose environment while maintaining the state of all your services, run:

```
docker-compose pause
```

- Resume services

```
docker-compose unpause
```

- To shut down the Docker environment

```
docker-compose down
```

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity25

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/dca5ce328488383b19b8949c3ef18df9df7347b91b7f3fc4015a739f000241dc?d=identicon)[grobles16](/maintainers/grobles16)

---

Top Contributors

[![grobles16](https://avatars.githubusercontent.com/u/75268721?v=4)](https://github.com/grobles16 "grobles16 (41 commits)")

### Embed Badge

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

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

###  Alternatives

[deployer/deployer

Deployment Tool

11.0k25.4M207](/packages/deployer-deployer)[appwrite/server-ce

End to end backend server for frontend and mobile apps.

55.3k84.2k](/packages/appwrite-server-ce)[pragmarx/health

Laravel Server &amp; App Health Monitor and Notifier

2.0k1.0M2](/packages/pragmarx-health)[felixfbecker/language-server-protocol

PHP classes for the Language Server Protocol

22476.7M6](/packages/felixfbecker-language-server-protocol)[heroku/heroku-buildpack-php

Toolkit for starting a PHP application locally, with or without foreman, using the same config for PHP and Apache2/Nginx as on Heroku

8161.3M10](/packages/heroku-heroku-buildpack-php)[tiamo/phpas2

PHPAS2 is a php-based implementation of the EDIINT AS2 standard

4674.7k](/packages/tiamo-phpas2)

PHPackages © 2026

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