instead of using the ip we can use hostname which can be easily set while building the docker and since it does not change no matter what we can communicate easily without worrying about dynamic ip. we can add the host name either in yml file or Dockerfile.
instead of using the ip we can use hostname which can be easily set while building the docker and since it does not change no matter what we can communicate easily without worrying about dynamic ip. we can add the host name either in yml file or Dockerfile.