Skip to content

Commit

Permalink
dev: Add smtp4dev for local testing of email themes
Browse files Browse the repository at this point in the history
  • Loading branch information
hangy committed Mar 26, 2024
1 parent d4c6abc commit d8cb03c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
12 changes: 11 additions & 1 deletion conf/open-products-facts-realm.json
Original file line number Diff line number Diff line change
Expand Up @@ -1550,7 +1550,17 @@
"xXSSProtection": "1; mode=block",
"strictTransportSecurity": "max-age=31536000; includeSubDomains"
},
"smtpServer": {},
"smtpServer": {
"replyToDisplayName": "",
"starttls": "false",
"auth": "",
"replyTo": "",
"host": "smtp",
"from": "[email protected]",
"fromDisplayName": "Open Products Facts",
"envelopeFrom": "",
"ssl": "false"
},
"loginTheme": "off",
"accountTheme": "off",
"eventsEnabled": true,
Expand Down
11 changes: 9 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ services:
condition: service_started
redis:
condition: service_started

smtp:
condition: service_started

keycloak_postgres:
image: postgres:12-alpine
Expand All @@ -37,13 +38,19 @@ services:
ports:
- 5601:5432


redis:
image: redis:7-alpine
volumes:
- redisdata:/data

smtp:
image: rnwood/smtp4dev:3.3.4-ci20240323113
volumes:
- smtpdata:/smtp4dev
ports:
- 2580:8080

volumes:
dbdata:
redisdata:
smtpdata:

0 comments on commit d8cb03c

Please sign in to comment.