Skip to content
Snippets Groups Projects
Commit c0848ef9 authored by jurgenhaas's avatar jurgenhaas
Browse files

Allow to disable mailhog

parent 74fce3a0
No related branches found
Tags v3.8.4
No related merge requests found
......@@ -101,6 +101,7 @@ class Handler extends BaseHandler {
'overwriteconfig' => FALSE,
],
'mailhog' => [
'enable' => 1,
'host' => $this->env->receiveGlobal('MAILHOG_HOST', 'MailHog Host', 'smtp.freesmtpservers.com'),
'port' => $this->env->receiveGlobal('MAILHOG_PORT', 'MailHog Port', '25'),
'username' => $this->env->receiveGlobal('MAILHOG_USERNAME', 'MailHog Username'),
......
......@@ -47,7 +47,9 @@ services:
restart: unless-stopped
{% endif %}
environment:
{% if mailhog.enable %}
PHP_SENDMAIL_PATH: /usr/sbin/sendmail -t -i -S mailhog:1025
{% endif %}
DB_HOST: mariadb
DB_USER: drupal
DB_PASSWORD: drupal
......@@ -105,7 +107,9 @@ services:
image: 'wodby/drupal-php:{{ php.version }}'
restart: unless-stopped
environment:
{% if mailhog.enable %}
PHP_SENDMAIL_PATH: /usr/sbin/sendmail -t -i -S mailhog:1025
{% endif %}
DB_HOST: mariadb
DB_USER: drupal
DB_PASSWORD: drupal
......@@ -260,7 +264,7 @@ services:
traefik.http.routers.solr-{{ projectname }}.rule: Host(`solr-{{ projectdomain }}`)
{% endif %}
{% if not drupal.live|default(0) or staging %}
{% if mailhog.enable and (not drupal.live|default(0) or staging) %}
mailhog:
image: 'mailhog/mailhog'
{% if staging %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment