diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml index 3aa6329e..1091a2c0 100644 --- a/docker-compose.prod.yml +++ b/docker-compose.prod.yml @@ -3,18 +3,19 @@ services: image: boky/postfix restart: unless-stopped container_name: cmc-prod-postfix - # Staging: relay to Mailpit (no authentication required) + # Production: relay to Gmail SMTP environment: - - RELAYHOST=mailpit:1025 - ALLOWED_SENDER_DOMAINS=cmctechnologies.com.au - # --- Gmail SMTP relay settings (uncomment for production) --- - # - RELAYHOST=smtp-relay.gmail.com - # - RELAYHOST_PORT=587 - # - SMTP_USERNAME=sales - # - SMTP_PASSWORD=S%s'mMZ})MGsg$k!5N|mPSQ> - # - SMTP_TLS_SECURITY_LEVEL=encrypt - # - SMTP_USE_TLS=yes - # - SMTP_USE_STARTTLS=yes + # Gmail SMTP relay settings + - RELAYHOST=smtp-relay.gmail.com + - RELAYHOST_PORT=587 + - SMTP_USERNAME=sales + - SMTP_PASSWORD=S%s'mMZ})MGsg$k!5N|mPSQ> + - SMTP_TLS_SECURITY_LEVEL=encrypt + - SMTP_USE_TLS=yes + - SMTP_USE_STARTTLS=yes + # --- Mailpit relay (for testing only) --- + # - RELAYHOST=mailpit:1025 ports: - "25:25" networks: