Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mailpit #24

Merged
merged 3 commits into from
May 7, 2024
Merged
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
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: skpr/mtk-mysql-empty:latest
Expand All @@ -51,3 +55,7 @@ services:
selenium:
image: ${SELENIUM_IMAGE:-selenium/standalone-chrome}
network_mode: service:nginx

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