You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 19, 2024. It is now read-only.
* Updated Docker Quick reference
- Addedd new options to the magento-docker CLI
- Added listing that shows all available options for ece-docker
build:compose command
- Added intro to Docker Compose section
* MCLOUD-7809 Added instructions for building custom docker-compose.yaml file
* Improved instructions for using the init-docker.sh installation script
* Updates for Magento Cloud Docker 1.2.0 release notes
Co-authored-by: maeker12 <{ID}+{username}@users.noreply.github.com>
Copy file name to clipboardExpand all lines: src/cloud/docker/docker-config.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -142,7 +142,7 @@ By default, MailHog listens on port 1025 for SMTP and port 8025 for the frontend
142
142
143
143
After updating the configuration and restarting the Docker environment, you can connect to the MailHog service from `http://magento2.docker:8026`, and use port 1026 for SMTP communication.
144
144
145
-
If you do not need the [MailHog] service, use the `--no-mailhog` option to generate the Docker compose configuration:
145
+
If you do not need the [MailHog] service, use the `--no-mailhog` option to generate the Docker compose configuration:
Copy file name to clipboardExpand all lines: src/cloud/docker/docker-containers.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,7 +54,7 @@ The following table shows the options to customize service container configurati
54
54
| [varnish][varnish-container] | Varnish | `--no-varnish` | 4, 6.2 | Varnish is provisioned by default. Use the `--no-varnish` option to skip Varnish service installation
For Linux systems, you must use the `--set-docker-host` option to add the `host.docker.internal` entry to the `/etc/hosts` file for the `fpm_xdebug` container.
If required, you can add options to the `init-docker.sh` initialization script to customize your Docker environment. Run the following command to see the available options:
32
+
For `<package-version>`, use the [latest release of the {{site.data.var.mcd-package}}].
33
+
34
+
You can customize the options for the `init-docker.sh` initialization script your Docker environment. For example, you can specify the PHP version (default is 7.2) and the [Docker image version] (default 1.1). We recommend using the latest version of the Magento Cloud Docker images. Run the following command to see the available options:
Copy file name to clipboardExpand all lines: src/cloud/docker/docker-mode-production.md
+5-2Lines changed: 5 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,10 +21,12 @@ To launch the Docker environment in production mode:
21
21
1. Install the template dependencies and add the default hostname to your `/etc/hosts` file, use the following command to run the Docker initialization script:
If required, you can add options to the `init-docker.sh` initialization script to customize your Docker environment. Run the following command to see the available options:
27
+
For `<package-version>`, use the [latest release of the {{site.data.var.mcd-package}}].
28
+
29
+
You can customize the options for the `init-docker.sh` initialization script your Docker environment. For example, you can specify the PHP version (default is 7.2) and the [Docker image version] (default 1.1). We recommend using the latest version of the Magento Cloud Docker images. Run the following command to see the available options:
Copy file name to clipboardExpand all lines: src/cloud/docker/docker-quick-reference.md
+198Lines changed: 198 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -111,6 +111,204 @@ Options:
111
111
{:.bs-callout-info}
112
112
See [Service versions] for additional information about the service configuration options for the `ece-docker build:compose` command.
113
113
114
+
### Build a custom Docker Compose configuration
115
+
116
+
Instead of building the `docker-compose.yaml` file using the {{site.data.var.ece }} project configuration. You can use the `build:custom:compose` command to build a custom `docker-compose.yaml` file with the configuration you supply. You provide the configuration as a JSON array as shown in [Example 1](#example-1).
117
+
118
+
For {{site.data.var.mcd-prod}} 1.2 and later, you have an additional option to specify custom images and image versions using the `ece-docker build:custom:compose` command as shown in [Example 2](#example-2).
For {{site.data.var.mcd-prod}} 1.2 and later, you have an additional option to specify custom images and image versions using the `ece-docker build:custom:compose` command.
277
+
278
+
#### Example 2
279
+
280
+
> Generate a custom `docker-compose.yaml` file with custom images and image versions
This command generates the following images in the Docker environment:
287
+
288
+
```conf
289
+
services:
290
+
db:
291
+
image: 'mariadb-v1:10.3'
292
+
redis:
293
+
image: 'redis-v1:5'
294
+
fpm:
295
+
image: 'php-v1:7.4-fpm'
296
+
web:
297
+
image: 'nginx-v1:1.19'
298
+
varnish:
299
+
image: 'varnish-v1:6.2'
300
+
tls:
301
+
image: 'nginx-v1:1.19'
302
+
test:
303
+
image: 'php-v1:7.4-cli'
304
+
generic:
305
+
image: 'php-v1:7.4-cli'
306
+
build:
307
+
image: 'php-v1:7.4-cli'
308
+
deploy:
309
+
image: 'php-v1:7.4-cli'
310
+
```
311
+
114
312
## Magento Cloud Docker CLI
115
313
116
314
The `bin/magento-docker` commands simplify running docker-compose tasks. For example, instead of running a separate docker-compose command for the build, deploy, and post-deploy steps, you can _redeploy_ Magento in a Docker environment using the following command:
0 commit comments