I’m running into a bug. To be totally honest, I think it’s a docker problem but since I’m using Docker only for Discourse I’m taking my chances and I think others might be interested here.
Recently my discourse install (https://forum.domainname.com/) was on the same server as my website (https://www.domainname.com/) with Nginx as reverse proxy.
I moved the discourse install to a new server with the same configuration (Nginx as reverse proxy). Everything was fine until I moved my website to the new server.
Some people told me that the Onebox feature wasn’t working anymore. As I investigated I realised that it wasn’t working only for my domain name.
So I tested entering the docker container and the thing is I can’t connect to my website from within the docker container, all other external IP are working but I can’t connect to my server external IP nor localhost.
Honestly I don’t understand why, the configuration is exactly the same as the old server.
Does your /etc/hosts have your hostname with 127.0.0.1 as the address?
If so, remove the local host ip, as the container can’t connect there. (You bought also be able to include the external host ip in the hosts file of the container.
It’s not a DNS issue as the docker container finds the good domain name IP address. When I curl from the discourse container the request time out as it can’t connect to the 443 port.