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

feat: add mailpit container to compose stack and update docs #271

Merged
merged 1 commit into from
Aug 23, 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
4 changes: 2 additions & 2 deletions app/api/config/autoload/local.php.dist
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@ return [
'mail' => [
'type' => '\Laminas\Mail\Transport\Smtp',
'options' => new \Laminas\Stdlib\ArrayUtils\MergeReplaceKey([
'name' => 'mailhog',
'host' => 'mailhog',
'name' => 'mailpit',
'host' => 'mailpit',
'port' => 1025,
'connection_config' => [
'username' => 'null',
Expand Down
10 changes: 10 additions & 0 deletions compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,16 @@ services:
volumes:
- "openldap-data:/bitnami/openldap"

mailpit:
image: axllent/mailpit:latest
container_name: mailpit
ports:
- "1025:1025"
- "8025:8025"
environment:
VIRTUAL_HOST: mailpit.local.olcs.dev-dvsacloud.uk
VIRTUAL_PORT: 8025

volumes:
db-data:
openldap-data:
4 changes: 3 additions & 1 deletion docs/app/local-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ You will need:
:::

```bash
sudo echo "127.0.0.1 iuweb.local.olcs.dev-dvsacloud.uk ssweb.local.olcs.dev-dvsacloud.uk api.local.olcs.dev-dvsacloud.uk cdn.local.olcs.dev-dvsacloud.uk" >> /etc/hosts
sudo echo "127.0.0.1 iuweb.local.olcs.dev-dvsacloud.uk ssweb.local.olcs.dev-dvsacloud.uk api.local.olcs.dev-dvsacloud.uk cdn.local.olcs.dev-dvsacloud.uk mailpit.local.olcs.dev-dvsacloud.uk" >> /etc/hosts
```

1. Start the application
Expand Down Expand Up @@ -103,4 +103,6 @@ All done!

Visit the application in your browser: - [Internal Application](http://iuweb.local.olcs.dev-dvsacloud.uk) - [Self Service Application](http://ssweb.local.olcs.dev-dvsacloud.uk)

Any mail sent by the app can be viewed via: - [Mailpit](http://mailpit.local.olcs.dev-dvsacloud.uk)

:::
Loading