containers-roadmap
containers-roadmap copied to clipboard
[fargate] [request]: document HOSTNAME environment variable behavior
Community Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
- Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment
It seems in the last few days, Fargate behavior changed, to where you cannot write the HOSTNAME environment variable through a task definition. Instead, it's overridden to the actual host's hostname.
For anyone who relied on that variable, it was a breaking change :)
I didn't see it in the environment variables available docs, so that should probably be called out.
Which service(s) is this request for? Only tested this on Fargate
Are you currently working around this issue? Changed envvar name.
we are running into this too
Is the environment variables documented? I can only find this gist which tells me AWS fargate overrides my HOSTNAME variable breaking my nextjs application.
Is the environment variables documented? I can only find this gist which tells me AWS fargate overrides my HOSTNAME variable breaking my nextjs application.
I think there are much better variables that should be used instead of HOSTNAME, for example LISTEN_HOST or even LISTEN_INTERFACE.