Skip to content

Commit 4a6b173

Browse files
committed
Add maildev container and prefer over mailcatcher
1 parent bcc7c4e commit 4a6b173

5 files changed

Lines changed: 15 additions & 4 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Although this project started as a development environment for Totara Learn it c
2222
* Microsoft SQL Server ([2017](https://www.microsoft.com/en-us/sql-server/sql-server-2017), [2019](https://www.microsoft.com/en-us/sql-server/sql-server-2019), [2022](https://www.microsoft.com/en-us/sql-server/sql-server-2022))
2323
* [NodeJS](https://nodejs.org/) for building, developing and testing frontend code
2424
* A [PHPUnit](https://phpunit.de/) and [Behat](http://behat.org/en/latest/) setup to run tests (including [Selenium](https://www.seleniumhq.org/))
25-
* A [mailcatcher](https://mailcatcher.me/) instance to view sent emails
25+
* A [MailDev](https://github.com/maildev/maildev?tab=readme-ov-file#maildev) instance to view sent emails
2626
* [Redis](https://redis.io/) for caching and/or session handling
2727
* [XHProf](https://github.com/tideways/php-xhprof-extension) for profiling
2828
* [XDebug](https://xdebug.org/) installed, ready for debugging with your favorite IDE

compose/apache.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ services:
1616
- ${LOCAL_SRC}:${REMOTE_SRC}
1717
- totara-data:${REMOTE_DATA}
1818
depends_on:
19-
- mailcatcher
19+
- maildev
2020
networks:
2121
totara:
2222
aliases:

compose/nginx.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ services:
1616
- ${LOCAL_SRC}:${REMOTE_SRC}
1717
- totara-data:${REMOTE_DATA}
1818
depends_on:
19-
- mailcatcher
19+
- maildev
2020
networks:
2121
totara:
2222
aliases:

config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@
484484
//////////////////////////////////////////////////////////////////////////
485485

486486
// Redirects any emails sent by the server
487-
$CFG->smtphosts = 'mailcatcher:25';
487+
$CFG->smtphosts = 'maildev:1025';
488488

489489
$CFG->passwordpolicy = false;
490490
$CFG->tool_generator_users_password = '12345';

docker-compose.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,17 @@ services:
1717
- totara-data:${REMOTE_DATA}
1818
working_dir: ${REMOTE_SRC}
1919

20+
maildev:
21+
image: maildev/maildev
22+
container_name: totara_maildev
23+
ports:
24+
- "1080:1080"
25+
environment:
26+
TZ: ${TIME_ZONE}
27+
networks:
28+
- totara
29+
30+
# Deprecated - use maildev instead
2031
mailcatcher:
2132
image: tophfr/mailcatcher
2233
container_name: totara_mailcatcher

0 commit comments

Comments
 (0)