Deploy the Docker environment

By default, Cloud Docker for Commerce deploys Adobe Commerce to a read-only file system in the Docker environment.

The default deployment mirrors the read-only file system in the cloud infrastructure Production environment. You can deploy a Docker environment in developer mode, which provides an active development environment with full, writable file system permissions. The ece-docker build:compose command generates the Docker Compose configuration file from project configuration settings and to deploy Adobe Commerce on cloud infrastructure to a local Docker environment. You supply the configuration settings from multiple sources depending on your requirements. See Configure sources.

data-variant=warning
data-slots=text
When you run the ece-docker build:compose command, it regenerates the docker-compose.yml configuration file and overwrites the existing docker-compose.yml configuration file. You can save custom configurations across builds by adding the settings to a docker-compose.override.yml file. See a detailed example in the Docker quick reference.

Launch mode

You can launch a Docker environment in production or developer mode by setting the mode option on the ece-docker build:compose command:

For example, the following command starts the Docker configuration generator for the developer mode:

./vendor/bin/ece-docker build:compose --mode="developer"

To skip the interactive mode, use the -n, --no-interaction option.

data-variant=info
data-slots=text
The mode option for the ece-docker build:compose command does not affect the mode. It determines the Adobe Commerce on cloud infrastructure file system installation and read-only or read-write behavior.

Stop and start containers

You can stop containers and restore them afterwards using the following methods.

Action
Command
Suspend containers to continue your work later
docker compose stop
Stop and remove all containers, images, and volumes
docker compose down
Start containers from a suspended state
docker compose start

Use the following command to stop and remove the Docker configuration:

docker compose down -v
data-variant=warning
data-slots=text
This command removes all components of your local Docker instance including containers, networks, volumes, and images except for the persistent database and the magento-sync volume. See Rebuild a clean environment.