ipunkt / rancherize-mailhog
Rancherize plugin to add mailhog as a mailing endpoint for local development
Installs: 458
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 4
Forks: 0
Open Issues: 0
Type:project
Requires (Dev)
- ipunkt/rancherize: ^2.23.5
This package is auto-updated.
Last update: 2024-10-08 22:41:14 UTC
README
mailhog rancherize plugin
Install
If you are using the rancherize docker container:
rancherize plugin:register ipunkt/rancherize-mailhog
If you are using rancherize via composer:
rancherize plugin:install ipunkt/rancherize-mailhog:^1.0.0
Use
Add the following section to your environment or default
-section of your rancherize.json:
"mailhog":{ "port":PORT_TO_EXPOSE_ON }
Example:
"mailhog":{ "port":9081 }
Details
It will set the following variables on your main service:
MAIL_HOST: `mailhog`
MAIL_PORT: `1025`
SMTP_SERVER: `mailhog:1025`
SMTP_SERVER
enables sendmail via mailhog when using the webserver or php-cli ipunkt blueprints.
MAIL_HOST
and MAIL_PORT
will cause a laravel project to send via mailhog.
You should set MAIL_ENCRYPTION
to an empty string for laravel projects.