-
Notifications
You must be signed in to change notification settings - Fork 164
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
Bind 0.0.0.0 in docker env #57
Comments
it's a sensible thing to do if by default we want a working service limiting options and arguments when running |
I would do this by default if bundled within docker. |
Closed in #58 |
Damn'it I'm too late. Just ran into it when using docker. Would have been easier if I had seen this earlier. |
I think something is broken here.
When running on regular Node I get But when running in Docker I get Wasn't this PR by @mcollina supposed to add It seems now it's actually overwriting the address and using Or maybe I'm missing something... |
I do not think you are running your server using fastify-cli. Are you using this module at all? The snippet above is not from this module. |
Ooops sorry @mcollina I totally missed this wasn't the main Fastify repo. |
If you run a Fastify server in Docker by default it will run on the address
127.0.0.1
which is not reachable from outside.We can add an is docker check and if it is true, use
0.0.0.0
instead of127.0.0.1
.What do you think?
The text was updated successfully, but these errors were encountered: