Skip to content

Commit

Permalink
Merge pull request #3397 from reishou/master
Browse files Browse the repository at this point in the history
feat: add mailpit
  • Loading branch information
bestlong committed Jun 21, 2023
2 parents 30265fd + f661694 commit 7b1eee5
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .env.example
Expand Up @@ -1079,3 +1079,7 @@ KEYCLOAK_POSTGRES_HOST=postgres
KEYCLOAK_POSTGRES_USER=laradock_keycloak
KEYCLOAK_POSTGRES_PASSWORD=laradock_keycloak
KEYCLOAK_POSTGRES_DB=laradock_keycloak

### Mailpit #################################################
MAILPIT_HTTP_PORT=8125
MAILPIT_SMTP_PORT=1125
23 changes: 23 additions & 0 deletions DOCUMENTATION/content/documentation/index.md
Expand Up @@ -1507,6 +1507,29 @@ docker-compose up -d keycloak
- Username: `admin`
- Password: `secret`


<br>
<a name="use Mailpit"></a>
## Use Mailpit

1. Run the Mailpit Container (`mailpit`) with the `docker-compose up` command. Example:

```bash
docker-compose up -d mailpit
```

2. Open your browser and visit the localhost on port 8125: `http://localhost:8125`
3. Setup config in your Laravel project’s .env file
```text
MAIL_MAILER=smtp
MAIL_HOST=mailpit
MAIL_PORT=1125
MAIL_USERNAME=null
MAIL_PASSWORD=null
```



<br>
<a name="CodeIgniter"></a>

Expand Down
10 changes: 10 additions & 0 deletions docker-compose.yml
Expand Up @@ -1156,6 +1156,16 @@ services:
- frontend
- backend

### Mailpit ##############################################
mailpit:
build: ./mailpit
ports:
- "${MAILPIT_HTTP_PORT}:8025"
- "${MAILPIT_SMTP_PORT}:1025"
networks:
- frontend
- backend

### Selenium ###############################################
selenium:
build: ./selenium
Expand Down
3 changes: 3 additions & 0 deletions mailpit/Dockerfile
@@ -0,0 +1,3 @@
FROM axllent/mailpit

LABEL maintainer="reishou <reishou90@gmail.com>"

0 comments on commit 7b1eee5

Please sign in to comment.