Skip to content

Proxy a non-standard port to proxy #5

Open

Description

@adocampo

Hello,

I've just discovered your container, it's very interesting and it seems it can do what I want in a easy way, I would like to proxy my web application on the 8888 port inside the container, to the 443 on the proxy. Let's say the published name would be "app1.example.com".

How can I accomplish that?

As a side question, if I want to add another host "app2.example.com:8083" to the 443 on the proxy as well, once the docker container is created and running, how can I do it? Should I remove the container and re-create it with the new environment vars?

Thank you!

Activity

  1. cdauth commented on Dec 11, 2017

    @cdauth
    Member

    I must admit that I’m not using the image myself anymore, I have switched to nginx-proxy, as the letsencrypt certificate generation is more reliable there. (With my image, sometimes when there was an error, it would just try again and again and use up the quota of failures.)

    I don’t know exactly what you mean, but I suppose that you just need to add an environment variable HOST_app1_example_com=http://myapp:8888/.

    For adding hosts, yes, you need to recreate the container. I recommend to use docker-compose to manage the container, it will recreate it automatically when you change something.

  2. adocampo commented on Dec 11, 2017

    @adocampo
    Author

    Thank you for your response. I also saw the nginx-proxy, and I think I will also use that, because seem more wide used and maintained.
    Thank you anyway :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions