Configure environments

After fully configuring your store, you need to configure your environments. Environments in Magento Commerce Cloud include containers with applications, services, and a database to provide a complete system for your Magento application codebase and files.

You can configure application settings, routes, build and deploy actions, and notifications to support your project environments using the following configuration files:

  • .magento.app.yaml—defines how to build and deploy Magento, including services, hooks, and cron jobs.
  • .magento.env.yaml—centralizes the management of build and deploy actions across all of your environments, including Pro Staging and Production, using environment variables.
  • .magento/routes.yaml—configure caching, redirects, and server-side includes.
  • .magento/services.yaml—defines the services Magento uses by name and version. For example, this file may include versions of MySQL, PHP extensions, Redis, RabbitMQ, and Elasticsearch. You must open a support ticket to push these changes to Pro plan Staging and Production environments.

When you push code changes, the active environment provisions container updates using the YAML configuration files.