how to reach another container from a dockerised nginx
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have nginx in a docker container, and a nodejs webapp in another docker container. The nodejs server is reachable from the host server on port 8080. The nginx docker container is listening to port 80 (will do the certificate later, first this base must be working). And now I want a subdomain to be forwarded to this 8080 nodejs app. lets say app1.example.com From outside I can reach the app by te server ip (or hostname) and port 8080 but not on app1.example.com. And it does work on app1.example.com:8080 (I have opened up port 8080 on the