Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
2 changes: 1 addition & 1 deletion config/dashboard.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ mixpanel_token=""
[default.features]
test_live_toggle=false
is_live_mode=false
email=false
email=true
quick_start=false
audit_trail=true
system_metrics=false
Expand Down
14 changes: 11 additions & 3 deletions config/docker_compose.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ""
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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

Expand All @@ -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
Expand Down
10 changes: 9 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,18 @@ 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:
image: juspaydotin/hyperswitch-router:standalone
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you revert this change?

image: juspaydotin/hyperswitch-router:nightly
pull_policy: always
command: /local/bin/router -f /local/config/docker_compose.toml
ports:
Expand Down
Loading