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

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.

  • How to extend the scope of Docker Macvlan driver from Local to Swarm
  • Is it possible to devep web applications (PHP/Ruby) using Docker without PHP/Ruby on host?
  • Docker not installing composer dependencies after image built
  • How to access host DB from Docker container?
  • Docker difference between Dockerfile VOLUME and docker run -v command
  • Ignore redmine prompt when building dockerfile
  • 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 into the docker host so I can get to it with a ebextension script?

    Or is there another way?

  • How to start multiple processes for a Docker container in a bash script
  • Element not found after new sessions is created
  • Deleting files inside docker container not freeing up space on host system
  • For a web application, does it make sense to have two separate containers for template and api server?
  • Can't access storage account
  • Docker volume performance degradation
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.