magento / magento/magento-cloud-docker
mailhog service not generated in docker-compose.yml
Open
Nobody has claimed this yet.
Progress: ready for grooming
- Dominant language
- PHP
- Stars
- 277
- Forks
- 187
- PR merge metrics
- No merged PRs in 30d
Description
Preconditions
- Docker Desktop 4.3.2, Engine 20.10.11, Compose 1.29.2 on macOS Monterey Apple Silicon (M1) - but not limited to this environment
- Magento Commerce 2.4.3-p1, php 7.4, MariaDB 10.4
Steps to reproduce
- Run:
$ ./vendor/bin/ece-docker build:compose --mode="developer" --sync-engine="mutagen" --with-cron --mailhog-smtp-port=1025 --mailhog-http-port=8025OR simply run:$ ./vendor/bin/ece-docker build:compose --mailhog-smtp-port=1025 --mailhog-http-port=8025 - Success message: Configuration was built.
- mailhog service is missing in docker-compose.yml but the header of docker-compose.yml is:
# ./vendor/bin/ece-docker 'build:compose' --mode=developer --sync-engine=mutagen --with-cron --mailhog-smtp-port=1025 --mailhog-http-port=8025
version: '2.1'
Expected result
services:
mailhog:
hostname: mailhog.magento2.docker
image: 'mailhog/mailhog:latest'
ports:
- '1025:1025'
- '8025:8025'
networks:
magento:
aliases:
- mailhog.magento2.docker
Actual result
mailhog service is missing from docker-compose.yml. We have to manually add it in docker-compose.override.yml.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the ./vendor/bin/ece-docker build:compose command in the issue and inspect the generated docker-compose.yml, comparing it with the expected mailhog service definition. Check docker-compose.override.yml only as the current workaround; done means the command generates the mailhog service with the requested SMTP and HTTP ports without manual additions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, docker-compose, php
- Domain
- devops
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100