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.

03PHPCI failing

Since Sep 29Pushed 9mo 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 today

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

Maintenance41

Moderate activity, may be stable

Popularity4

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity13

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

[in2code/in2publish_core

Content publishing extension to connect stage and production server

40143.4k](/packages/in2code-in2publish-core)[tiamo/phpas2

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

4778.9k](/packages/tiamo-phpas2)[wapmorgan/php-rpm-packager

RPM packager for PHP applications.

106.6k](/packages/wapmorgan-php-rpm-packager)

PHPackages © 2026

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