Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ LOCAL_PHP_XDEBUG_MODE=develop,debug
# Whether or not to enable Memcached.
LOCAL_PHP_MEMCACHED=false

# Whether or not to enable Mail Server.
LOCAL_MAIL=false

##
# The database software to use.
#
Expand Down
16 changes: 16 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,22 @@ services:
mysql:
condition: service_healthy

##
# The MailHog container.
##
mailpit:
container_name: mailpit
image: axllent/mailpit
ports:
- 1025:1025 # smtp server
- 8025:8025 # web ui
environment:
MP_MAX_MESSAGES: 5000
MP_SMTP_AUTH_ACCEPT_ANY: 1
MP_SMTP_AUTH_ALLOW_INSECURE: 1
networks:
- wpdevnet

##
# The Memcached container.
##
Expand Down
4 changes: 4 additions & 0 deletions tools/local-env/scripts/start.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ if ( process.env.LOCAL_PHP_MEMCACHED === 'true' ) {
containers.push( 'memcached' );
}

if ( process.env.LOCAL_MAIL === 'true' ) {
containers.push( 'mailpit' );
}

spawnSync(
'docker',
[
Expand Down
Loading