From 97614fa71d17e9d1745a586556639386eed48ff0 Mon Sep 17 00:00:00 2001 From: Struan Donald Date: Wed, 9 Oct 2024 11:23:51 +0100 Subject: [PATCH] configure docker to send email to mailhog --- bin/docker-entrypoint.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/docker-entrypoint.sh b/bin/docker-entrypoint.sh index a5c5c5460b..3e4faee79b 100755 --- a/bin/docker-entrypoint.sh +++ b/bin/docker-entrypoint.sh @@ -29,6 +29,8 @@ sed -r \ -e 's!^(.*"PWMEMBERS", *)"[^"]*"!'"\\1'/twfy/data/parlparse/members/'!" \ -e 's!^(.*"XAPIANDB", *)"[^"]*"!'"\\1'/twfy/searchdb/'!" \ -e "s!^(.*define\('OPTION_MAPIT_URL', *)'[^']*"!"\\1'https://mapit.mysociety.org/!" \ + -e "s!^(.*define\('OPTION_SMTP_SMARTHOST', *)'[^']*"!"\\1'email.svc!" \ + -e "s!^(.*define\('OPTION_SMTP_PORT', *)[0-9]*"!"\\11025!" \ -e "s/array\('127.0.0.1'\)/array\('sentinel'\)/" \ conf/general-example > conf/general