I have set up two containers on an Ubuntu 20.4 server with NGINX as follows:
Both containers are accessible from the outside world and even I can access third-party APIs in the container. However, when I am trying to access container 1 from container 2 using its fully qualified domain, it times out.
I installed curl inside the container it seems that it cannot reach out to the host’s public IP address. What would be an appropriate solution? You may wonder why I am doing this because eventually these 2 services will be hosted on completely independent servers.