deploy: add elastic email
Some checks failed
Checks / check (push) Failing after -6m31s
Build and Push Docker Image / Build and Push Image (push) Successful in -6m39s

This commit is contained in:
Vladimir Rubin 2024-12-26 20:02:09 +02:00
parent 6172e477b1
commit 7ba1305c88
Signed by: vavakado
GPG key ID: CAB744727F36B524
2 changed files with 11 additions and 0 deletions

View file

@ -122,4 +122,13 @@ if config_env() == :prod do
# config :swoosh, :api_client, Swoosh.ApiClient.Hackney
#
# See https://hexdocs.pm/swoosh/Swoosh.html#module-installation for details.
config :your_app, YourApp.Mailer,
adapter: Swoosh.Adapters.SMTP,
relay: "smtp.elasticemail.com",
port: 2525,
username: System.get_env("ELASTIC_EMAIL_USERNAME"),
password: System.get_env("ELASTIC_EMAIL_PASSWORD"),
ssl: false,
tls: :always,
auth: :always
end

View file

@ -9,6 +9,8 @@ services:
- DATABASE_URL=${DATABASE_URL}
- SECRET_KEY_BASE=${SECRET_KEY_BASE}
- EXMR_ENABLE_REGISTRATION=true
- ELASTIC_EMAIL_USERNAME=${ELASTIC_EMAIL_USERNAME}
- ELASTIC_EMAIL_PASSWORD=${ELASTIC_EMAIL_PASSWORD}
depends_on:
- db