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.

  • do I need to manually tag “latest” when pushing to docker public repository?
  • Docker container - how to configure so it gets a viable IP address when running in vagrant?
  • Use Dokku Environment variables in DockerFile
  • Docker: data volume container is not instantiated with `docker create` command
  • Docker, monitoring container status, alerts
  • Possible to build and run Docker images in Linux VM on Parallels on OS X?
  • 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?

  • Docker-compose cannot start mysql, permission denied to /tmp
  • Change “hosts” / “-h” Docker for Windows in daemon.json
  • Docker Beta on Mac : Cannot use ip to access nginx container
  • Docker For Mac Beta16 Error: Pinata Command Not Found
  • How do get docker working after software installation?
  • Docker: TLS handshake timeout
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.