PHPackages                             prooxxy/gleipnir - 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. prooxxy/gleipnir

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

prooxxy/gleipnir
================

My personal plug and play docker-composer wrapper for Magento 2

1.3.0(4y ago)05.2kMITShell

Since Mar 19Pushed 4y ago1 watchersCompare

[ Source](https://github.com/Pr00xxy/gleipnir)[ Packagist](https://packagist.org/packages/prooxxy/gleipnir)[ RSS](/packages/prooxxy-gleipnir/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (20)Used By (0)

Gleipnir
========

[](#gleipnir)

Magento 2 environment manager for local setup

NOTE: This is my personal project. I try but will not promise that I'll follow semver nor that it receives updates. This project should therefor serve as an example of how one could manage local environments when dealing with multiple projects.

### Installation

[](#installation)

```
composer require prooxxy/gleipnir:1.* --dev
chmod +x bin/gleipnir

mkdir -p .gleipnir/config/
touch .gleipnir/config/.env.gleipnir
```

### Use

[](#use)

Once installed the executable is available at `bin/gleipnir`This file replaces `bin/magento` and `docker-compose` henceforth.

Run `bin/gleipnir help` to list usable commands

`gleipnir` is used to invoke commands but is also the entrypoint for magento as mentioned.

Any arguments not recognised by gleipnir will be passed to magento.

Therefor arguments such as `start`, `stop`, `restart` will be interpreted by gleipnir whereas `setup:upgrade`, `cache:flush` etc will be passed into the php container to `bin/magento`.

Please see `config/.env.gleipnir` for an example configuration.

#### Configuration

[](#configuration)

The config lives inside `config/.env.gleipnir`
It can be overriden through `.gleipnir/config/.env.gleipnir` by simply adding modified key=value pairs

The `PROJECT_NAME` is the unique identifier for projects. This must be unique for every project you start
`TLD` is top level domain and can be changed to whatever you want
`SERVICES` contains a list of enabled services. removing services from this list disables them. (docker-composer depends\_on constraints still rule)

`MULTISITE` contains a list of site entries.
A site entry contains 3 parts. &lt;domain\_name&gt;:&lt;run\_code&gt;:&lt;run\_scope&gt; The following example will result in the creation of a site with the following configuration domain + `TLD` = dummy.test
MAGE\_RUN\_CODE = default
MAGE\_RUN\_TYPE = website

```
PROJECT_NAME='gleipnir'
TLD=".test"
SERVICES=('proxy' 'database' 'php' 'rabbitmq' 'redis' 'mailhog' 'elasticsearch')
MULTISITE=("dummy:default:website")

```

#### Override docker-compose.yml

[](#override-docker-composeyml)

One may override the docker-compose.dist.yml if needed. Follow the steps below to do so

1. In `.gleipnir/config/` add new file called `docker-compose.dist.yml`
2. Add overrides as one normal when adding additional files to docker-compose

#### Varnish

[](#varnish)

Varnish can be toggled with the USE\_VARNISH flag.

The proxy service is responsible for TLS termination and passing data to varnish.
When varnish is not used it will instead pass data directly to the httpd service that normally receives its data from varnish.

#### Override configuration files

[](#override-configuration-files)

TODO

Features
--------

[](#features)

- Set dependency versions in config
- Multisite support
- TLS support
- toggleable Varnish
- support for additional docker-compose files
- rabbitmq installed
- mail interception with mailhog

TODOs
-----

[](#todos)

- Add support for mysql 8
- Add support for composer versions

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity65

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~40 days

Recently: every ~55 days

Total

17

Last Release

1589d ago

Major Versions

0.15.0 → 1.0.12021-03-07

### Community

Maintainers

![](https://www.gravatar.com/avatar/892479757ef2597339c2db7c80f832aebe18c2b464a69845a087588988290449?d=identicon)[pr00xxy](/maintainers/pr00xxy)

---

Top Contributors

[![Pr00xxy](https://avatars.githubusercontent.com/u/9111275?v=4)](https://github.com/Pr00xxy "Pr00xxy (98 commits)")

---

Tags

dockermagento2

### Embed Badge

![Health badge](/badges/prooxxy-gleipnir/health.svg)

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

###  Alternatives

[spatie/docker

Run a docker container in your PHPUnit tests

478120.2k12](/packages/spatie-docker)[ryoluo/sail-ssl

Laravel Sail plugin to enable SSL (HTTPS) connection with Nginx.

188672.6k2](/packages/ryoluo-sail-ssl)[jalogut/magento2-deployer-plus

Magento 2 deployment tool based on deployer.org

201415.5k](/packages/jalogut-magento2-deployer-plus)[aschmelyun/fleet

Run multiple Laravel Sail websites on your local environment

33269.5k](/packages/aschmelyun-fleet)[testcontainers/testcontainers

Testcontainers implementation in PHP

199184.7k17](/packages/testcontainers-testcontainers)[contributte/bootstrap

Extra contrib to nette/boostrap

111.5M3](/packages/contributte-bootstrap)

PHPackages © 2026

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