Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pygmy Mailhog is not available to PHP containers on mac #1072

Open
steveworley opened this issue Aug 7, 2024 · 2 comments
Open

Pygmy Mailhog is not available to PHP containers on mac #1072

steveworley opened this issue Aug 7, 2024 · 2 comments

Comments

@steveworley
Copy link
Contributor

The GovCMS team made change to the scaffolded docker stack to attach the PHP container to the amazeeio network that Pygmy creates, this was done to resolve issues for some users where they could not test mail configuration from Drupal.

It appears on mac (or potentially some other docker configurations) that mailhog is listening on host.docker.internal instead of the internal IP (172.17.0.1 1025).

govCMS/scaffold#94

@tobybellwood
Copy link
Member

On mac, you can also add an environment variable to the php&cli containers that will auto-configure whilst we wait for #1073 to come in.
SSMTP_MAILHUB: host.docker.internal:1025

The extra_hosts method will be useful in linux later as an alternative to the 172.17.0.1 default too.

@AlexSkrypnyk
Copy link

I've been using the SSMTP_MAILHUB: host.docker.internal:1025 override in my docker-compose.yml since April 2023 (more than a year) and it works really well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
@AlexSkrypnyk @steveworley @tobybellwood and others