magento / magento/magento-cloud-docker

mailhog service not generated in docker-compose.yml

Open
#339 0 comments 2 reactions 0 assignees View on GitHub

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
  1. 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
  2. Magento Commerce 2.4.3-p1, php 7.4, MariaDB 10.4
Steps to reproduce
  1. Run: $ ./vendor/bin/ece-docker build:compose --mode="developer" --sync-engine="mutagen" --with-cron --mailhog-smtp-port=1025 --mailhog-http-port=8025 OR simply run: $ ./vendor/bin/ece-docker build:compose --mailhog-smtp-port=1025 --mailhog-http-port=8025
  2. Success message: Configuration was built.
  3. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.