cURL'ing the public domain from within a container


#1

Hi there,

I’m the author of the WP2Static plugin for WordPress and up against an issue one of my users had with another Docker setup prior.

It may be late night brain fatigue or general lack of networking smarts, but need some help debugging this:

  • mydomain.com pointing to my EE box
  • WordPress site setup and accessible via mydomain.com
  • cURL from within the ee shell of mydomain.com to mydomain.com results in:

curl: (7) Failed to connect to mydomain.com port 80: Connection refused

This is the same issue for my plugin, which crawls the WP site, using the Site URL.

I would prefer not to use a proxy or IPs, so looking for another way to allow the containers to access their respective domains.