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

Swarm mode and cross network proxy reversing #63

Closed
xgenvn opened this issue Apr 12, 2018 · 5 comments
Closed

Swarm mode and cross network proxy reversing #63

xgenvn opened this issue Apr 12, 2018 · 5 comments

Comments

@xgenvn
Copy link

xgenvn commented Apr 12, 2018

Hi,

I have a question about this setup:

  • a.example.com -> nginx (docker-nginx) (192.168.51.111) -> (resolved to external IP) 192.168.51.122

Is it possible to have cross machine proxy reversing using docker nginx proxy?

Thanks.

@evertramos
Copy link
Owner

I did not understand your question... Could clarify, please.

@xgenvn
Copy link
Author

xgenvn commented Apr 13, 2018

@evertramos
I meant like below setup:

docker-nginx

For my understanding, it's not possible, I just want to ask if I miss something here (mostly network layer options in docker)

@thunfischbrot
Copy link

It is possible if you add another layer. The connection „External Network“ doesn‘t originate at docker-nginx, but at a service below, which can be another nginx instance (or any other reverse proxy). It‘s reverse proxies all the way down...

@evertramos
Copy link
Owner

Hello @xgenvn !

Well I have never tested that and not sure how would work using swarm as you mentioned in the question.

But as you designed I think might be possible, but the point is how you will create a docker network with another server... not sure how you will do it.

I think might not be possible with this setting the way it was designed.

Might get some other option with traefik, I am starting a new proxy with it which will have a couple more options for settings.

@xgenvn
Copy link
Author

xgenvn commented Apr 16, 2018

@evertramos @thunfischbrot I'll try with another service running under nginx-docker network, and resolving to external network. Thank you a lot.

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

3 participants