Skip to content

Commit

Permalink
Added mock email server (#1170)
Browse files Browse the repository at this point in the history
  • Loading branch information
jfkonecn authored Oct 15, 2024
1 parent e320693 commit 7f1512b
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 7 deletions.
14 changes: 14 additions & 0 deletions src/main/docker/smtp-server.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
version: '3'

services:
fake-smtp-server:
image: gessnerfl/fake-smtp-server:2.2.1
hostname: 'fake-smtp-server'
restart: always
environment:
- FAKESMTP_AUTHENTICATION_USERNAME=myuser
- FAKESMTP_AUTHENTICATION_PASSWORD=mysecretpassword
ports:
- 8025:8025 #expose smtp port
- 8082:8080 #expose web ui
- 8081:8081 #expose management api
14 changes: 7 additions & 7 deletions src/main/resources/config/application-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,16 @@ spring:
# Remove 'faker' if you do not want the sample data to be loaded automatically
contexts: dev, faker
mail:
host: smtp.gmail.com
username:
password:
port: 587
host: localhost
username: myuser
password: mysecretpassword
port: 8025
protocol: smtp
tls: true
tls: false
properties.mail.smtp:
auth: true
starttls.enable: true
ssl.trust: smtp.gmail.com
starttls.enable: false
ssl.trust:
messages:
cache-duration: PT1S # 1 second, see the ISO 8601 standard
thymeleaf:
Expand Down

0 comments on commit 7f1512b

Please sign in to comment.