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

Proxy a non-standard port to proxy #5

Open
adocampo opened this issue Dec 9, 2017 · 2 comments
Open

Proxy a non-standard port to proxy #5

adocampo opened this issue Dec 9, 2017 · 2 comments
Labels

Comments

@adocampo
Copy link

adocampo commented Dec 9, 2017

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!

@cdauth
Copy link
Member

cdauth commented Dec 11, 2017

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.

@adocampo
Copy link
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
Labels
Projects
None yet
Development

No branches or pull requests

2 participants