Skip to content

Commit a3668d2

Browse files
authored
Mailpit (#24)
* Add mailpit service * Update readme * Update docker-compose.yml
1 parent 68ba558 commit a3668d2

File tree

4 files changed

+15
-0
lines changed

4 files changed

+15
-0
lines changed

.docker/php/custom.ini

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
sendmail_path=/usr/sbin/sendmail -S localhost:1025 -t

.env.dist

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ WEB_PORT=8080
22
MYSQL_PORT=3306
33
SELENIUM_PORT=4444
44
VNC_PORT=5900
5+
MAIL_PORT=8025
56
BASE_URI=http://127.0.0.1:8080
67
UID=1000
78
GID=1000

README.md

+5
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,11 @@ in order to see tests running in the browser. Using a VNC client such as Remmina
100100
simply connect to port `127.0.0.1:5900` with the password `secret`. If you've changed the `VNC_PORT`
101101
environment variable be sure to connect to that port instead.
102102

103+
## Mailpit
104+
105+
The mailpit service is available and configured to capture email sent from the site. This can be
106+
accessed at http://localhost:8025. For more info see https://github.com/axllent/mailpit.
107+
103108
## Contributing
104109

105110
Once you're up and running you'll have Drupal core checked out in the app directory. From here you

docker-compose.yml

+8
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ services:
66
- "${MYSQL_PORT:-3306}:3306"
77
- "${SELENIUM_PORT:-4444}:4444"
88
- "${VNC_PORT:-5900}:5900"
9+
- "${SMTP_PORT:-1025}:1025"
10+
- "${MAIL_PORT:-8025}:8025"
911
extra_hosts:
1012
- "host.docker.internal:host-gateway"
1113
volumes:
@@ -23,6 +25,7 @@ services:
2325
network_mode: service:nginx
2426
volumes:
2527
- ./:/data
28+
- ./.docker/php/custom.ini:/etc/php/conf.d/99-custom.ini
2629
environment:
2730
- PHP_IDE_CONFIG=serverName=localhost
2831

@@ -43,6 +46,7 @@ services:
4346
- PHP_IDE_CONFIG=serverName=localhost
4447
volumes:
4548
- ./:/data
49+
- ./.docker/php/custom.ini:/etc/php/conf.d/99-custom.ini
4650

4751
mysql:
4852
image: mysql:latest
@@ -60,3 +64,7 @@ services:
6064
selenium:
6165
image: ${SELENIUM_IMAGE:-selenium/standalone-chrome:111.0}
6266
network_mode: service:nginx
67+
68+
mail:
69+
image: axllent/mailpit
70+
network_mode: service:nginx

0 commit comments

Comments
 (0)