Skip to content

Enforce hostname#2

Open
phildionne wants to merge 1 commit intoletsdiscodev:mainfrom
phildionne:fix-hostname
Open

Enforce hostname#2
phildionne wants to merge 1 commit intoletsdiscodev:mainfrom
phildionne:fix-hostname

Conversation

@phildionne
Copy link
Contributor

Next.js standalone server.js binds to process.env.HOSTNAME when set.

In Docker Swarm, HOSTNAME resolves to the container IP on its "primary" network, which can make the server listen only on one interface. Force 0.0.0.0 so the service is reachable from all attached overlay networks (e.g. reverse proxy).

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

Successfully merging this pull request may close these issues.

1 participant