Skip to content

Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation

feat(email): Add mailhog by default in docker-compose for local smtp server (#6869)

Jagan100a1783ac79
diff --git a/config/docker_compose.toml b/config/docker_compose.toml
index cfdf4b0e0c..4296a5931d 100644
--- a/config/docker_compose.toml
+++ b/config/docker_compose.toml
@@ -55,9 +55,9 @@ master_enc_key = "73ad7bbbbc640c845a150f67d058b279849370cd2c1f3c67c4dd6c869213e1
password_validity_in_days = 90
two_factor_auth_expiry_in_secs = 300
totp_issuer_name = "Hyperswitch"
-base_url = "http://localhost:8080"
+base_url = "http://localhost:9000"
force_two_factor_auth = false
-force_cookies = true
+force_cookies = false
[locker]
host = ""
@@ -572,6 +572,7 @@ authentication_analytics_topic = "hyperswitch-authentication-events"
[analytics]
source = "sqlx"
+forex_enabled = false # Enable or disable forex conversion for analytics
[analytics.clickhouse]
username = "default"
@@ -695,7 +696,7 @@ connector_list = "cybersource"
sender_email = "[email protected]" # Sender email
aws_region = "" # AWS region used by AWS SES
allowed_unverified_days = 1 # Number of days the api calls ( with jwt token ) can be made without verifying the email
-active_email_client = "NO_EMAIL_CLIENT" # The currently active email client
+active_email_client = "SMTP" # The currently active email client
recon_recipient_email = "[email protected]" # Recipient email for recon request email
prod_intent_recipient_email = "[email protected]" # Recipient email for prod intent email
@@ -707,6 +708,13 @@ sts_role_session_name = "" # An identifier for the assumed role session, used to
[theme.storage]
file_storage_backend = "file_system" # Theme storage backend to be used
+# Configuration for smtp, applicable when the active email client is SMTP
+[email.smtp]
+host = "mailhog" # SMTP host
+port = 1025 # SMTP port
+timeout = 10 # Timeout for SMTP connection in seconds
+connection = "plaintext" #currently plaintext and starttls are supported
+
[theme.email_config]
entity_name = "Hyperswitch" # Name of the entity to be showed in emails
entity_logo_url = "https://example.com/logo.svg" # Logo URL of the entity to be used in emails
diff --git a/docker-compose.yml b/docker-compose.yml
index 7450a65011..4bc08b09f6 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -51,6 +51,14 @@ services:
environment:
# format -> postgresql://DB_USER:DB_PASSWORD@HOST:PORT/DATABASE_NAME
- DATABASE_URL=postgresql://db_user:db_pass@pg:5432/hyperswitch_db
+
+ mailhog:
+ image: mailhog/mailhog
+ networks:
+ - router_net
+ ports:
+ - "1025:1025"
+ - "8025:8025"
### Application services
hyperswitch-server: