You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This works fine and is reachable by my web app container if I pass a VIRTUAL_HOST=app.docker and VIRTUAL_PORT=3000. However, in other containers, where I'd like to reach the VIRTUAL_HOST, I can't. Even in my "web" container I can't curl by the VIRTUAL_HOST. Any ideas how to make the VIRTUAL_HOST available on my other containers? Do I need to pass VIRTUAL_HOST for every container? I'm still unsure. Any help would be appreciated. Thanks.
The text was updated successfully, but these errors were encountered:
You need to send the request from your other containers to your nginxproxy container's port 80 and specify the correct Host header. You could probably specify some extra_hosts config options to your other containers to create hosts entry for app.docker <your host ip>. You could also look at: http://engineering.ifttt.com/oss/2015/10/06/developing-with-docker/ which uses dnsmasq to handle DNS resolution locally.
I'm using a
docker-compose.yml
to run my web app and have brought innginx-proxy
as a container:This works fine and is reachable by my web app container if I pass a
VIRTUAL_HOST=app.docker
andVIRTUAL_PORT=3000
. However, in other containers, where I'd like to reach theVIRTUAL_HOST
, I can't. Even in my "web" container I can't curl by theVIRTUAL_HOST
. Any ideas how to make theVIRTUAL_HOST
available on my other containers? Do I need to passVIRTUAL_HOST
for every container? I'm still unsure. Any help would be appreciated. Thanks.The text was updated successfully, but these errors were encountered: