PHPackages                             smtxdev/docker-compose-php-stack - 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. smtxdev/docker-compose-php-stack

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

smtxdev/docker-compose-php-stack
================================

23.5kPHP

Since Jun 5Pushed 5y agoCompare

[ Source](https://github.com/smtxdev/docker-compose-php-stack)[ Packagist](https://packagist.org/packages/smtxdev/docker-compose-php-stack)[ RSS](/packages/smtxdev-docker-compose-php-stack/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

docker-compose stack for PHP-Projects
=====================================

[](#docker-compose-stack-for-php-projects)

Install
-------

[](#install)

```
composer init # if you not have a composer.json
# Add `scripts` and `extra` infos as mentioned below then execute:
composer require smtxdev/docker-compose-php-stack:dev-master

```

Add these lines to your root composer.json to define the install-location of this package (otherwise this package will not work correctly). Composer will install everything to the `vendor` folder. The following post-install-script (post-autoload-dump) will copy all files to your desired location. You can install and update this package normally like every other package but do not use this package from the `vendor` folder. Only from the directory you configured in `docker-install-dir`.

```
"scripts": {
    "post-autoload-dump": [
        "SmtXDev\\DockerComposePhpStack\\Installer::install"
    ]
},
"extra": {
    "docker-install-dir": "./docker"
}

```

Full-Example `composer.json`

```
{
    "require": {
        "smtxdev/docker-compose-php-stack": "dev-master"
    },
    "scripts": {
        "post-autoload-dump": [
            "SmtXDev\\DockerComposePhpStack\\Installer::install"
        ]
    },
    "extra": {
        "docker-install-dir": "./docker"
    }
}

```

Usage / Start the stack
-----------------------

[](#usage--start-the-stack)

```
cd docker
docker-compose up -d

```

Add files to .gitignore to commit config files
----------------------------------------------

[](#add-files-to-gitignore-to-commit-config-files)

For example:

```
/docker/*
!/docker/.env
!/docker/*/
/docker/config/solr/empty
/docker/import/*

```

Assuming your `docker-install-dir` is `./docker`. At first let us ignore everything from `/docker/*` then let us unignore the config file: `!/docker/.env`. Unignore everything in the second level with: `!/docker/*/` then ignore again not needed files: `/docker/config/solr/empty` and `/docker/import/*`. With this `.gitignore` you can commit all configs in your repo and you can still update this package. Keep track of this README maybe you need to add/remove some statements in the future.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity33

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/539a6e3b3058b06986983fbf214818b01723a033e009faabf996eea3096760cf?d=identicon)[smtxdev](/maintainers/smtxdev)

---

Top Contributors

[![smtxdev](https://avatars.githubusercontent.com/u/45975452?v=4)](https://github.com/smtxdev "smtxdev (24 commits)")

### Embed Badge

![Health badge](/badges/smtxdev-docker-compose-php-stack/health.svg)

```
[![Health](https://phpackages.com/badges/smtxdev-docker-compose-php-stack/health.svg)](https://phpackages.com/packages/smtxdev-docker-compose-php-stack)
```

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