How to set SMTP config to use localhost?

So in such a case you need to use the public IP or is thre a special IP scheme that Docker uses? For example, within the host I see docker0 with 172.17.0.1 and within the container (./launcher enter app; apt-get install ifconfig) eth0 is 172.17.0.2. I suspect I should use the host’s 172.17.0.1 w/in the discourse container, but I wouldn’t want it to change on me somehow and at some point.