{"id":13563548,"url":"https://github.com/markshust/docker-magento","last_synced_at":"2025-04-11T05:13:38.801Z","repository":{"id":37470767,"uuid":"44771822","full_name":"markshust/docker-magento","owner":"markshust","description":"Mark Shust's Docker Configuration for Magento","archived":false,"fork":false,"pushed_at":"2025-04-08T11:43:09.000Z","size":1407,"stargazers_count":2685,"open_issues_count":15,"forks_count":1025,"subscribers_count":72,"default_branch":"release/next","last_synced_at":"2025-04-11T05:13:34.374Z","etag":null,"topics":["docker","docker-compose","docker-magento","hacktoberfest","magento","magento-2","magento2"],"latest_commit_sha":null,"homepage":"https://m.academy/courses/set-up-magento-2-development-environment-docker/","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/markshust.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"markshust"}},"created_at":"2015-10-22T20:36:53.000Z","updated_at":"2025-04-10T13:23:09.000Z","dependencies_parsed_at":"2023-02-15T03:02:01.627Z","dependency_job_id":"7e06df82-323b-4233-9e00-92ba457e8a06","html_url":"https://github.com/markshust/docker-magento","commit_stats":null,"previous_names":["mageinferno/magento2-docker-compose"],"tags_count":106,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markshust%2Fdocker-magento","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markshust%2Fdocker-magento/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markshust%2Fdocker-magento/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markshust%2Fdocker-magento/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/markshust","download_url":"https://codeload.github.com/markshust/docker-magento/tar.gz/refs/heads/release/next","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248345268,"owners_count":21088245,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","docker-compose","docker-magento","hacktoberfest","magento","magento-2","magento2"],"created_at":"2024-08-01T13:01:20.475Z","updated_at":"2025-04-11T05:13:38.788Z","avatar_url":"https://github.com/markshust.png","language":"Shell","readme":"\u003ch1 align=\"center\"\u003emarkshust/docker-magento\u003c/h1\u003e\n\n\u003cdiv align=\"center\"\u003e\n  \u003cp\u003eMark Shust's Docker Configuration for Magento\u003c/p\u003e\n  \u003cimg src=\"https://img.shields.io/badge/magento-2.X-brightgreen.svg?logo=magento\u0026longCache=true\" alt=\"Supported Magento Versions\" /\u003e\n  \u003ca href=\"https://hub.docker.com/r/markoshust/magento-php/\" target=\"_blank\"\u003e\u003cimg src=\"https://img.shields.io/docker/pulls/markoshust/magento-php.svg?label=php%20docker%20pulls\" alt=\"Docker Hub Pulls - PHP\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://hub.docker.com/r/markoshust/magento-nginx/\" target=\"_blank\"\u003e\u003cimg src=\"https://img.shields.io/docker/pulls/markoshust/magento-nginx.svg?label=nginx%20docker%20pulls\" alt=\"Docker Hub Pulls - Nginx\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/markshust/docker-magento/graphs/commit-activity\" target=\"_blank\"\u003e\u003cimg src=\"https://img.shields.io/badge/maintained%3F-yes-brightgreen.svg\" alt=\"Maintained - Yes\" /\u003e\u003c/a\u003e\n  \u003cimg src=\"https://img.shields.io/badge/apple%20silicon%20support-yes-brightgreen\" alt=\"Apple Silicon Support\" /\u003e\n  \u003ca href=\"https://opensource.org/licenses/MIT\" target=\"_blank\"\u003e\u003cimg src=\"https://img.shields.io/badge/license-MIT-blue.svg\" /\u003e\u003c/a\u003e\n\u003c/div\u003e\n\n## Table of contents\n\n- [Docker Hub](#docker-hub)\n- [Free Course](#free-course)\n- [Usage](#usage)\n- [Prerequisites](#prerequisites)\n- [Setup](#setup)\n- [Updates](#updates)\n- [Custom CLI Commands](#custom-cli-commands)\n- [Misc Info](#misc-info)\n- [Known Issues](#known-issues)\n- [Credits](#credits)\n- [License](#license)\n\n## Docker Hub\n\nView Dockerfiles for the latest tags:\n\n- [markoshust/magento-nginx (Docker Hub)](https://hub.docker.com/r/markoshust/magento-nginx/)\n  - [`1.18`, `1.18-8`](images/nginx/1.18)\n  - [`1.22`, `1.22-0`](images/nginx/1.22)\n  - [`1.24`, `1.24-0`](images/nginx/1.24)\n- [markoshust/magento-php (Docker Hub)](https://hub.docker.com/r/markoshust/magento-php/)\n  - [`8.1-fpm`, `8.1-fpm-7`](images/php/8.1)\n  - [`8.2-fpm`, `8.2-fpm-6`](images/php/8.2)\n  - [`8.3-fpm`, `8.3-fpm-4`](images/php/8.3)\n  - [`8.4-fpm-dev`](images/php/8.4)\n- [markoshust/magento-opensearch (Docker Hub)](https://hub.docker.com/r/markoshust/magento-opensearch/)\n  - [`1.2`, `1.2-0`](images/opensearch/1.2)\n  - [`2.5`, `2.5-1`](images/opensearch/2.5)\n  - [`2.12`, `2.12-0`](images/opensearch/2.12)\n- [markoshust/magento-elasticsearch (Docker Hub)](https://hub.docker.com/r/markoshust/magento-elasticsearch/)\n  - [`7.16`, `7.16-0`](images/elasticsearch/7.16)\n  - [`7.17`, `7.17-1`](images/elasticsearch/7.17)\n  - [`8.4`, `8.4-0`](images/elasticsearch/8.4)\n  - [`8.5`, `8.5-0`](images/elasticsearch/8.5)\n  - [`8.7`, `8.7-0`](images/elasticsearch/8.7)\n  - [`8.11`, `8.11-0`](images/elasticsearch/8.11)\n  - [`8.13`, `8.13-0`](images/elasticsearch/8.13)\n- [markoshust/magento-rabbitmq (Docker Hub)](https://hub.docker.com/r/markoshust/magento-rabbitmq/)\n  - [`3.8`, `3.8-0`](images/rabbitmq/3.8)\n  - [`3.9`, `3.9-0`](images/rabbitmq/3.9)\n  - [`3.11`, `3.11-1`](images/rabbitmq/3.11)\n  - [`3.12`, `3.12-0`](images/rabbitmq/3.12)\n- [markoshust/ssh (Docker Hub)](https://hub.docker.com/r/markoshust/magento-ssh/)\n  - [`latest`](images/ssh)\n\n## Free Course\n\nThis course is sponsored by \u003ca href=\"https://m.academy\" target=\"_blank\"\u003eM.academy\u003c/a\u003e, the simplest way to learn Magento.\n\n\u003ca href=\"https://m.academy\" target=\"_blank\"\u003e\u003cimg src=\"docs/macademy-logo.png\" alt=\"M.academy\"\u003e\u003c/a\u003e\n\nA free screencast course is available (which was fully refreshed in December 2021), which details the basic usage of this project:\n\n\u003ca href=\"https://m.academy/courses/set-up-magento-2-development-environment-docker\" target=\"_blank\"\u003e\n\u003cimg src=\"docs/set-up-magento-2-development-environment-docker-og.png\" alt=\"Set Up a Magento 2 Development Environment with Docker\" width=\"400\"\u003e\u003cbr/\u003e\nSet Up a Magento 2 Development Environment with Docker\n\u003c/a\u003e\n\n### Course Curriculum\n\n#### Intro\n\n- \u003ca href=\"https://courses.m.academy/courses/set-up-magento-2-development-environment-docker/lectures/36738848\" target=\"_blank\"\u003eQuick hi \u0026 welcome from Mark!\u003c/a\u003e\n- \u003ca href=\"https://courses.m.academy/courses/set-up-magento-2-development-environment-docker/lectures/36738860\" target=\"_blank\"\u003eAbout the course format\u003c/a\u003e\n\n#### Initial Project Setup\n\n- \u003ca href=\"https://courses.m.academy/courses/set-up-magento-2-development-environment-docker/lectures/9205849\" target=\"_blank\"\u003eInstall Docker Desktop \u0026 configure preferences\u003c/a\u003e\n- \u003ca href=\"https://courses.m.academy/courses/set-up-magento-2-development-environment-docker/lectures/8974570\" target=\"_blank\"\u003eSet up Magento with the automated onelinesetup script\u003c/a\u003e\n- \u003ca href=\"https://courses.m.academy/courses/set-up-magento-2-development-environment-docker/lectures/9064259\" target=\"_blank\"\u003eSet up Magento manually from a custom Git branch\u003c/a\u003e\n- \u003ca href=\"https://courses.m.academy/courses/set-up-magento-2-development-environment-docker/lectures/9283467\" target=\"_blank\"\u003eSet up Docker for an existing Magento project\u003c/a\u003e\n\n#### The Basics of docker-magento\n\n- \u003ca href=\"https://courses.m.academy/courses/set-up-magento-2-development-environment-docker/lectures/9064258\" target=\"_blank\"\u003eExecute docker-magento helper scripts\u003c/a\u003e\n- \u003ca href=\"https://courses.m.academy/courses/set-up-magento-2-development-environment-docker/lectures/9331008\" target=\"_blank\"\u003eStart, stop, restart and check container status\u003c/a\u003e\n- \u003ca href=\"https://courses.m.academy/courses/set-up-magento-2-development-environment-docker/lectures/9064269\" target=\"_blank\"\u003eExecute bin/magento and composer within Docker containers\u003c/a\u003e\n- \u003ca href=\"https://courses.m.academy/courses/set-up-magento-2-development-environment-docker/lectures/36150902\" target=\"_blank\"\u003eInstall Magento sample data\u003c/a\u003e\n\n#### Docker Filesystem \u0026 Data Volumes\n\n- \u003ca href=\"https://courses.m.academy/courses/set-up-magento-2-development-environment-docker/lectures/9064334\" target=\"_blank\"\u003eUnderstand Docker volumes \u0026 host bind mounts\u003c/a\u003e\n- \u003ca href=\"https://courses.m.academy/courses/set-up-magento-2-development-environment-docker/lectures/9064338\" target=\"_blank\"\u003eManage files \u0026 folders within Docker containers\u003c/a\u003e\n\n#### PhpStorm\n\n- \u003ca href=\"https://courses.m.academy/courses/set-up-magento-2-development-environment-docker/lectures/9748834\" target=\"_blank\"\u003eSet up a docker-magento project in PhpStorm\u003c/a\u003e\n- \u003ca href=\"https://courses.m.academy/courses/set-up-magento-2-development-environment-docker/lectures/9763893\" target=\"_blank\"\u003eSet up the Magento PhpStorm plugin\u003c/a\u003e\n\n#### Code Quality Tools\n\n- \u003ca href=\"https://courses.m.academy/courses/set-up-magento-2-development-environment-docker/lectures/52640115\" target=\"_blank\"\u003eConfigure PHPCS (PHP CodeSniffer) for Magento\u003c/a\u003e\n- \u003ca href=\"https://courses.m.academy/courses/set-up-magento-2-development-environment-docker/lectures/52642491\" target=\"_blank\"\u003eConfigure PHPCSF (PHP CodeSniffer Fixer) for Magento\u003c/a\u003e\n- \u003ca href=\"https://courses.m.academy/courses/set-up-magento-2-development-environment-docker/lectures/52643314\" target=\"_blank\"\u003eConfigure PHPMD (PHP Mess Detector) for Magento\u003c/a\u003e\n\n#### Xdebug\n\n- \u003ca href=\"https://courses.m.academy/courses/set-up-magento-2-development-environment-docker/lectures/9064478\" target=\"_blank\"\u003eInstall the Xdebug helper browser plugin for Chrome \u0026 PhpStorm\u003c/a\u003e\n- \u003ca href=\"https://courses.m.academy/courses/set-up-magento-2-development-environment-docker/lectures/9064482\" target=\"_blank\"\u003eEnable disable check the status of Xdebug\u003c/a\u003e\n- \u003ca href=\"https://courses.m.academy/courses/set-up-magento-2-development-environment-docker/lectures/9064615\" target=\"_blank\"\u003eConfigure PhpStorm for Xdebug connections\u003c/a\u003e\n- \u003ca href=\"https://courses.m.academy/courses/set-up-magento-2-development-environment-docker/lectures/9064617\" target=\"_blank\"\u003eTrigger an Xdebug breakpoint in PhpStorm\u003c/a\u003e\n- \u003ca href=\"https://courses.m.academy/courses/set-up-magento-2-development-environment-docker/lectures/36677538\" target=\"_blank\"\u003eTrigger an Xdebug breakpoint for CLI commands in PhpStorm\u003c/a\u003e\n\n#### Customize Server Configurations\n\n- \u003ca href=\"https://courses.m.academy/courses/set-up-magento-2-development-environment-docker/lectures/36702830\" target=\"_blank\"\u003eUnderstand the docker-compose application structure\u003c/a\u003e\n- \u003ca href=\"https://courses.m.academy/courses/set-up-magento-2-development-environment-docker/lectures/36702861\" target=\"_blank\"\u003eIncrease the PHP memory limit in php.ini\u003c/a\u003e\n- \u003ca href=\"https://courses.m.academy/courses/set-up-magento-2-development-environment-docker/lectures/9064349\" target=\"_blank\"\u003eIncrease the Nginx request timeout in nginx.conf\u003c/a\u003e\n- \u003ca href=\"https://courses.m.academy/courses/set-up-magento-2-development-environment-docker/lectures/36703258\" target=\"_blank\"\u003eIncrease the MySQL buffer pool size with command or in my.cnf\u003c/a\u003e\n- \u003ca href=\"https://courses.m.academy/courses/set-up-magento-2-development-environment-docker/lectures/9064350\" target=\"_blank\"\u003eInstall a new PHP extension by building a custom Docker image\u003c/a\u003e\n- \u003ca href=\"https://courses.m.academy/courses/set-up-magento-2-development-environment-docker/lectures/14780970\" target=\"_blank\"\u003eConfigure multi-store instances in Docker with Nginx\u003c/a\u003e\n\n## Usage\n\nThis configuration is intended to be used as a Docker-based development environment for Magento 2.\n\nFolders:\n\n- `images`: Docker images for nginx and php\n- `compose`: sample setups with Docker Compose\n\n\u003e The Magento 1 version of this development environment has been deprecated and is no longer supported. PHP 5 was used as it's base, and that version has reached end-of-life. If you still wish to use this setup, please reference [compose/magento-1 on tag 20.1.1](https://github.com/markshust/docker-magento/tree/20.1.1/compose/magento-1), but please be aware these images are no longer maintained.\n\n## Prerequisites\n\nThis setup assumes you are running Docker on a computer with at least 6GB of RAM allocated to Docker, a dual-core, and an SSD hard drive. [Download \u0026 Install Docker Desktop](https://www.docker.com/products/docker-desktop).\n\nThis configuration has been tested on Mac \u0026 Linux. Windows is supported through the use of Docker on WSL.\n\n## Setup\n\n### Automated Setup (New Project)\n\n```bash\n# Create your project directory then go into it:\nmkdir -p ~/Sites/magento\ncd $_\n\n# Run this automated one-liner from the directory you want to install your project.\ncurl -s https://raw.githubusercontent.com/markshust/docker-magento/master/lib/onelinesetup | bash -s -- magento.test community 2.4.8\n```\n\nThe `magento.test` above defines the hostname to use, `community` is the Magento edition, and the `2.4.8` defines the Magento version to install. Note that since we need a write to `/etc/hosts` for DNS resolution, you will be prompted for your system password during setup.\n\nAfter the one-liner above completes running, you should be able to access your site at `https://magento.test`.\n\n#### Install sample data\n\nAfter the above installation is complete, run the following lines to install sample data:\n\n```bash\nbin/magento sampledata:deploy\nbin/magento setup:upgrade\n```\n\n### Manual Setup\n\nSame result as the one-liner above. Just replace `magento.test` references with the hostname that you wish to use.\n\n#### New Projects\n\n```bash\n# Create your project directory then go into it:\nmkdir -p ~/Sites/magento\ncd $_\n\n# Download the Docker Compose template:\ncurl -s https://raw.githubusercontent.com/markshust/docker-magento/master/lib/template | bash\n\n# Download the version of Magento you want to use with:\nbin/download community 2.4.8\n# You can specify the edition (community, enterprise, mageos) and version (2.4.7-p3, 1.0.5, etc.)\n# If no arguments are passed in, the edition defaults to \"community\"\n# If no version is specified, it defaults to the most recent version defined in `bin/download`\n\n# or for Magento core development:\n# bin/start --no-dev\n# bin/setup-composer-auth\n# bin/cli git clone git@github.com:magento/magento2.git .\n# bin/cli git checkout 2.4-develop\n# bin/composer install\n\n# Run the setup installer for Magento:\nbin/setup magento.test\n\nopen https://magento.test\n```\n\n#### Existing Projects\n\n```bash\n# Create your project directory then go into it:\nmkdir -p ~/Sites/magento\ncd $_\n\n# Download the Docker Compose template:\ncurl -s https://raw.githubusercontent.com/markshust/docker-magento/master/lib/template | bash\n\n# Take a backup of your existing database:\nbin/mysqldump \u003e ~/Sites/existing/magento.sql\n\n# Replace with existing source code of your existing Magento instance:\ncp -R ~/Sites/existing src\n# or: git clone git@github.com:myrepo.git src\n\n# Start some containers, copy files to them and then restart the containers:\nbin/start --no-dev\nbin/copytocontainer --all ## Initial copy will take a few minutes...\n\n# If your vendor directory was empty, populate it with:\nbin/composer install\n\n# Import existing database:\nbin/mysql \u003c ../existing/magento.sql\n\n# Update database connection details to use the above Docker MySQL credentials:\n# Also note: creds for the MySQL server are defined at startup from env/db.env\n# vi src/app/etc/env.php\n\n# Import app-specific environment settings:\nbin/magento app:config:import\n\n# Create a DNS host entry and setup Magento base url\nbin/setup-domain yoursite.test\n\nbin/restart\n\nopen https://magento.test\n```\n\n### Elasticsearch vs OpenSearch\nOpenSearch is set as the default search engine when setting up this project. Follow the instructions below if you want to use Elasticsearch instead:\n1. Comment out or remove the `opensearch` container in both the [`compose.yaml`](https://github.com/markshust/docker-magento/blob/master/compose/compose.yaml#L69-L84) and [`compose.healthcheck.yaml`](https://github.com/markshust/docker-magento/blob/master/compose/compose.healthcheck.yaml#L36-L41) files\n2. Uncomment the `elasticsearch` container in both the [`compose.yaml`](https://github.com/markshust/docker-magento/blob/master/compose/compose.yaml#L86-L106) and [`compose.healthcheck.yaml`](https://github.com/markshust/docker-magento/blob/master/compose/compose.healthcheck.yaml#L43-L48) files\n3. Update the `bin/setup-install` command to use the Elasticsearch rather than OpenSearch. Change:\n\n```\n--opensearch-host=\"$OPENSEARCH_HOST\" \\\n--opensearch-port=\"$OPENSEARCH_PORT\" \\\n```\n\nto:\n\n```\n--elasticsearch-host=\"$ES_HOST\" \\\n--elasticsearch-port=\"$ES_PORT\" \\\n\n```\n\n## Updates\n\nTo update your project to the latest version of `docker-magento`, run:\n\n```\nbin/update\n```\n\nWe recommend keeping your docker config files in version control, so you can monitor the changes to files after updates. After reviewing the code updates and ensuring they updated as intended, run `bin/restart` to restart your containers to have the new configuration take effect.\n\nIt is recommended to keep your root docker config files in one repository, and your Magento code setup in another. This ensures the Magento base path lives at the top of one specific repository, which makes automated build pipelines and deployments easy to manage, and maintains compatibility with projects such as Magento Cloud.\n\n## Custom CLI Commands\n\n- `bin/analyse`: Run `phpstan analyse` within the container to statically analyse code, passing in directory to analyse. Ex. `bin/analyse app/code`\n- `bin/bash`: Drop into the bash prompt of your Docker container. The `phpfpm` container should be mainly used to access the filesystem within Docker.\n- `bin/blackfire`: Disable or enable Blackfire. Accepts argument `disable`, `enable`, or `status`. Ex. `bin/blackfire enable`\n- `bin/cache-clean`: Access the [cache-clean](https://github.com/mage2tv/magento-cache-clean) CLI. Note the watcher is automatically started at startup in `bin/start`. Ex. `bin/cache-clean config full_page`\n- `bin/check-dependencies`: Provides helpful recommendations for dependencies tailored to the chosen Magento version.\n- `bin/cli`: Run any CLI command without going into the bash prompt. Ex. `bin/cli ls`\n- `bin/clinotty`: Run any CLI command with no TTY. Ex. `bin/clinotty chmod u+x bin/magento`\n- `bin/cliq`: The same as `bin/cli`, but pipes all output to `/dev/null`. Useful for a quiet CLI, or implementing long-running processes.\n- `bin/composer`: Run the composer binary. Ex. `bin/composer install`\n- `bin/configure-linux`: Adds the Docker container's IP address to the system's `/etc/hosts` file if it's not already present. Additionally, it prompts the user to open port 9003 for Xdebug if desired.\n- `bin/copyfromcontainer`: Copy folders or files from container to host. Ex. `bin/copyfromcontainer vendor`\n- `bin/copytocontainer`: Copy folders or files from host to container. Ex. `bin/copytocontainer --all`\n- `bin/create-user`: Create either an admin user or customer account.\n- `bin/cron`: Start or stop the cron service. Ex. `bin/cron start`\n- `bin/debug-cli`: Enable Xdebug for bin/magento, with an optional argument of the IDE key. Defaults to PHPSTORM Ex. `bin/debug-cli enable PHPSTORM`\n- `bin/deploy`: Runs the standard Magento deployment process commands. Pass extra locales besides `en_US` via an optional argument. Ex. `bin/deploy nl_NL`\n- `bin/dev-test-run`: Facilitates running PHPUnit tests for a specified test type (e.g., integration). It expects the test type as the first argument and passes any additional arguments to PHPUnit, allowing for customization of test runs. If no test type is provided, it prompts the user to specify one before exiting.\n- `bin/dev-urn-catalog-generate`: Generate URN's for PhpStorm and remap paths to local host. Restart PhpStorm after running this command.\n- `bin/devconsole`: Alias for `bin/n98-magerun2 dev:console`\n- `bin/docker-compose`: Support V1 (`docker-compose`) and V2 (`docker compose`) docker compose command, and use custom configuration files, such as `compose.yml` and `compose.dev.yml`\n- `bin/docker-start`: Start the Docker application (either Orbstack or Docker Desktop)\n- `bin/docker-stats`: Display container name and container ID, status for CPU, memory usage(in MiB and %), and memory limit of currently-running Docker containers.\n- `bin/download`: Download specific Magento version from Composer to the container, with optional arguments of the type (\"community\" [default], \"enterprise\", or \"mageos\") and version ([default] is defined in `bin/download`). Ex. `bin/download mageos` or `bin/download enterprise 2.4.8`\n- `bin/ece-patches`: Run the Cloud Patches CLI. Ex: `bin/ece-tools apply`\n- `bin/fixowns`: This will fix filesystem ownerships within the container.\n- `bin/fixperms`: This will fix filesystem permissions within the container.\n- `bin/grunt`: Run the grunt binary. Ex. `bin/grunt exec`\n- `bin/install-php-extensions`: Install PHP extension in the container. Ex. `bin/install-php-extensions sourceguardian`\n- `bin/log`: Monitor the Magento log files. Pass no params to tail all files. Ex. `bin/log debug.log`\n- `bin/magento`: Run the Magento CLI. Ex: `bin/magento cache:flush`\n- `bin/magento-version`: Determine the Magento version installed in the current environment.\n- `bin/mftf`: Run the Magento MFTF. Ex: `bin/mftf build:project`\n- `bin/mysql`: Run the MySQL CLI with database config from `env/db.env`. Ex. `bin/mysql -e \"EXPLAIN core_config_data\"` or`bin/mysql \u003c magento.sql`\n- `bin/mysqldump`: Backup the Magento database. Ex. `bin/mysqldump \u003e magento.sql`\n- `bin/n98-magerun2`: Access the [n98-magerun2](https://github.com/netz98/n98-magerun2) CLI. Ex: `bin/n98-magerun2 dev:console`\n- `bin/node`: Run the node binary. Ex. `bin/node --version`\n- `bin/npm`: Run the npm binary. Ex. `bin/npm install`\n- `bin/phpcbf`: Auto-fix PHP_CodeSniffer errors with Magento2 options. Ex. `bin/phpcbf \u003cpath-to-extension\u003e`\n- `bin/phpcs`: Run PHP_CodeSniffer with Magento2 options. Ex. `bin/phpcs \u003cpath-to-extension\u003e`\n- `bin/phpcs-json-report`: Run PHP_CodeSniffer with Magento2 options and save to `report.json` file. Ex. `bin/phpcs-json-report \u003cpath-to-extension\u003e`\n- `bin/pwa-studio`: (BETA) Start the PWA Studio server. Note that Chrome will throw SSL cert errors and not allow you to view the site, but Firefox will.\n- `bin/redis`: Run a command from the redis container. Ex. `bin/redis redis-cli monitor`\n- `bin/remove`: Remove all containers.\n- `bin/removeall`: Remove all containers, networks, volumes, and images, calling `bin/stopall` before doing so.\n- `bin/removenetwork`: Remove a network associated with the current directory's name.\n- `bin/removevolumes`: Remove all volumes.\n- `bin/restart`: Stop and then start all containers.\n- `bin/root`: Run any CLI command as root without going into the bash prompt. Ex `bin/root apt-get install nano`\n- `bin/rootnotty`: Run any CLI command as root with no TTY. Ex `bin/rootnotty chown -R app:app /var/www/html`\n- `bin/setup`: Run the Magento setup process to install Magento from the source code, with optional domain name. Defaults to `magento.test`. Ex. `bin/setup magento.test`\n- `bin/setup-composer-auth`: Setup authentication credentials for Composer.\n- `bin/setup-domain`: Setup Magento domain name. Ex: `bin/setup-domain magento.test`\n- `bin/setup-grunt`: Install and configure Grunt JavaScript task runner to compile .less files\n- `bin/setup-install`: Automates the installation process for a Magento instance.\n- `bin/setup-integration-tests`: Script to set up integration tests.\n- `bin/setup-pwa-studio`: (BETA) Install PWA Studio (requires NodeJS and Yarn to be installed on the host machine). Pass in your base site domain, otherwise the default `master-7rqtwti-mfwmkrjfqvbjk.us-4.magentosite.cloud` will be used. Ex: `bin/setup-pwa-studio magento.test`.\n- `bin/setup-pwa-studio-sampledata`: This script makes it easier to install Venia sample data. Pass in your base site domain, otherwise the default `master-7rqtwti-mfwmkrjfqvbjk.us-4.magentosite.cloud` will be used. Ex: `bin/setup-pwa-studio-sampledata magento.test`.\n- `bin/setup-ssl`: Generate an SSL certificate for one or more domains. Ex. `bin/setup-ssl magento.test foo.test`\n- `bin/setup-ssl-ca`: Generate a certificate authority and copy it to the host.\n- `bin/spx`: Disable or enable output compression to enable or disable SPX. Accepts params `disable` (default) or `enable`. Ex. `bin/spx enable`\n- `bin/start`: Start all containers, good practice to use this instead of `docker-compose up -d`, as it may contain additional helpers.\n- `bin/status`: Check the container status.\n- `bin/stop`: Stop all project containers.\n- `bin/stopall`: Stop all docker running containers\n- `bin/test/unit`: Run unit tests for a specific path. Ex. `bin/test/unit my-dir`\n- `bin/test/unit-coverage`: Generate unit tests coverage reports, saved to the folder `dev/tests/unit/report`. Ex. `bin/test/unit-coverage my-dir`\n- `bin/test/unit-xdebug`: Run unit tests with Xdebug. Ex. `bin/test/unit-xdebug my-dir`\n- `bin/update`: Update your project to the most recent version of `docker-magento`.\n- `bin/xdebug`: Set a custom xdebug.mode (Ex. `bin/xdebug debug`) or check the current status and get all available modes (Ex. `bin/xdebug`)\n\n## Misc Info\n\n### Install fails because project directory is not empty\n\nThe most common issue with a failed docker-magento install is getting this error:\n\n```\nProject directory \"/var/www/html/.\" is not empty error\n```\n\nThis message occurs when _something_ fails to execute correctly during an install, and a subsequent install is re-attempted. Unfortunately, when attempting a second (or third) install, it's possible the `src` directory is no longer empty. This prevents Composer from creating the new project because it needs to create new projects within an empty directory.\n\nThe workaround to this is that once you have fixed the issue that was initially preventing your install from completing, you will need to completely remove the assets from the previously attempted install before attempting a subsequent install.\n\nYou can do this by running:\n\n```\nbin/removeall\ncd ..\nrm -rf yourproject\n```\n\nThen, create your new project directory again so you can attempt the install process again. The `bin/removeall` command removes all previous Docker containers \u0026 volumes related to the specific project directory you are within. You can then attempt the install process again.\n\n### Accessing the Magento Backend\n\nAfter successfully installing the Magento environment, you can access the backend by following these steps:\n\n1. Open your web browser and go to the following URL: `https://magento.test/admin/`.\n\n2. Use the following default credentials to log in:\n- **Username:** `john.smith`\n- **Password:** `password123`\n\n3. Upon logging in, you might be prompted to configure Two-Factor Authentication (2FA). This emails you a code to log in with (which you can check with Mailcatcher by visiting `http://{yourdomain}:1080`). By default, the email address used for this purpose is:\n- **Email:** `john.smith@gmail.com`\n\nIf you are testing in a local development environment and wish to disable 2FA, you can do so by installing [Mark's DisableTwoFactorAuth module](https://github.com/markshust/magento2-module-disabletwofactorauth).\n\n### Caching\n\nFor an improved developer experience, caches are automatically refreshed when related files are updated, courtesy of [cache-clean](https://github.com/mage2tv/magento-cache-clean). This means you can keep all of the standard Magento caches enabled, and this script will only clear the specific caches needed, and only when necessary.\n\nTo disable this functionality, uncomment the last line in the `bin/start` file to disable the watcher.\n\n### Database\n\nThe hostname of each service is the name of the service within the `compose.yaml` file. So for example, MySQL's hostname is `db` (not `localhost`) when accessing it from within a Docker container. Elasticsearch's hostname is `elasticsearch`.\n\nTo connect to the MySQL CLI tool of the Docker instance, run:\n\n```\nbin/mysql\n```\n\nYou can use the `bin/mysql` script to import a database, for example a file stored in your local host directory at `magento.sql`:\n\n```\nbin/mysql \u003c magento.sql\n```\n\nYou also can use `bin/mysqldump` to export the database. The file will appear in your local host directory at `magento.sql`:\n\n```\nbin/mysqldump \u003e magento.sql\n```\n\n\u003e Getting an \"Access denied, you need (at least one of) the SUPER privilege(s) for this operation.\" message when running one of the above lines? Try running it as root with:\n\u003e ```\n\u003e bin/clinotty mysql -hdb -uroot -pmagento magento \u003c src/backup.sql\n\u003e ```\n\u003e You can also remove the DEFINER lines from the MySQL backup file with:\n\u003e ```\n\u003e sed 's/\\sDEFINER=`[^`]*`@`[^`]*`//g' -i src/backup.sql\n\u003e ```\n\n### Composer Authentication\n\nFirst setup Magento Marketplace authentication (details in the [DevDocs](http://devdocs.magento.com/guides/v2.0/install-gde/prereq/connect-auth.html)).\n\nCopy `src/auth.json.sample` to `src/auth.json`. Then, update the username and password values with your Magento public and private keys, respectively. Finally, copy the file to the container by running `bin/copytocontainer auth.json`.\n\n### Email / Mailcatcher\n\nView emails sent locally through Mailcatcher by visiting [http://{yourdomain}:1080](http://{yourdomain}:1080). In order to use mailcatcher, set the mailserver host to `mailcatcher` and set port to `1025`. Note that this port (`1025`) is different from the mailcatcher interface to read the emails (`1080`).\n\n### Redis\n\nRedis is now the default cache and session storage engine, and is automatically configured \u0026 enabled when running `bin/setup` on new installs.\n\nUse the following lines to enable Redis on existing installs:\n\n**Enable for Cache:**\n\n`bin/magento setup:config:set --cache-backend=redis --cache-backend-redis-server=redis --cache-backend-redis-db=0`\n\n**Enable for Full Page Cache:**\n\n`bin/magento setup:config:set --page-cache=redis --page-cache-redis-server=redis --page-cache-redis-db=1`\n\n**Enable for Session:**\n\n`bin/magento setup:config:set --session-save=redis --session-save-redis-host=redis --session-save-redis-log-level=4 --session-save-redis-db=2`\n\nYou may also monitor Redis by running: `bin/redis redis-cli monitor`\n\nFor more information about Redis usage with Magento, \u003ca href=\"https://devdocs.magento.com/guides/v2.4/config-guide/redis/redis-session.html\" target=\"_blank\"\u003esee the DevDocs\u003c/a\u003e.\n\n### PhpMyAdmin\n\nPhpMyAdmin is built into the `compose.dev.yaml` file. Simply open `http://localhost:8080` in a web browser.\n\nThese credentials can be used to log in to PhpMyAdmin:\n\n- **Username:** `magento`\n- **Password:** `magento`\n\n### Xdebug \u0026 VS Code\n\nInstall and enable the PHP Debug extension from the [Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=felixfbecker.php-debug).\n\nOtherwise, this project now automatically sets up Xdebug support with VS Code. If you wish to set this up manually, please see the [`.vscode/launch.json`](https://github.com/markshust/docker-magento/blame/master/compose/.vscode/launch.json) file.\n\n### Xdebug \u0026 VS Code in a WSL2 environment\n\nInstall and enable the PHP Debug extension from the [Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=felixfbecker.php-debug).\n\nOtherwise, this project now automatically sets up Xdebug support with VS Code. If you wish to set this up manually, please see the [`.vscode/launch.json`](https://github.com/markshust/docker-magento/blame/master/compose/.vscode/launch.json) file.\n\n1. In VS Code, make sure that it's running in a WSL window, rather than in the default window.\n2. Install the [`PHP Debug`](https://marketplace.visualstudio.com/items?itemName=xdebug.php-debug) extension on VS Code.\n3. Create a new configuration file inside the project. Go to the `Run and Debug` section in VS Code, then click on `create a launch.json file`.\n4. Attention to the following configs inside the file:\n    * The port must be the same as the port on the xdebug.ini file.\n    ```bash\n      bin/cli cat /usr/local/etc/php/php.ini\n    ```\n    ```bash\n      memory_limit = 4G\n      max_execution_time = 1800\n      zlib.output_compression = On\n      cgi.fix_pathinfo = 0\n      date.timezone = UTC\n\n      xdebug.mode = debug\n      xdebug.client_host = host.docker.internal\n      xdebug.idekey = PHPSTORM\n      xdebug.client_port=9003\n      #You can uncomment the following line to force the debug with each request\n      #xdebug.start_with_request=yes\n\n      upload_max_filesize = 100M\n      post_max_size = 100M\n      max_input_vars = 10000\n    ```\n    * The pathMappings should have the same folder path as the project inside the Docker container.\n    ```json\n      {\n          \"version\": \"0.2.0\",\n          \"configurations\": [\n              {\n                  \"name\": \"Listen for XDebug\",\n                  \"type\": \"php\",\n                  \"request\": \"launch\",\n                  \"port\": 9003,\n                  \"pathMappings\": {\n                      \"/var/www/html\": \"${workspaceFolder}\"\n                  },\n                  \"hostname\": \"localhost\"\n              }\n          ]\n      }\n    ```\n5. Run the following command in the Windows Powershell. It allows WSL through the firewall, otherwise breakpoints might not be hitten.\n    ```powershell\n    New-NetFirewallRule -DisplayName \"WSL\" -Direction Inbound  -InterfaceAlias \"vEthernet (WSL)\"  -Action Allow\n    ```\n\n### Xdebug \u0026 PhpStorm\n\n1.  First, install the [Chrome Xdebug helper](https://chrome.google.com/webstore/detail/xdebug-helper/eadndfjplgieldjbigjakmdgkmoaaaoc). After installed, right click on the Chrome icon for it and go to Options. Under IDE Key, select PhpStorm from the list to set the IDE Key to \"PHPSTORM\", then click Save.\n\n2.  Next, enable Xdebug debugging in the PHP container by running: `bin/xdebug enable`.\n\n3.  Then, open `PhpStorm \u003e Preferences \u003e PHP` and configure:\n\n    * `CLI Interpreter`\n        * Create a new interpreter from the `From Docker, Vagrant, VM...` list.\n        * Select the Docker Compose option.\n        * For Server, select `Docker`. If you don't have Docker set up as a server, create one and name it `Docker`.\n        * For Configuration files, add both the `compose.yaml` and `compose.dev.yaml` files from your project directory.\n        * For Service, select `phpfpm`, then click OK.\n        * Name this CLI Interpreter `phpfpm`, then click OK again.\n\n    * `Path mappings`\n        * There is no need to define a path mapping in this area.\n\n4. Open `PhpStorm \u003e Preferences \u003e PHP \u003e Debug` and ensure Debug Port is set to `9000,9003`.\n\n5. Open `PhpStorm \u003e Preferences \u003e PHP \u003e Servers` and create a new server:\n\n    * For the Name, set this to the value of your domain name (ex. `magento.test`).\n    * For the Host, set this to the value of your domain name (ex. `magento.test`).\n    * Keep port set to `80`.\n    * Check the \"Use path mappings\" box and map `src` to the absolute path of `/var/www/html`.\n\n6. Go to `Run \u003e Edit Configurations` and create a new `PHP Remote Debug` configuration.\n\n    * Set the Name to the name of your domain (ex. `magento.test`).\n    * Check the `Filter debug connection by IDE key` checkbox, select the Server you just setup.\n    * For IDE key, enter `PHPSTORM`. This value should match the IDE Key value set by the Chrome Xdebug Helper.\n    * Click OK to finish setting up the remote debugger in PHPStorm.\n\n7. Open up `pub/index.php` and set a breakpoint near the end of the file.\n\n    * Start the debugger with `Run \u003e Debug 'magento.test'`, then open up a web browser.\n    * Ensure the Chrome Xdebug helper is enabled by clicking on it and selecting Debug. The icon should turn bright green.\n    * Navigate to your Magento store URL, and Xdebug should now trigger the debugger within PhpStorm at the toggled breakpoint.\n\n### SSH\n\nSince version `40.0.0`, this project supports connecting to Docker with SSH/SFTP. This means that if you solely use either PhpStorm or VSCode, you no longer need to selectively mount host volumes in order to gain bi-directional sync capabilities from host to container. This will enable full speed in the native filesystem, as all files will be stored directly in the `appdata` container volume, rather than being synced from the host. This is especially useful if you'd like to sync larger directories such as `generated`, `pub` \u0026 `vendor`.\n\nCopy `compose.dev-ssh.yaml` to `compose.dev.yaml` before installing Magento to take advantage of this setup. Then, create an SFTP connection at  Preferences -\u003e Build, Execution, Deployment -\u003e Deployment. Connect to `localhost` and use `app` for the username \u0026 password. You can set additional options for working with Magento in PhpStorm at Preferences -\u003e Build, Execution, Deployment -\u003e Deployment -\u003e Options.\n\nNote that you must use your IDE's SSH/SFTP functionality, otherwise changes will not be synced. To re-sync your host environment at any time, run:\n\n```\nbin/copyfromcontainer --all\n```\n\n### Linux\n\nRunning Docker on Linux should be pretty straight-forward. Note that you need to run some [post install commands](https://docs.docker.com/install/linux/linux-postinstall/) as well as [installing Docker Compose](https://docs.docker.com/compose/install/) before continuing. These steps are taken care of automatically with Docker Desktop, but not on Linux.\n\nCopy `compose.dev-linux.yaml` to `compose.dev.yaml` before installing Magento to take advantage of this setup.\n\n#### Install necessary dependencies\n\nTo ensure proper functionality, the docker-magento setup requires a few system dependencies to be installed on Linux. To install these dependencies, please execute the following command from the terminal:\n\n```\nsudo apt install curl libnss3-tools unzip rsync\n```\n\n#### The host.docker.internal hostname\n\nThe `host.docker.internal` hostname is used on Docker for Mac/Windows to reference the Docker daemon. On Linux, this hostname does not exist.\n\nThis hostname is [hard-coded in the php.ini file](images/php/8.1/conf/php.ini#L8). To make this hostname resolve, add `\"host.docker.internal:172.17.0.1\"` to the `app.extra_hosts` parameter of `compose.yaml`, replacing `172.17.0.1` with the result of:\n\n```\ndocker run --rm alpine ip route | awk 'NR==1 {print $3}'\n```\n\nYou must also create a new entry in your `/etc/hosts` file using the same IP:\n\n```\n172.17.0.1 host.docker.internal\n```\n\n#### Extra settings\n\nTo enable Xdebug on Linux, you may also need to open port 9003 on the firewall by running:\n\n```\nsudo iptables -A INPUT -p tcp --dport 9003 -j ACCEPT\n```\n\nYou may also have to increase a virtual memory map count on the host system which is required by [Elasticsearch](https://www.elastic.co/guide/en/elasticsearch/reference/current/vm-max-map-count.html).\n\nAdd the following line to the `/etc/sysctl.conf` file on your host:\n\n```\nvm.max_map_count=262144\n```\n\n### Blackfire.io\n\nThese docker images have built-in support for Blackfire.io. To use it, first register your server ID and token with the Blackfire agent:\n\n```\nbin/root blackfire-agent --register --server-id={YOUR_SERVER_ID} --server-token={YOUR_SERVER_TOKEN}\n```\n\nNext, open up the `bin/start` helper script and uncomment the line:\n\n```\n#bin/root /etc/init.d/blackfire-agent start\n```\n\nFinally, restart the containers with `bin/restart`. After doing so, everything is now configured and you can use a browser extension to profile your Magento store with Blackfire.\n\n### Cloudflare Tunnel\n\nThese docker images have built-in support for Cloudflare Tunnel. It can be useful for testing implementations that require some third-party integrations involving allow-listing domains. Since your local app cannot be allow-listed by other services, you can use Cloudflare Tunnel to get a public hostname that can be allow-listed on the other service.\n\nTo use it:\n\n- First, create a tunnel in Cloudflare Zero Trust and add the token to `env/cloudflare.env`.\n- Next, uncomment Cloudflare Tunnel section in main `compose.yaml`.\n- Finally, restart the containers with `bin/restart`.\n\nIn Cloudflare Tunnel configuration, configure the service URL to use type `HTTPS` and a URL of `{name of app container}:{HTTPS port of app container}`. For examplem, `demo-app-1:8443`. Enable the `No TLS Verify` option, since our local certificates are self-signed. You should now be able to access your app via the public hostname defined in Cloudflare Tunnel.\n\nNOTE: Do not leave instances with Cloudflare Tunnel enabled running long-term, as your instance is publicly available to the world. You should ideally turn off tunnel container once testing is finished.\n\n### MFTF\n\nTo work with MFTF you will need to first enable the `selenium` image in the `compose.dev.yaml` file. Then, you will need to run the following.\n\n1. Run mftf build process `bin/mftf build:project`. This should build the basic setup for mftf in your project.\n2. Update the `extra_host` values to match your Magento URL and IP in `compose.dev.yaml`.\n3. Update the values in `src/dev/tests/acceptance/.env`, including adding the new line `SELENIUM_HOST=selenium` to define the host Codeception should connect to.\n4. Run a sample test `bin/mftf run:test AdminLoginSuccessfulTest`.\n5. Update your `nginx.conf` file to allow access to the dev section with the following, before the final `deny all` section:\n\n```\nlocation ~* ^/dev/tests/acceptance/utils($|/) {\n    root $MAGE_ROOT;\n    location ~ ^/dev/tests/acceptance/utils/command.php {\n        fastcgi_pass   fastcgi_backend;\n        fastcgi_index  index.php;\n        fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;\n        include        fastcgi_params;\n    }\n}\n```\n\nFor debugging, you can connect to the selenium image using a VCN client.\n\n- Connect with the VCN option and `127.0.0.1:5900`, (default password: `secret`)\n- Run `bin/mftf doctor` to validate all sections are setup correctly.\n\nFind more info [here](https://devdocs.magento.com/mftf/docs/getting-started.html) about mftf configuration.\n\n### Grunt + LiveReload for Frontend Development\n\n#### Create a new theme and make it active\n\nCreate your new theme at `app/design/frontend/VendorName/theme-name`, with the related `composer.json`, `registration.php` and `theme.xml` files.\n\nMake your new theme active at Admin \u003e Content \u003e Design \u003e Configuration. Click the Edit button next to Global Scope, and set the Applied Theme to your new theme name, and click Save Configuration.\n\n#### Load the LiveReload client file\n\nTo create a connection to LiveReload, you'll need to insert the LiveReload script into your theme. You can do this by creating a file in your theme at `Magento_Theme/layout/default_head_blocks.xml` with the contents:\n\n```xml\n\u003c?xml version=\"1.0\"?\u003e\n\u003cpage xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:noNamespaceSchemaLocation=\"urn:magento:framework:View/Layout/etc/page_configuration.xsd\"\u003e\n    \u003chead\u003e\n        \u003cscript defer=\"true\" src=\"/livereload.js?port=443\" src_type=\"url\"/\u003e\n    \u003c/head\u003e\n\u003c/page\u003e\n```\n\nThe \"?port=443\" parameter is important, otherwise the `livereload.js` script won't work.\n\nWhile we're at it, let's also create an initial LESS file so we have something to test. Create a new file in your theme at `web/css/source/_extend.less` with the contents:\n\n```css\nbody {\n    background: white;\n}\n```\n\nYou'll need to clear the Magento cache to enable your module, and make sure this layout XML update is properly loaded.\n\nYour new theme should now be active at `https://yourdomain.test`. Since this is a new theme, it should appear the same as the parent theme defined in your theme.xml file, which is usually Blank.\n\n#### Set up Grunt\n\nRun `bin/setup-grunt`. This will set up the Grunt configuration files for your new theme. It's important to run this step after setting up your new theme, not before.\n\n#### Start the Grunt watcher\n\nGrunt can watch for filesystem changes by running `bin/grunt watch`. You can optionally pass in the `--verbose` or `-v` flag to toggle verbose mode on. This will let you know what's going on under the hood, so you can be sure it is compiling \u0026 watching the correct files, and updating them as changes are made.\n\n#### LiveReload Browser extension\n\nRunning the `grunt watch` process also spawns the LiveReload server. Your browser needs to connect to this server, and this is done by installing the [LiveReload browser extension](https://chrome.google.com/webstore/detail/livereload/jnihajbhpnppcggbcgedagnkighmdlei?hl=en).\n\nIn your browser, be sure to also open the Google Chrome Dev Tools, go to the Network tab, and click \"Disable cache\". This will ensure the browser does not long-cache static file assets, such as JavaScript \u0026 CSS files, which is important during development.\n\nEnsure the LiveReload browser icon has been toggled on, and refresh the page. We can confirm the LiveReload script is loaded by going to the Network tab and ensuring the `livereload.js` file is loaded, and that it also spawns off a new websocket request to `/livereload`.\n\n#### Test LiveReload\n\nSince this is all set, let's update the CSS file to a different background color:\n\n```css\nbody {\n    background: blue;\n}\n```\n\nUpon saving this file, we will see the Grunt watcher detect the changes, and your browser should automatically load the new style without you needing to refresh the page, and without a full browser refresh.\n\n### PHP-SPX\n\nThe images also have additional profiler-tracers built-in to the \u003ca href=\"https://github.com/NoiseByNorthwest/php-spx/tree/master#web-ui\" target=\"_blank\"\u003eWeb UI.\u003c/a\u003e\n\nTo access the control panel, just open the following URL: `https://magento.test/?SPX_UI_URI=/`\n\n**Suggested Configuration**\n\n- Enabled: Checked\n- Automatic start: Checked\n- Profile internal functions: Unchecked\n- Sampling: 5ms\n- Max profiling depth: Unlimited\n- Additional metrics: Unselected\n\nChanging any options on this page set cookies for the domain for these settings. After then visiting a page on the frontend, you can navigate back to the GUI and scroll to the bottom of the page, and click the related request to view the trace of the request \u0026 response.\n\nProfiling is also possible via command line, or curl:\n\n```\nSPX_REPORT=full SPX_ENABLED=1 SPX_SAMPLING_PERIOD=5000 bin/magento {command_name}\ncurl --cookie \"SPX_REPORT=full; SPX_ENABLED=1; SPX_SAMPLING_PERIOD=5000\" https://magento.test/\n```\n\nAdditional information of how to work with SPX is available at https://www.youtube.com/watch?v=xk-JiBLsKfA\n\n## Known Issues\n\nThere are currently no large known issues or workarounds needed to use docker-magento with your Magento project. If you find any, please [report them](https://github.com/markshust/docker-magento/issues)!\n\n## Credits\n\n### M.academy\n\nThis course is sponsored by \u003ca href=\"https://m.academy\" target=\"_blank\"\u003eM.academy\u003c/a\u003e, the simplest way to learn Magento.\n\n\u003ca href=\"https://m.academy\" target=\"_blank\"\u003e\u003cimg src=\"docs/macademy-logo.png\" alt=\"M.academy\"\u003e\u003c/a\u003e\n\n### Mark Shust\n\nMy name is Mark Shust and I'm the creator of this repo. I'm a \u003ca href=\"https://www.credly.com/users/mark-shust/badges\" target=\"_blank\"\u003e6X Adobe Commerce Certified Developer\u003c/a\u003e and have been involved with Magento since the early days (v0.8!). I create technical education courses full-time for my company, \u003ca href=\"https://m.academy\" target=\"_blank\"\u003eM.academy\u003c/a\u003e.\n\n- \u003ca href=\"https://m.academy/courses\" target=\"_blank\"\u003e🖥️ See my Magento lessons \u0026 courses\u003c/a\u003e\n- \u003ca href=\"https://m.academy/articles\" target=\"_blank\"\u003e📖 Read my technical articles\u003c/a\u003e\n- \u003ca href=\"https://youtube.com/markshust\" target=\"_blank\"\u003e🎥 Watch my YouTube videos\u003c/a\u003e\n- \u003ca href=\"https://www.linkedin.com/in/MarkShust/\" target=\"_blank\"\u003e🔗 Connect on LinkedIn\u003c/a\u003e\n- \u003ca href=\"https://twitter.com/MarkShust\" target=\"_blank\"\u003e🐦 Follow me on X\u003c/a\u003e\n- \u003ca href=\"mailto:mark@m.academy\"\u003e💌 Contact me\u003c/a\u003e\n\n## License\n\n[MIT](https://opensource.org/licenses/MIT)\n","funding_links":["https://github.com/sponsors/markshust"],"categories":["Shell","Tools","Magento","Dev boxes"],"sub_categories":["Meet Magento","Graph Theory","Docker"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkshust%2Fdocker-magento","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarkshust%2Fdocker-magento","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkshust%2Fdocker-magento/lists"}