PHPackages                             catchdigital/drucker - 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. catchdigital/drucker

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

catchdigital/drucker
====================

Docker + drupal composer stack

3.0.0(3y ago)0110[3 issues](https://github.com/catchdigital/drucker/issues)[1 PRs](https://github.com/catchdigital/drucker/pulls)MITPHP

Since Nov 12Pushed 1y ago3 watchersCompare

[ Source](https://github.com/catchdigital/drucker)[ Packagist](https://packagist.org/packages/catchdigital/drucker)[ RSS](/packages/catchdigital-drucker/feed)WikiDiscussions develop Synced 5d ago

READMEChangelogDependencies (9)Versions (19)Used By (0)

Docker NGINX compose
====================

[](#docker-nginx-compose)

Introduction
------------

[](#introduction)

Docker compose kick-starting set.

Set up
------

[](#set-up)

- **NGINX**: Latest from docker hub.
- **PHP 7-fpm**: Optimized version 7.4.4
- **Percona**: Version 5.7

Create a the project
--------------------

[](#create-a-the-project)

Create a new project with composer. **Replace the ${project\_name} with your project**. That will be the root directory of your application: `composer create-project catchdigital/drucker ${project_name}`

*If the settings.php file is updated in Drupal core, you'll need to uncomment the last 3 lines of settings.php to include the settings.local.php*

Updating the project
--------------------

[](#updating-the-project)

An .env file should be created as a copy of .env.example. Feel free to add/update any variables as your needs.

Run docker compose `docker-compose up -d server`

If you have the domain in your hosts file, you should be able to hit the site on **** or whatever domain you want to run the site.

Other useful commands
---------------------

[](#other-useful-commands)

Stop docker stack `docker-compose stop`

Destroy the whole docker stack. This also delete the database. `docker-compose down`

Next steps
----------

[](#next-steps)

Install the contrib themes if needed, create your custom theme, and update webpack with your ${theme} name.

After that, you should be able to build the css and javascript from the root of the project: `npm run build`. That will generate the files in a build folder in the theme. Don't forget to create add the build files to your libraries and create different entrypoints for each of your libraries, so they can be splitted around the twig templates.

In oder to add dynamically the dependencies for each entrypoint, you should add the following hook to your theme.

```
/**
 *
 * Implements hook_library_info_alter() for webpack chunks dependencies.
 */
function hook_library_info_alter(&$libraries, $extension) {
  // We only want to modify current theme extensions
  if ($extension === '${theme}') {
    // Load chunks dependencies from stats file.
    $stats = file_get_contents(DRUPAL_ROOT . "/../webpack.stats.json");
    $stats = Json::decode($stats);
    // Create and attach code splits.
    foreach($stats['namedChunkGroups'] as $name => $lib) {
      // Loop through require files.
      $reqAssets = $lib['assets'];
      if (isset($libraries[$name])) {
        $libraries = addNewLibrary($libraries, $reqAssets, $name);
      }
    }
  }
}

function addNewLibrary($libraries, $reqAssets, $name) {
  foreach($reqAssets as $asset) {
    $requireLib = str_replace('.bundle.js', '', $asset['name']);
    // Dependency exists?
    if (empty($libraries["asset-$requireLib"])) {
      $filename = "build/" . $asset['name'];
      $libraries["asset-$requireLib"] = [
        "js" => [
          $filename => []
        ]
      ];
      $excludedLibraries = ["500", "396"];
      if (in_array($requireLib, $excludedLibraries)) {
        $libraries["asset-$requireLib"]["js"][$filename] = [
          "minified" => false,
          "attributes" => [
            "async" => true,
            "defer" => true
          ]
        ];
      }
    }
    if (isset($libraries[$name]['dependencies'])) {
      $libraries[$name]['dependencies'][] = "${theme}/asset-$requireLib";
    } else {
      $libraries[$name]['dependencies'] = ["${theme}/asset-$requireLib"];
    }
  }
  return $libraries;
}

```

*The individual library for each entry point must be created manually based on the definition on webpack, and they shuold use the same name. If using catchify theme, this is happening automatically.*

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance28

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity72

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 ~175 days

Recently: every ~166 days

Total

12

Last Release

1179d ago

Major Versions

1.1.0 → 2.0.02020-06-22

2.6.0 → 3.0.02023-02-22

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/18724038?v=4)[Catch Digital](/maintainers/catchdigital)[@catchdigital](https://github.com/catchdigital)

---

Top Contributors

[![alberto115](https://avatars.githubusercontent.com/u/5885919?v=4)](https://github.com/alberto115 "alberto115 (97 commits)")

### Embed Badge

![Health badge](/badges/catchdigital-drucker/health.svg)

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

###  Alternatives

[drupal/recommended-project

Project template for Drupal projects with a relocated document root

1502.6M1](/packages/drupal-recommended-project)[fourkitchens/sous-drupal-project

Starter project for Sous a Drupal distribution featuring a theme based on Emulsify Design System.

151.0k](/packages/fourkitchens-sous-drupal-project)[drupalwxt/wxt

Project template for Drupal 10 sites built with the WxT distribution.

29159.8k8](/packages/drupalwxt-wxt)[centarro/commerce-kickstart-project

Centarro Commerce Kickstart 5.x project template

3116.2k](/packages/centarro-commerce-kickstart-project)[metadrop/drupal-boilerplate

Project template for Drupal 9 projects with a relocated document root

281.0k](/packages/metadrop-drupal-boilerplate)

PHPackages © 2026

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