Skip to content

Commit a8e6a29

Browse files
committed
Switching to Mailpit
1 parent 5c6b514 commit a8e6a29

File tree

3 files changed

+14
-9
lines changed

3 files changed

+14
-9
lines changed

.env.example

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ LOCAL_PHP_XDEBUG_MODE=develop,debug
3636
# Whether or not to enable Memcached.
3737
LOCAL_PHP_MEMCACHED=false
3838

39-
# Whether or not to enable MailHog.
40-
LOCAL_MAILHOG=false
39+
# Whether or not to enable Mail Server.
40+
LOCAL_MAIL=false
4141

4242
##
4343
# The database software to use.

docker-compose.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -129,14 +129,19 @@ services:
129129
##
130130
# The MailHog container.
131131
##
132-
mailhog:
133-
container_name: mailhog
134-
image: mailhog/mailhog
135-
logging:
136-
driver: 'none'
132+
mailpit:
133+
container_name: mailpit
134+
image: axllent/mailpit
137135
ports:
138136
- 1025:1025 # smtp server
139137
- 8025:8025 # web ui
138+
volumes:
139+
- ./data:/data
140+
environment:
141+
MP_MAX_MESSAGES: 5000
142+
MP_DATABASE: /data/mailpit.db
143+
MP_SMTP_AUTH_ACCEPT_ANY: 1
144+
MP_SMTP_AUTH_ALLOW_INSECURE: 1
140145
networks:
141146
- wpdevnet
142147

tools/local-env/scripts/start.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ if ( process.env.LOCAL_PHP_MEMCACHED === 'true' ) {
3535
containers.push( 'memcached' );
3636
}
3737

38-
if ( process.env.LOCAL_MAILHOG === 'true' ) {
39-
containers.push( 'mailhog' );
38+
if ( process.env.LOCAL_MAIL === 'true' ) {
39+
containers.push( 'mailpit' );
4040
}
4141

4242
spawnSync(

0 commit comments

Comments
 (0)