Injecting the elastic beanstalk server URL into the node.js configuration using Docker
I have a Single Container Docker Elastic Beanstalk instance running my-server node.js web server application. Elastic Beanstalk gives the server URL like http://my-server.qwe8z32qw3.us-west-1.elasticbeanstalk.com.
My node.js server sends information to another service, so I want to indicate the information is coming from that server URL and I want to give the service an html link directly to my-server.
So my node.js application would like to know it’s server URL.
Is there a way to inject the server URL or server hostname my-server.qwe8z32qw3.us-west-1.elasticbeanstalk.com into the docker host so I can get to it with a ebextension script?
Or is there another way?