PHPackages                             tddwizard/magento2-dockerized - 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. tddwizard/magento2-dockerized

ActiveMagento2-component[DevOps &amp; Deployment](/categories/devops)

tddwizard/magento2-dockerized
=============================

Docker infrastructure definitions for Magento 2 dev/test environment. Based on arvatoscm/dockerize-magento2

8472Shell

Since Oct 8Pushed 8y ago3 watchersCompare

[ Source](https://github.com/tddwizard/magento2-dockerized)[ Packagist](https://packagist.org/packages/tddwizard/magento2-dockerized)[ RSS](/packages/tddwizard-magento2-dockerized/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Dockerize Magento 2
===================

[](#dockerize-magento-2)

A composer package for dockerizing Magento 2

The composer package **tddwizard/magento2-dockerized** deploys docker infrastructure defintion files such as [docker-compose.yml](docker-compose.yml) to your Magento 2 root folder and enables you to host your Magento 2 shops without having to install Apache/Nginx, MySQL or PHP on your system.

Package Name
------------

[](#package-name)

`tddwizard/magento2-dockerized` (fork of `arvatoscm/dockerize-magento2`)

Software Requirements
---------------------

[](#software-requirements)

For Linux users you must have a recent version of [docker](https://github.com/docker/docker/releases) and [docker-compose](https://github.com/docker/compose/releases) installed.

If you are a Mac or Windows user, use the [Docker Toolbox](https://www.docker.com/products/docker-toolbox).

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

[](#installation)

Add `tddwizard/magento2-dockerized` to your existing Magento 2 shop:

```
composer require --ignore-platform-reqs tddwizard/magento2-dockerized
chmod +x bin/console
```

This will place some files in your Magento root:

- `docker-compose.yml`The docker infrastructure definition
- `bin/console`A utility script for controlling dockerized Magento projects
- `config`A folder which contains the configuration files for PHP, Nginx and phpMyAdmin

Usage
-----

[](#usage)

`dockerize-magento2` comes with `bin/console` script that can be used to install Magento and to execute Magentos' bin/magento script inside the PHP docker container:

Trigger the Magento 2 installation process:

```
bin/console install
```

Start the docker containers:

```
bin/console start
```

Stop the docker containers:

```
bin/console stop
```

Execute `bin/magento` inside the docker container:

```
bin/console exec [arguments]
```

For more information on how to use docker-compose visit:

Configuration
-------------

[](#configuration)

The `install` action depends on some parameters such as usernames and passwords. We have put in some default values for you that will work for a quick test:

```
DATABASE_NAME="magento2dockerized"
DATABASE_USER="magento"
DATABASE_PASSWORD="enAVINa2"
DATABASE_ROOT_PASSWORD="enAVINa2"

ADMIN_USERNAME="admin"
ADMIN_FIRSTNAME="Admin"
ADMIN_LASTNAME="Inistrator"
ADMIN_EMAIL="johndoe@example.com"
ADMIN_PASSWORD="enAVINa2"

DEFAULT_LANGUAGE="en_US"
DEFAULT_CURRENCY="EUR"
DEFAULT_TIMEZONE="Europe/Berlin"

BACKEND_FRONTNAME="management"

```

If you want to use different parameters change the values in the [.env](.env) file to your needs. After customizing the parameters just run trigger the installation with `bin/console install `.

Integration Tests
-----------------

[](#integration-tests)

### Setup

[](#setup)

1. Copy `dev/tests/integration/etc/install-config-mysql.php.dist` to `dev/tests/integration/etc/install-config-mysql.php`
2. Change database parameters in `dev/tests/integration/etc/install-config-mysql.php`:

    ```
     'db-host' => 'mysql',
     'db-user' => 'root',
     'db-password' => 'enAVINa2',
     'db-name' => 'magento_integration_tests',
     'db-prefix' => '',

    ```

### Running Tests

[](#running-tests)

After the integration test container is set up as described above, you can run the tests with this command:

```
docker-compose -f docker-compose.yml -f docker-compose.integration-tests.yml run --rm integration

```

Functional Tests
----------------

[](#functional-tests)

### Setup

[](#setup-1)

1. run `composer install` in `dev/tests/functional`
2. copy `dev/tests/functional/phpunit.xml.dist` to `dev/tests/functional/phpunit.xml` and change values for `app_frontend_url` and `app_backend_url`. It is also a good idea to add `stopOnError="true"` to the `` element.
3. copy `dev/tests/functional/etc/config.xml.dist` to `dev/tests/functional/etc/config.xml` and change values for `backendLogin`, `backendPassword`, `appBackendUrl` in ``. Also, add the following `server` node below ``:

    ```

             ANY

    ```

    You might need to change `host="selenium"` to the IP address of the selenium service, e.g. 172.20.0.6 (the troubleshooting check pings the service and shows the IP, see below)

### Running Tests

[](#running-tests-1)

After the functional integration test container is set up as described above, you can run the tests with this command:

```
docker-compose -f docker-compose.yml -f docker-compose.functional-tests.yml run --rm functional

```

Add the `-t` parameter to enable troubleshooting checks before the test suite starts. Pass arguments to PHPUnit after `--`, e.g.

```
docker-compose -f docker-compose.yml -f docker-compose.functional-tests.yml run --rm functional -- --filter MyTestCase

```

Licensing
---------

[](#licensing)

dockerize-magento2 is licensed under the Apache License, Version 2.0. See [LICENSE](LICENSE) for the full license text.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 65.9% 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/be7ce3a8a91df7dcf5f545b805865f65cab4b96daedfd3bc20a3b792d2450467?d=identicon)[schmengler](/maintainers/schmengler)

---

Top Contributors

[![schmengler](https://avatars.githubusercontent.com/u/367320?v=4)](https://github.com/schmengler "schmengler (27 commits)")[![andreaskoch](https://avatars.githubusercontent.com/u/247364?v=4)](https://github.com/andreaskoch "andreaskoch (10 commits)")[![schlpbch](https://avatars.githubusercontent.com/u/18540761?v=4)](https://github.com/schlpbch "schlpbch (3 commits)")[![renepenner](https://avatars.githubusercontent.com/u/98465?v=4)](https://github.com/renepenner "renepenner (1 commits)")

### Embed Badge

![Health badge](/badges/tddwizard-magento2-dockerized/health.svg)

```
[![Health](https://phpackages.com/badges/tddwizard-magento2-dockerized/health.svg)](https://phpackages.com/packages/tddwizard-magento2-dockerized)
```

###  Alternatives

[deployer/deployer

Deployment Tool

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