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

Is this only for static file servers? #14

Open
adam-beck opened this issue Jan 6, 2015 · 1 comment
Open

Is this only for static file servers? #14

adam-beck opened this issue Jan 6, 2015 · 1 comment

Comments

@adam-beck
Copy link

I may be using this Dockerfile/container incorrectly but I have not yet been able to use it as a proxy for a very simple ExpressJS application that I have running.

Does this Dockerfile only serve static content that is provided by the mounted volume? I receive 502 errors when trying to use the proxy_pass directive. I'm not sure I quite understand how Docker contains ports but I can obviously access port 80 from outside the container. I guess a better question would be: is the container able to access my node server I have running on my localhost port 3000 (which is not part of the container)? Is there some configuration or is this just simply not possible?

@pikeas
Copy link

pikeas commented Mar 3, 2015

@adam-beck Run the node server in a separate container and use a docker link.

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

2 participants