Skip to content

Commit

Permalink
Mailpit (#24)
Browse files Browse the repository at this point in the history
* Add mailpit service

* Update readme

* Update docker-compose.yml
  • Loading branch information
mstrelan authored May 7, 2024
1 parent 68ba558 commit a3668d2
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions .docker/php/custom.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sendmail_path=/usr/sbin/sendmail -S localhost:1025 -t
1 change: 1 addition & 0 deletions .env.dist
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ WEB_PORT=8080
MYSQL_PORT=3306
SELENIUM_PORT=4444
VNC_PORT=5900
MAIL_PORT=8025
BASE_URI=http://127.0.0.1:8080
UID=1000
GID=1000
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,11 @@ in order to see tests running in the browser. Using a VNC client such as Remmina
simply connect to port `127.0.0.1:5900` with the password `secret`. If you've changed the `VNC_PORT`
environment variable be sure to connect to that port instead.

## Mailpit

The mailpit service is available and configured to capture email sent from the site. This can be
accessed at http://localhost:8025. For more info see https://github.com/axllent/mailpit.

## Contributing

Once you're up and running you'll have Drupal core checked out in the app directory. From here you
Expand Down
8 changes: 8 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ services:
- "${MYSQL_PORT:-3306}:3306"
- "${SELENIUM_PORT:-4444}:4444"
- "${VNC_PORT:-5900}:5900"
- "${SMTP_PORT:-1025}:1025"
- "${MAIL_PORT:-8025}:8025"
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
Expand All @@ -23,6 +25,7 @@ services:
network_mode: service:nginx
volumes:
- ./:/data
- ./.docker/php/custom.ini:/etc/php/conf.d/99-custom.ini
environment:
- PHP_IDE_CONFIG=serverName=localhost

Expand All @@ -43,6 +46,7 @@ services:
- PHP_IDE_CONFIG=serverName=localhost
volumes:
- ./:/data
- ./.docker/php/custom.ini:/etc/php/conf.d/99-custom.ini

mysql:
image: mysql:latest
Expand All @@ -60,3 +64,7 @@ services:
selenium:
image: ${SELENIUM_IMAGE:-selenium/standalone-chrome:111.0}
network_mode: service:nginx

mail:
image: axllent/mailpit
network_mode: service:nginx

0 comments on commit a3668d2

Please sign in to comment.