Releases: markshust/docker-magento
Releases · markshust/docker-magento
53.0.0
Added
- Auto-detect Magento/Mage-OS version and pin matching service images via new
bin/detect-versionsscript + auto-generatedcompose.versions.yaml. Runs as a pre-flight inbin/startand duringbin/download/ onelinesetup. Pins PHP, nginx, OpenSearch, database, RabbitMQ, and cache images to match the installed edition/version. PR #1434, #1432 - New PHP 8.5 image (
images/php/8.5) with initial tags8.5-fpm-0/8.5-fpm-xdebug-0for Magento 2.4.9 support, which requires PHP 8.5 exclusively. #1425 - New nginx 1.26 image (
images/nginx/1.26, tag1.26-0) and 1.28 image (images/nginx/1.28, tag1.28-0). nginx 1.28 is the version specified in Adobe Commerce 2.4.7/2.4.8/2.4.9 system requirements. #1390 - New OpenSearch 3 image (
images/opensearch/3, tag3-0) based onopensearchproject/opensearch:3.6.0. Required by Magento 2.4.9 and 2.4.8-p5+, and supported (with OpenSearch 2) by 2.4.7-p10+. #1407 - New RabbitMQ 4.2 image (
images/rabbitmq/4.2, tag4.2-0). Prerequisite for the auto-detect pinning work and the new default for current Magento versions. PR #1433 - New
phpfpm-xdebugservice incompose.yaml(and matching entries across thecompose.*.yamloverlay files). Loadsenv/phpfpm.envplus a newenv/phpfpm-xdebug.envthat setsPHP_IDE_CONFIG="serverName=magento"andXDEBUG_MODE=develop,debug. PR #1355 - New
bin/setup-nginxhelper that rewrites Magento'snginx.confso cookie-triggered Xdebug routing works (fastcgi_pass fastcgi_backend;→fastcgi_pass $fastcgi_backend;). Auto-run bybin/setup; existing projects can run it once to opt in. - Support for
compose.override.yamlfiles in thedocker-composescript for user-specific customizations that survivebin/update. PR #1397
Changed
- Default install changed from Magento Open Source 2.4.8-p3 to Mage-OS 3.0.0. The onelinesetup script,
bin/download, and README install instructions now default tomageos 3.0.0. Passcommunity 2.4.9(or another edition/version pair) explicitly to install Adobe Commerce / Magento Open Source. PR #1434 - Xdebug now runs in a dedicated
phpfpm-xdebugcontainer. Nginx routes requests to it whenever theXDEBUG_SESSIONcookie is set; all other requests hit the mainphpfpmcontainer, which no longer loads the Xdebug extension. Removes the always-on Xdebug performance cost and eliminates the need to toggle modes via CLI. - PHP image Dockerfiles (8.1, 8.2, 8.3, 8.4) refactored into multi-stage builds with
base(no Xdebug) andxdebugtargets, sharing a single set of config files. The xdebug stagesed-overrides the FPMlistensocket at build time so both containers can run side-by-side without collision. - FPM socket paths renamed from
/sock/docker.sockto/sock/phpfpm.sock(and/sock/phpfpm-xdebug.sockfor the Xdebug container) for clarity. - New PHP image tags (base and xdebug share the same revision number per version):
8.1-fpm-9/8.1-fpm-xdebug-9,8.2-fpm-9/8.2-fpm-xdebug-9,8.3-fpm-7/8.3-fpm-xdebug-7,8.4-fpm-2/8.4-fpm-xdebug-2,8.5-fpm-0/8.5-fpm-xdebug-0. - Composer bumped to
2.9.8(from2.8.6) in PHP 8.2, 8.3, 8.4, and 8.5 images. Meets the Magento 2.4.9 minimum (Composer 2.9.3+) and addresses the security advisory referenced in #1425. PHP 8.1 retains Composer 2.7.9 (image is frozen — PHP 8.1 reached EOL on 2025-12-31). - Bundled PECL extensions refreshed across PHP 8.2/8.3/8.4/8.5 images:
redis 6.2.0→6.3.0,ssh2 1.4.1→1.5.0,swoole 6.0.2→6.2.1,imagick 3.8.0RC2→3.8.1(RC → GA),xdebug 3.4.2→3.5.1.php-spxbumped fromv0.4.18tov0.4.22. PHP 8.1 unchanged. - Node.js apt repository bumped from
setup_22.xtosetup_24.xin PHP 8.2/8.3/8.4/8.5 images. Node.js 24 is the active LTS (since November 2025) and replaces the now-Maintenance Node.js 22 line. PHP 8.1 unchanged. - PHP 8.5 image omits
docker-php-ext-install opcachebecause PHP 8.5 ships Zend OPcache statically linked in the official base image; the install becomes a no-op and fails with "modules/* missing". - Default PHP image in
compose/compose.yamlmoved from8.3-fpm-4to8.4-fpm-2(and the matching-xdebug-2). Tracks the supported-versions window: Magento 2.4.9 → PHP 8.5, Magento 2.4.7/2.4.8 → PHP 8.2/8.3/8.4. PHP 8.4 is the latest version with active upstream support. - Default nginx image in
compose/compose.yamlmoved from1.24-0to1.28-0. Matches Adobe Commerce system requirements for 2.4.7/2.4.8/2.4.9. - Default OpenSearch image in
compose/compose.yamlmoved from2.12-0to3-0. OpenSearch 3 is required by 2.4.9 / 2.4.8-p5+ and supported by 2.4.7-p10+ — follows the "current Magento + one back" default-support policy. - Default RabbitMQ image in
compose/compose.yamlmoved from4.1-0to4.2-0. - nginx
default.confupdated across the1.24-1,1.26-0, and1.28-0images to define two upstreams (fastcgi_phpfpm,fastcgi_phpfpm_xdebug) and amap $cookie_XDEBUG_SESSION $fastcgi_backendblock for cookie-based routing into the newphpfpm-xdebugcontainer. bin/debug-clisimplified toexec phpfpm-xdebug "$@"— a drop-in replacement forbin/cliwhen Xdebug is needed.bin/test/unit-xdebugandbin/test/unit-coverageupdated to route throughbin/debug-cliso the Xdebug extension is available.binscripts now source env files relative to the script path rather than the caller's working directory, so they work correctly when invoked from any subdirectory. PR #1403- Copy scripts (
bin/copyfromcontainer,bin/copytocontainer) refactored to resolve the container ID once and reuse it, removing redundantdocker pslookups. PR #1410 - Standardized all
binscript shebangs to#!/usr/bin/env bashfor consistent behavior across environments. PR #1409 bin/setupnow disables the Magento admin password expiration and runssetup:upgradein the correct order around sample data installation so sample data activates reliably. PR #1393, PR #1402
Fixed
- Set the executable flag on
bin/docker-startandbin/initso they run without an explicitbashprefix on fresh checkouts. PR #1395, PR #1400
Removed
bin/xdebugis no longer functional. It now prints a short deprecation message pointing to the new workflow and exits non-zero.- Legacy
xdebug.*directives stripped from basephp.iniin PHP 8.1, 8.2, and 8.4 images (8.3 was already clean). Xdebug configuration now lives exclusively inimages/php/8.X/conf/php-xdebug.ini, copied only into thexdebugbuild stage.
Documentation
- Documented multi-storefront / multi-domain setup. PR #1431
- Refreshed stale Blackfire setup instructions. PR #1429, #1336
- Documented MariaDB as the default database in the README. PR #1427
- Updated the Composer Auth DevDoc link in the README. PR #1412
- Added Mappia to the "In the Wild" section of the README. PR #1398
CI
- Hardened GitHub Actions workflows (pinned permissions, removed implicit write access).
- Removed obsolete GitHub workflow that was generating noise. PR #1418, #1417
- Dependabot bumps:
actions/checkout4→6 (#1391),docker/login-action3→4 (#1419),docker/setup-buildx-action3→4 (#1420),docker/build-push-action6→7 (#1421),docker/setup-qemu-action3→4 (#1422).