PHPackages                             svenvanderwegen/dockerizer - 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. svenvanderwegen/dockerizer

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

svenvanderwegen/dockerizer
==========================

A PHP package to create a Dockerfile for your Laravel project

02PHPCI passing

Since Jun 4Pushed 11mo ago1 watchersCompare

[ Source](https://github.com/SvenVanderwegen/dockerizer)[ Packagist](https://packagist.org/packages/svenvanderwegen/dockerizer)[ RSS](/packages/svenvanderwegen-dockerizer/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

[![Dockerizer](docs/dockerizer.png)](docs/dockerizer.png)

Dockerizer
==========

[](#dockerizer)

 [![GitHub Workflow Status (master)](https://github.com/SvenVanderwegen/dockerizer/actions/workflows/tests.yml/badge.svg)](https://github.com/SvenVanderwegen/dockerizer/actions) [![Total Downloads](https://camo.githubusercontent.com/8355719ad933ceef0f3190f1732d6c5980abedb1e1cf41a80a53c92b694b7fa2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7376656e76616e646572776567656e2f646f636b6572697a6572)](https://packagist.org/packages/svenvanderwegen/dockerizer) [![Latest Version](https://camo.githubusercontent.com/1a4ebf8e86cd8654a67cf77726651121840b0385cad0bbfd88f3fdfe878a4b6b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7376656e76616e646572776567656e2f646f636b6572697a6572)](https://packagist.org/packages/svenvanderwegen/dockerizer) [![License](https://camo.githubusercontent.com/db4e25c995cce46fa8d2757740a3a998e5d2bad089bb4ddf457f03dfca74b536/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f7376656e76616e646572776567656e2f646f636b6572697a6572)](https://packagist.org/packages/svenvanderwegen/dockerizer)

---

**Dockerizer** is a command line tool that helps you create Docker images for your PHP applications. It generates a `Dockerfile` and a `docker-compose.yml` file based on your application's configuration.

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

[](#installation)

You can install the package via Composer:

```
composer require --dev svenvanderwegen/dockerizer:dev-master --prefer-dist
```

Features &amp; Functionality
----------------------------

[](#features--functionality)

Dockerizer provides a streamlined workflow to containerize your PHP application with minimal effort. The core functionality is exposed through two main Artisan commands:

### 1. `dockerizer:setup`

[](#1-dockerizersetup)

- Launches an interactive setup wizard.
- Prompts you to select:
    - Container registry (Docker Hub, GitHub, custom, etc.)
    - Repository path and (if custom) registry URL
    - Database type (MySQL, PostgreSQL, SQLite)
    - Optional services: Redis, queue worker, scheduler
- Saves your choices to `.dockerizer/config.json`.

### 2. `dockerizer:build`

[](#2-dockerizerbuild)

- Generates all required Docker files for your application based on the configuration.
- Creates:
    - Dockerfile(s) and service stubs
    - `docker-compose.yml` with all enabled services (app, nginx, database, redis, worker, scheduler, etc.)
    - Necessary directories and GitHub Actions workflow files
- Supports a `--force` option to overwrite existing files

### Modular Service Classes

[](#modular-service-classes)

- Each Docker service (App, Nginx, Database, Redis, Worker, Scheduler) is encapsulated in its own class.
- Only services enabled in your configuration are included in the generated compose file.
- Easily extendable for additional services.

---

> **Requires [PHP 8.3+](https://php.net/releases/)**

**Dockerizer** was created by **[Sven Vanderwegen](https://github.com/SvenVanderwegen)** under the **[MIT license](https://opensource.org/licenses/MIT)**.

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity14

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/f52970caf94727d97af059c1bd364d4176604defe4d3c3e8135382fd57fe31c6?d=identicon)[SvenVanderwegen](/maintainers/SvenVanderwegen)

---

Top Contributors

[![SvenVanderwegen](https://avatars.githubusercontent.com/u/18567509?v=4)](https://github.com/SvenVanderwegen "SvenVanderwegen (41 commits)")

### Embed Badge

![Health badge](/badges/svenvanderwegen-dockerizer/health.svg)

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

###  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)
