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.

00PHPCI failing

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

15

—

LowBetter than 3% of packages

Maintenance44

Moderate activity, may be stable

Popularity0

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://www.gravatar.com/avatar/baa15fea671306a5832beccecf99263aac702b68b6486929dcce8d48f09d2733?d=identicon)[rfpdl](/maintainers/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

[deployer/deployer

Deployment Tool

11.1k25.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)
