Skip to content
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

Feature request : Ability to serve other ports than 80 or 443 #221

Closed
afillatre opened this issue Oct 20, 2016 · 2 comments
Closed

Feature request : Ability to serve other ports than 80 or 443 #221

afillatre opened this issue Oct 20, 2016 · 2 comments

Comments

@afillatre
Copy link

afillatre commented Oct 20, 2016

My problem is the following: I'm using Spring Boot Applications in Docker containers, successfully exposed through the 80 and 443 ports with nginx-proxy. This works very well, but I need more :)

Spring boot app can expose 2 more ports, each : a management port, and a debug port.

I'd like to be able to expose those 2 ports, as well as the common one, through nginx-proxy. What I actually need is the reverse-proxy capability, so I can a have unique DNS for my container, and access multiple ports from it.

For explanation' sake, that would enable me to:

  • use the same port for multiple applications (has they're not directly exposed to the host
  • avoid having to manually map all needed ports to the host
  • keep my firewall rules simple (only 3 ports to open for all the application, rather than 3 for each)

I hope that's clear enough. One way to do that in the container configuration would simply be to have something like:

[environment]
VIRTUAL_HOST: bar.foo.com
VIRTUAL_PORTS:
  - "443:8080"
  - "18080:18080"
  - "18000:8000"

Then, the following URL could be used and point to the right container:

@afillatre
Copy link
Author

This actually related to #173

@buchdag
Copy link
Member

buchdag commented May 16, 2024

Handled by nginx-proxy since nginx-proxy/nginx-proxy#2434

@buchdag buchdag closed this as completed May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants