PHPackages                             jtant/dockerize-me - 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. jtant/dockerize-me

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

jtant/dockerize-me
==================

Add some docker magic to your project

2.0.0(8y ago)201145[1 issues](https://github.com/JulienTant/dockerize-me/issues)MITPHP

Since Sep 17Pushed 8y ago1 watchersCompare

[ Source](https://github.com/JulienTant/dockerize-me)[ Packagist](https://packagist.org/packages/jtant/dockerize-me)[ RSS](/packages/jtant-dockerize-me/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (3)Versions (7)Used By (0)

Dockerize Me!
=============

[](#dockerize-me)

`dockerize-me` is a simple, yet powerful utility that let you use docker for your php project, leveraging docker-compose.

It will do 4 things...

- Try to guess what framework you are using.
- Create a docker/ folder with the definitions of the images (Dockerfile) we will use.
- Create a docker-compose.yml file that describe the services.
- Create a 'dcp' tool that will streamline your development workflow with docker.

...and provides 4 containers:

- app: Nginx server &amp; PHP-FPM.
- mysql: a MySQL server.
- redis: a Redis server.
- node: a container to run npm or yarn.

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

[](#installation)

### Globally

[](#globally)

The first option is to install it globally using composer:

`composer global require jtant/dockerize-me`

You must make sure that the `$HOME/.composer/vendor/bin` folder is present in your `$PATH` env variable.

### Per project

[](#per-project)

If you don't want to install it globally, you can also choose to install it per project using : `composer require jtant/dockerize-me` in your project.

### Which version will can I get ?

[](#which-version-will-can-i-get-)

- PHP: 7.1 - Available : 7.0, 7.1
- MySQL: 5.7 - Available: [https://hub.docker.com/\_/mysql/](https://hub.docker.com/_/mysql/)
- Redis: 3.2 - Available: [https://hub.docker.com/\_/redis/](https://hub.docker.com/_/redis/)
- Node: latest - Available: [https://hub.docker.com/\_/node/](https://hub.docker.com/_/node/)

You can change versions by using `--php`, `--mysql`, `--redis`, `--node` while calling `dockerize-me`.

How to use it ?
---------------

[](#how-to-use-it-)

### Globally

[](#globally-1)

Go to your project and type `dockerize-me`.

### Per project

[](#per-project-1)

Go to your project and type `./vendor/bin/dockerize-me`.

### Available options

[](#available-options)

- `--project-name=xx` - change the name of your project. By default, it will be the folder name.
- `--php=xx` - choose your PHP version
- `--mysql=xx` - choose your mysql version
- `--redis=xx` - choose your redis version
- `--node=xx` - choose your node version
- `--with-blackfire` - adds Blackfire (see )
- `--force` - overrides files if they already exists. **If you've modified a generated file, you will loose your modifications! Use with caution**
- `--no-interaction` or `-n` - automatically answers the default options to the questions.
- `-h` - show all the options

This list may not be exhaustive, I recommend you use `dockerize-me -h` to see all options.

### Both

[](#both)

After that first step, you may want to change the docker-compose.yml file to update the database information - or change your framework to use those informations.

To start the containers, just run `docker-compose run -d` or `./dcp up`.

What is dcp ?
-------------

[](#what-is-dcp-)

`dcp` is a utility that has been installed on your project, it will give your some shortcuts to work with docker, and help your keep a not complicated workflow.

Here is what it can do:

- `dcp`: show the running container in your project.
- `dcp up`: starts the docker containers for your projects.
- `dcp down`: stops and remove docker containers for your projects (not the volumes).
- `dcp reload/restart/rs/rl`: shortcuts for `dcp up && dcp down`.
- `dcp test`: execute `./vendor/bin/phpunit` in a new app container.
- `dcp t`: execute `./vendor/bin/phpunit` into the app container.
- `dcp composer`: execute `composer` into the app container.
- `dcp yarn`: execute `yarn` in a node container.
- `dcp npm`: execute `npm` in a node container.
- (Laravel specific) `dcp artisan`: execute an `php artisan` into the app container.
- (Symfony2 specific) `dcp app/console`: execute `php app/console` into the app container.
- (Symfony3 specific) `dcp bin/console`: execute `php bin/console` into the app container.

As a fallback, any other command will be passed to `docker-compose`.

I invite you to change the `dcp` file if needed to fit it to your needs!

If you use `dcp` a lot, feel free to add this alias in your .bashrc/.zshrc file : `alias dcp="./dcp"`.

How to customize your containers
--------------------------------

[](#how-to-customize-your-containers)

The Dockerfiles are all located in the `docker/` folder. You can do anything you want in there.

After you've done your changes, you must rebuild the containers using `./dcp build --no-cache`.

If you containers are running, you can restart them using `./dcp rs`, or just run `./dcp up` if they were not.

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 94.4% 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 ~15 days

Total

6

Last Release

3085d ago

Major Versions

0.0.3 → 1.0.02017-09-17

1.0.0 → 2.0.02017-12-03

### Community

Maintainers

![](https://www.gravatar.com/avatar/828199f3224a4e7cb78880b80d797959089eea08b37e2f3516e42a98082edf29?d=identicon)[JulienTant](/maintainers/JulienTant)

---

Top Contributors

[![JulienTant](https://avatars.githubusercontent.com/u/785518?v=4)](https://github.com/JulienTant "JulienTant (17 commits)")[![nWidart](https://avatars.githubusercontent.com/u/882397?v=4)](https://github.com/nWidart "nWidart (1 commits)")

### Embed Badge

![Health badge](/badges/jtant-dockerize-me/health.svg)

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

###  Alternatives

[wsdltophp/packagegenerator

Generate hierarchical PHP classes based on a WSDL

4351.9M19](/packages/wsdltophp-packagegenerator)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)[shopware/deployment-helper

Shopware deployment tools

19305.3k5](/packages/shopware-deployment-helper)[drevops/git-artifact

Package artifact from your codebase in CI and push it to a separate git repo.

2133.2k](/packages/drevops-git-artifact)

PHPackages © 2026

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