Open steveworley opened 3 months ago
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.
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.
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
).https://github.com/govCMS/scaffold/issues/94