Skip to content

Commit

Permalink
feat(mailhog): make mailhog work out-of-the-box
Browse files Browse the repository at this point in the history
  • Loading branch information
damienwebdev committed Oct 26, 2020
1 parent 03eda42 commit 2bf208d
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
5 changes: 3 additions & 2 deletions compose/mailhog/1.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ version : '3'
services:
magento2:
environment:
- CONFIG__DEFAULT__GENERAL__STORE__EMAIL__HOST=mailhog
- CONFIG__DEFAULT__GENERAL__STORE__EMAIL__PORT=1025
- PHP_SENDMAIL_PATH=/usr/sbin/sendmail -S mailhog:1025
mailhog:
image: mailhog/mailhog:v1.0.1
ports:
- 8025:8025
networks:
- backend
4 changes: 3 additions & 1 deletion php/7.2/alpine-develop/conf/php.ini
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,6 @@ post_max_size = 20M
display_errors = stderr
error_log = /dev/stderr
display_startup_errors = On
log_errors = On
log_errors = On

sendmail_path = ${PHP_SENDMAIL_PATH}
4 changes: 3 additions & 1 deletion php/7.3/alpine-develop/conf/php.ini
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,6 @@ post_max_size = 20M
display_errors = stderr
error_log = /dev/stderr
display_startup_errors = On
log_errors = On
log_errors = On

sendmail_path = ${PHP_SENDMAIL_PATH}
4 changes: 3 additions & 1 deletion php/7.4/alpine-develop/conf/php.ini
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,6 @@ post_max_size = 20M
display_errors = stderr
error_log = /dev/stderr
display_startup_errors = On
log_errors = On
log_errors = On

sendmail_path = ${PHP_SENDMAIL_PATH}

0 comments on commit 2bf208d

Please sign in to comment.