Skip to content

Proxy listening to multiple ports #921

@edemaine

Description

@edemaine

I'd like http://host:80 to forward to one docker, and http://host:4000 to forward to another docker. Essentially I want VIRTUAL_HOST=host:80 for one docker and VIRTUAL_HOST=host:4000 for another docker. Is this possible? (This is different from VIRTUAL_PORT, which is specifying the exposed port on the docker.)

Obviously I could do this with two nginx-proxy's. The challenge is that I actually want to do this with both http and https traffic, using docker-letsencrypt-nginx-proxy-companion, with two ports for accessing each docker. Maybe that'll still be OK with two nginx-proxy's? Or is there a cleaner way?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions