PHPackages                             rfpdl/laravel-dockerize - 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. rfpdl/laravel-dockerize

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

rfpdl/laravel-dockerize
=======================

Laravel-specific Docker scaffolding installer with dev/local/production presets.

06PHPCI failing

Since Sep 29Pushed 10mo agoCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Dockerize
=================

[](#laravel-dockerize)

A Laravel-specific Docker scaffolding installer tailored for Laravel apps with production/dev/local presets.

Requirements
------------

[](#requirements)

- Laravel 10 or 11
- PHP 8.1+
- Docker Engine and Docker Compose v2
- Node 18+ (recommended 20) for Vite

Features
--------

[](#features)

- Production-ready PHP-FPM + Nginx multi-stage build.
- Dev and Local presets with hot-reload, Vite container, Xdebug toggle.
- Postgres (main + logs) and Redis with healthchecks.
- Horizon worker container for queues.
- Simple `php artisan dockerize:install` installer.

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

[](#installation)

```
composer require --dev rfpdl/laravel-dockerize

```

Install as a dev dependency so it isn't shipped to production images by default. After scaffolding, you can keep the package for future updates or remove it—the generated Docker files stay in your repo.

Usage
-----

[](#usage)

```
php artisan dockerize:install --preset=all                # local|dev|prod|all
php artisan dockerize:install --preset=local              # hot reload + vite + xdebug
php artisan dockerize:install --preset=dev                # team dev stack
php artisan dockerize:install --preset=prod               # production-like

# Choose database backend (default: pgsql). Supported: pgsql | mysql | mariadb
php artisan dockerize:install --preset=local --db=pgsql
php artisan dockerize:install --preset=local --db=mysql
php artisan dockerize:install --preset=local --db=mariadb

```

Then:

- Merge `.env.docker.example` into your `.env`.
- Start: `docker compose -f docker-compose.local.yml up -d` (or dev/prod).

Highlights
----------

[](#highlights)

- Laravel-first: artisan-aware entrypoints, migrations, caches.
- Vite container for front-end dev.
- Horizon worker baked in.
- Safer defaults, healthchecks, least-privilege settings.
- Clear presets and .env template.

Package lifecycle and updates
-----------------------------

[](#package-lifecycle-and-updates)

- The package is auto-discovered via a Service Provider, but it only registers console commands and does nothing at runtime. It’s safe to keep as a dev dependency.
- Plan: add `php artisan dockerize:update` to re-sync template changes (with a diff/confirm prompt). Until then, re-run `dockerize:install --force` if you want to overwrite templates.

Roadmap
-------

[](#roadmap)

- MySQL/MariaDB optional preset.
- Sail compatibility shim (optional).
- Makefile helpers.
- Interactive installer flags.

License
-------

[](#license)

MIT

###  Health Score

16

—

LowBetter than 4% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity14

Early-stage or recently created project

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://avatars.githubusercontent.com/u/46474383?v=4)[Roy Francis Ponce de Leon](/maintainers/rfpdl)[@rfpdl](https://github.com/rfpdl)

### Embed Badge

![Health badge](/badges/rfpdl-laravel-dockerize/health.svg)

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

###  Alternatives

[pomander/pomander

Deployment for PHP

19615.7k2](/packages/pomander-pomander)[symfony-tools/docs-builder

The build system for Symfony's documentation

3668.5k1](/packages/symfony-tools-docs-builder)[enygma/composerclean

An additional command for Composer that removes configured files/directory

171.8k](/packages/enygma-composerclean)

PHPackages © 2026

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