Mail configuration in docker

Hi there,

I'm somehow new to this, but I could manage to run the Countly with docker-compose.

I already read this document, but I really did not figure out how can I pass these environment variables. I want mails to be send through SMTP server of Gmail.

0

Comments

4 comments
  • Hey Danial, how are you?

    I hope you're doing well :)

    About your question: could you please inform us if you have already tried this environment variable injection?

    0
    Comment actions Permalink
  • Hey Kevin…

    I read that, but honestly I didn't find out how to inject them like that. I never saw yaml envs before, just simple `.env` files with equal signs.

    0
    Comment actions Permalink
  • Hey Danial, you can use docker-compose to deploy.

    Please check the template here. You can use L20 ~L23, to inject more SMTP related variables from this https://support.count.ly/hc/en-us/articles/360037814511-Docker-and-Kubernetes#email

    Please let me know if this helps.

    Best regards,

    1
    Comment actions Permalink
  • I tried to add this:

     23       - COUNTLY_CONFIG__MONGODB_HOST=mongodb
    24 - COUNTLY_CONFIG__MAIL_TRANSPORT=nodemailer-smtp-transport
    25 - COUNTLY_CONFIG__MAIL_CONFIG={ "host": "smtp.gmail.com", "port": 587, "ignoreTLS": true }
    26 - COUNTLY_CONFIG__MAIL_CONFIG_AUTH_USER=user@gmail.com
    27 - COUNTLY_CONFIG__MAIL_CONFIG_AUTH_PASS=P@$$

    But even I can find out there's something wrong here, specially in line 25 :D

    0
    Comment actions Permalink

Please sign in to leave a comment.