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
Support exposing multiple ports per virtual host #1405
Conversation
I need this so much! |
Same here, this is a precious feature, great work ! |
MEEERGE I NEED THIS |
I really need this...in case containers in development env different to env production |
+1 |
This would be great to have. Would love to run unifi-controller on a reverse proxy but requires multiple ports exposed. |
Thanks @BobSilent for the code! 🎉 I couldn't wait for it to be merged so I built my own image with docker-gen binary compiled from nginx-proxy/docker-gen#319, but I was getting this during proxy container startup: |
Never mind, figured it out 😤 There's a typo in the variable name (mind the missing |
Hi @lusk & @BobSilent, |
Superseded by #2434 |
Allows to have different ports for multiple virtual hosts.
VIRTUAL_PORT
can have a list of port mappingshostPort:containerPort
or as of now onlycontainerPort
.E.g.
VIRTUAL_PORT=443:80,3000,4000:8086
will expose containter port 80 to host port 443, 3000 to 3000 and container port 8086 to host port 4000.For Backward compatibility: providing only a single containerPort, the port will be mapped to either Port 80 or 443 as of today.
requires nginx-proxy/docker-gen#319