New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
port mapping not working? #362
Comments
Can you provide more information? how are the containers configured and started? using the new docker networking? how does the generated nginx config look? |
The problem, as far as I can see, comes from using version 2.0 docker-compose files. The same file, written in version 1, works. When written in version 2.0, it doesn't. The only difference is that in version 2, the file starts with: version: "2" Using version 2, the proxy container's /etc/nginx/conf.d/default.conf file shows entries without a host ip address, like this: When using version 1, the entry shows an ip address: upstream www.frimus.org { |
Here are the versions of docker and docker-compose I use: |
Resolved by #337. |
I have a bunch of docker containers, which obviously must each expose different ports.
I want to use the proxy so that each container is accessible via a different url, but all with port 80. That is the whole point, isn't it.
This used to work, but not anymore.
Now each container works only on its original port.
For example, if I have defined a container with nginx on port 8001, and I map it to my.hostname.org, then I can only open it in a browser with this url: http://my.hostname.org:8001
http://my.hostname.org gives me a nginx "service unavailable error" message.
The text was updated successfully, but these errors were encountered: