diff --git a/README.md b/README.md index 3b4c25eb45..4b6167c5fc 100644 --- a/README.md +++ b/README.md @@ -102,10 +102,9 @@ fastify generate For more information, see the [Fastify CLI documentation](https://github.com/fastify/fastify-cli). -#### Note - -`.listen` binds to the local host, `localhost`, interface by default (`127.0.0.1` or `::1`, depending on the operating system configuration). -See [the documentation](https://github.com/fastify/fastify/blob/master/docs/Server.md#listen) for more information. +> ## Note +> `.listen` binds to the local host, `localhost`, interface by default (`127.0.0.1` or `::1`, depending on the operating system configuration). If you are running Fastify in a container (Docker, [GCP](https://cloud.google.com/), etc.), you may need to bind to `0.0.0.0`. Be careful when deciding to listen on all interfaces; it comes with inherent [security risks](https://web.archive.org/web/20170711105010/https://snyk.io/blog/mongodb-hack-and-secure-defaults/). +> See [the documentation](https://github.com/fastify/fastify/blob/master/docs/Server.md#listen) for more information. ### Core features