You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tools/docker/README.md
+6-5Lines changed: 6 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ Unified environment for developing Jetpack using Docker containers providing fol
7
7
* All monorepo plugins will be available as plugins within the Docker WP instance.
8
8
* Xdebug setup.
9
9
* WP-CLI installed.
10
-
*MailDev to catch all the emails leaving WordPress so that you can observe them from browser.
10
+
*Mailpit to catch all the emails leaving WordPress so that you can observe them from browser
11
11
* phpMyAdmin to aid in viewing the database.
12
12
* Handy shorthand commands like `jetpack docker up` and `jetpack docker phpunit` to simplify the usage.
13
13
@@ -67,8 +67,9 @@ You can control some of the behavior of Jetpack's Docker configuration with envi
67
67
You can set the following variables on a per-command basis (`PORT_WORDPRESS=8000 jetpack docker up`) or, preferably, in the `tools/docker/.env` file you set up earlier.
68
68
69
69
*`PORT_WORDPRESS`: (default=`80`) The port on your host machine connected to the WordPress container's HTTP server.
70
-
*`PORT_MAILDEV`: (default=`1080`) The port on your host machine connected to the MailDev container's MailDev HTTP server.
71
-
*`PORT_SMTP`: (default=`25`) The port on your host machine connected to the MailDev container's SMTP server.
70
+
*`PORT_INBOX`: (default=`1080`) The port on your host machine connected to the Mailpit container's web interface.
71
+
*`PORT_SMTP`: (default=`25`) The port on your host machine connected to the Mailpit container's SMTP server.
72
+
*`PORT_PHPMY`: (default=`8181`) The port on your host machine connected to the phpMyAdmin container's web interface.
72
73
*`PORT_SFTP`: (default=`1022`) The port on your host machine connected to the SFTP container's SFTP server.
73
74
74
75
### Container Environments
@@ -122,7 +123,7 @@ jetpack docker uninstall
122
123
jetpack docker up
123
124
```
124
125
125
-
Start the containers (WordPress, MySQL and MailDev) defined in `docker-compose.yml`.
126
+
Start the containers (WordPress, MySQL and Mailpit) defined in `docker-compose.yml`.
126
127
127
128
This command will rebuild the WordPress container if you made any changes to `docker-compose.yml`.
128
129
@@ -426,7 +427,7 @@ We recommend to regularly review the log to make sure performance issues don't g
426
427
427
428
### Debugging emails
428
429
429
-
Emails don’t leave your WordPress and are caught by [MailDev](http://danfarrelly.nyc/MailDev/) SMTP server container instead.
430
+
Emails don’t leave your WordPress and are caught by the [Mailpit](https://mailpit.axllent.org/) SMTP server container instead.
430
431
431
432
To debug emails via web-interface, open [http://localhost:1080](http://localhost:1080)
## SMTP Server + Web Interface for viewing and testing emails during development.
31
-
## http://maildev.github.io/maildev/
32
-
maildev:
33
-
image: maildev/maildev
31
+
## https://mailpit.axllent.org/
32
+
mailpit:
33
+
image: axllent/mailpit
34
+
container_name: mailpit
34
35
ports:
35
-
- '${PORT_MAILDEV:-1080}:80'
36
-
- '${PORT_SMTP:-25}:25'
36
+
- '${PORT_INBOX:-1080}:8025'
37
+
- '${PORT_SMTP:-25}:1025'
37
38
environment:
38
-
# It runs in its own container, it may as well use the standard ports instead of 1080 and 1025 so we don't have to reconfigure everything trying to send mail to it.
39
-
MAILDEV_WEB_PORT: 80
40
-
MAILDEV_SMTP_PORT: 25
39
+
MP_SMTP_AUTH_ACCEPT_ANY: 1
40
+
MP_SMTP_AUTH_ALLOW_INSECURE: 1
41
41
42
-
## SFTP server running at localhost:1022
42
+
## SFTP server running at localhost:1022 by default
0 commit comments