Make a Node.js web app reachable | NodeFlux.eu Docs

Bind an Express, Fastify, or similar app to the service port provided by the panel.

Steps

  1. Read the assigned port from the service details in the manager.
  2. Configure the application to use the supplied PORT environment value when available, with a safe local fallback for development.
  3. Bind the server to 0.0.0.0 inside the container instead of only localhost.
  4. Start the service and check the log for a line confirming the listening port.
  5. Test the public host and assigned port from a browser or HTTP client.

Notes

Warning

If the app listens only on localhost, it may work inside the container but remain unreachable to users.