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

Multiple port and site support #61

Closed
marvincaspar opened this issue Oct 13, 2015 · 9 comments
Closed

Multiple port and site support #61

marvincaspar opened this issue Oct 13, 2015 · 9 comments
Labels

Comments

@marvincaspar
Copy link

marvincaspar commented Oct 13, 2015

It would be nice if traefik can handle multiple ports and connect different web applications to different port, such as docker-gen works.

At the moment I work wich docker-gen and my docker-compose file from each of my application looks like this:

web:
  image: nginx:latest
  ports:
    - "50020:80"
    - "50021:443"
  environment:
    VIRTUAL_HOST: demo-project
  links:
    - "php"
  volumes:
    - ./logs/nginx:/var/log/nginx
    - ./nginx/ssl:/etc/nginx/ssl
  volumes_from:
    - php

php:
  image: mc388/docker-php:latest
  ...

The docker-gen maps this application to port 50020 and 50021. Via the VIRTUAL_HOST parameter the proxy knows to which port the request is forwarded.

An other feature could be to config separate ssl certs for each web application.

If traefik can handle something like this, it would be very nice.

@vdemeester vdemeester added the kind/enhancement a new or improved feature. label Oct 13, 2015
@F0rth
Copy link

F0rth commented Oct 31, 2015

+1 for the ssl certs per frontends.

@emilevauge
Copy link
Member

I think you should be able to put multiple certs in the same file with different domains right now, and traefik should choose the good one. But I need to test it. We need to support TLS SNI.

@benschumacher
Copy link

@emilevauge Absolutely TLS SNI is a must. Should be relatively straight-forward w/Go.

@krohrsb
Copy link

krohrsb commented Jan 13, 2016

A way to define multiple host and port mappings for a single container would be very helpful.

@JasCodes
Copy link

@emilevauge Any plans on this brother?

@ylecuyer
Copy link

@emilevauge ping

@emilevauge
Copy link
Member

There is a proposal here #444. You are welcome to discuss on the rule format evolution :)

@rafilkmp3
Copy link

Still nothing ? This one port limit is holds my migration from nginx gen to traefik

@ldez
Copy link
Member

ldez commented May 30, 2017

Closed by #1257

@ldez ldez closed this as completed May 30, 2017
@traefik traefik locked and limited conversation to collaborators Sep 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests