Skip to content

Commit

Permalink
feat: add mailpit container to compose stack and update docs to menti…
Browse files Browse the repository at this point in the history
…on it.
  • Loading branch information
fibble committed Aug 23, 2024
1 parent 5208e68 commit 240cdcb
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
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)

:::

0 comments on commit 240cdcb

Please sign in to comment.