PHPackages                             viezel/dock - 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. [CLI &amp; Console](/categories/cli)
4. /
5. viezel/dock

ActiveLibrary[CLI &amp; Console](/categories/cli)

viezel/dock
===========

Docker for Laravel Development

1.2.1(3y ago)1169MITShellPHP ^7.4|^8.0|^8.1|^8.2

Since Jan 21Pushed 3y ago1 watchersCompare

[ Source](https://github.com/viezel/Dock)[ Packagist](https://packagist.org/packages/viezel/dock)[ Docs](https://github.com/viezel/dock)[ RSS](/packages/viezel-dock/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (2)Versions (12)Used By (0)

Dock
====

[](#dock)

Local development based on Docker for Laravel.

This setup includes:

- Nginx (latest)
- PHP 8.1
- MySQL 8.0
- Redis Caching
- Redis Queue
- Mailhog (local mail development)
- Xdebug
- Node, npm, npx and yarn. Use `dock npm` etc.
- Laravel Dusk E2E browser testing. Use `dock dusk`

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

[](#installation)

Prepares docker compose and your .env file for docker based development

```
composer require viezel/dock --dev
php artisan dock:install
dock start
```

Use `dock stop` to stop the development server.

### Create a testing database

[](#create-a-testing-database)

If you want to have a MySQL testing database, just run:

```
dock testdb
```

Customize Your Docker Setup
---------------------------

[](#customize-your-docker-setup)

If you want to customize the docker setup, then run:

```
php artisan dock:publish
```

Commands
--------

[](#commands)

Running `dock` will give the list of commands.

```
Docker commands:

  * build      building containers
  * install    install the app for the first time
  * up         start containers
  * start      start containers
  * down       stop containers
  * stop       stop containers
  * reset      resetting containers. Careful - you are deleting everything
  * remove     removing containers. Careful - you are deleting everything
  * logs       view logs from PHP and Nginx. Use '--follow' to tail it
  * logs-mysql view logs from MySQL. Use '--follow' to tail it
  * logs-queue view logs from the queue. Use '--follow' to tail it
  * logs-redis view logs from Redis. Use '--follow' to tail it
  * testdb     create a MySQL test database
------

Laravel commands:

  * ssh        SSH into laravel
  * ssh-mysql  SSH into mysql
  * dusk       run dusk tests. 'dock dusk' or append: 'dock dusk --group=foo'
  * dusk-fails run dusk failing tests
  * c          run composer commands. 'dock c dump-autoload'
  * composer   run composer commands. 'dock composer dump-autoload'
  * art        run artisan commands. 'dock art view:clear'
  * artisan    run artisan commands.
  * tinker     run tinker
  * worker     start a new queue worker
  * cc         clear cache
  * rl         route list. 'dock rl --path=api/foo/bar'
  * migrate    migrate the app
  * redis      start redis cli
  * expose     share site via Expose

------

JS commands:

  * node       run node commands
  * npm        run npm commands
  * npx        run npx commands
  * yarn       run yarn commands
```

Credits
-------

[](#credits)

Credits to [Chris Fidao](https://github.com/fideloper) for creating Vessel and [Taylor Otwell](https://github.com/taylorotwell) for Sail.

- [Mads Møller](https://github.com/viezel)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity72

Established project with proven stability

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

Recently: every ~162 days

Total

11

Last Release

1281d ago

PHP version history (2 changes)1.0.0PHP ^7.4|^8.0

1.2.1PHP ^7.4|^8.0|^8.1|^8.2

### Community

Maintainers

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

---

Top Contributors

[![viezel](https://avatars.githubusercontent.com/u/312065?v=4)](https://github.com/viezel "viezel (20 commits)")

---

Tags

clidockerdocker-composelaravelnginxphplaraveldocker

### Embed Badge

![Health badge](/badges/viezel-dock/health.svg)

```
[![Health](https://phpackages.com/badges/viezel-dock/health.svg)](https://phpackages.com/packages/viezel-dock)
```

###  Alternatives

[laravel/sail

Docker files for running a basic Laravel application.

1.9k186.9M1.0k](/packages/laravel-sail)[worksome/envy

Automatically keep your .env files in sync.

6871.8M](/packages/worksome-envy)[fly-apps/dockerfile-laravel

Dockerfile generator and Fly.io helper.

30105.0k](/packages/fly-apps-dockerfile-laravel)[mwguerra/web-terminal

A web-based terminal component for Filament/Laravel with command whitelisting and multiple connection types

251.1k](/packages/mwguerra-web-terminal)[sunaoka/laravel-facade-generator

Provide command line generation of facade layer files.

171.9k](/packages/sunaoka-laravel-facade-generator)

PHPackages © 2026

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