PHPackages                             solidcode-kch/laravel-in-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. solidcode-kch/laravel-in-docker

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

solidcode-kch/laravel-in-docker
===============================

Run Laravel project on Docker

v4.1.2(2y ago)114MITShell

Since Feb 2Pushed 2y ago1 watchersCompare

[ Source](https://github.com/SOLIDcode-kch/laravel-in-docker)[ Packagist](https://packagist.org/packages/solidcode-kch/laravel-in-docker)[ RSS](/packages/solidcode-kch-laravel-in-docker/feed)WikiDiscussions main Synced today

READMEChangelog (10)DependenciesVersions (7)Used By (0)

Laravel in Docker v4
====================

[](#laravel-in-docker-v4)

This package will allow you to run your Laravel app on the Docker environment in the very simple way.

You will be able to run a completely new Laravel project instance in the latest version but also the already existing project.

**IMPORTANT:** If you want to run already existing project, you have to ensure that his `.env` file exists, because this package will make some modifications inside it.

This package runs following tools:

- PHP 8.2
- NGINX server
- MySQL in the latest version
- RabbitMQ
- Redis

After run once `docker-compose up` command, your application will be ready to use!

Install package
---------------

[](#install-package)

```
composer create-project solidcode-kch/laravel-in-docker
```

How to run the Laravel application?
-----------------------------------

[](#how-to-run-the-laravel-application)

In order to run docker container from this package, simply go to the `laravel-in-docker` directory, create the `.env` file based on the `.env.example` file (`cp .env.example .env`) and run

```
docker-compose up
```

(wait until NGINX server will be running). Then your application will be available on the URL: and will be connected to the MySQL database.

You have many of possibilities to customize variables in the `.env` file. Please do it, before run `docker-compose up` if you need.

- `NGINX_PORT` - port where your NGINX server will be started and where your application will be available, e.g.
- `APP_CONTAINER_NAME` - name of the newly created `app` container (will be shown when you run the `docker ps` or the `docker-compose ps` command)
- `LARAVEL_APP_LOCATION` - location on your computer where the application will be or is already stored (as default is set as the same directory as docker configuration) - it must be without `/` at the end
- `LARAVEL_APP_NAME` - name of the directory where files from your application will be or is already stored (as default your application files are stored in `laravel-in-docker/laravel-app` directory)
- `MYSQL_PORT` - port where your database will be available from your local machine
- `MYSQL_CONTAINER_NAME` - name of the newly created `mysql` container (will be shown when you run the `docker ps` or the `docker-compose ps` command)
- `MYSQL_ROOT_PASSWORD` - password for the root user of the newly created or already existing MySQL engine
- `MYSQL_DATABASE` - name of the newly created or already existed database where are or will be stored tables with data for the Laravel application
- `MYSQL_USER` - name of the newly created or already existed database user
- `MYSQL_PASSWORD` - password for the user that is the owner of the newly created or already existed database
- `RABBITMQ_CONTAINER_NAME` - name of the newly created `rabbitmq` container (will be shown when you run the `docker ps` or the `docker-compose ps` command)
- `RABBITMQ_PORT` - port where your RabbitMQ console will be available from the local machine, e.g.
- `REDIS_CONTAINER_NAME` - name of the newly created `redis` container (will be shown when you run the `docker ps` or the `docker-compose ps` command)
- `REDIS_PORT` - port where your Redis will be available from the local machine, e.g.

How to run Artisan commands?
----------------------------

[](#how-to-run-artisan-commands)

In order to run artisan commands (or install composer dependencies) please run: `docker exec -it laravel_app bash` (in any location on your local machine) or `docker-compose exec app bash` in the `laravel-in-docker` directory (where the `docker-compose.yml` file is stored).

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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 ~170 days

Total

4

Last Release

737d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/10ea591df55db641f1d05340cc33b3da470bf9b9176bb830b331b96144a21266?d=identicon)[krzysztofchadynka](/maintainers/krzysztofchadynka)

---

Top Contributors

[![krzysztofchadynka](https://avatars.githubusercontent.com/u/7971936?v=4)](https://github.com/krzysztofchadynka "krzysztofchadynka (21 commits)")

---

Tags

laraveldockerlaravel-in-dockersolidcode

### Embed Badge

![Health badge](/badges/solidcode-kch-laravel-in-docker/health.svg)

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

###  Alternatives

[neo/little-sail

Smaller Alpine based image for Laravel Sail runtimes

379.1k](/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)
