diff --git a/compose.yml b/compose.yml index d6f3e3618..1e8ea7388 100644 --- a/compose.yml +++ b/compose.yml @@ -16,15 +16,17 @@ services: image: wodby/wordpress-php:$PHP_TAG container_name: "${PROJECT_NAME}_php" environment: - # For PHP 8.2 use busybox sendmail together with "PHP_MAIL_MIXED_LF_AND_CRLF=On". + # PHP 8.2+ supports "PHP_MAIL_MIXED_LF_AND_CRLF=On" and does not need dos2unix workaround. PHP_MAIL_MIXED_LF_AND_CRLF: On - PHP_SENDMAIL_PATH: '/bin/busybox sendmail -t -i -S mailhog:25' -# PHP_SENDMAIL_PATH: '/bin/busybox sendmail -t -i -S opensmtpd:25' -# # For PHP <8.2 use ssmtp instead of sendmail. -# SSMTP_MAILHUB: mailhog:1025 -# SSMTP_MAILHUB: opensmtpd:25 -# PHP_SENDMAIL_PATH: '"/usr/bin/dos2unix -u | /usr/sbin/ssmtp -t"' -# # + PHP_SENDMAIL_PATH: '/usr/bin/msmtp -t' + # # PHP 8.1 and previous version require dos2unix workaround. + # PHP_SENDMAIL_PATH: '"/usr/bin/dos2unix -u | /usr/bin/msmtp -t"' + # Mailhog: + MSMTP_HOST: mailhog + MSMTP_PORT: 1025 + # # OpenSMTPD: + # MSMTP_HOST: opensmtpd + # MSMTP_PORT: 25 DB_HOST: $DB_HOST DB_USER: $DB_USER DB_PASSWORD: $DB_PASSWORD