New answers tagged

0

When you use network_mode host, the published ports are ignored, which means the ports that are open in the containers will be the same port in the host. Does not matter what you had declared in ports The default behavior is every service in the compose can talk to each other. Links are not required to enable services to communicate - by default, any ...


0

Instead of using network_mode to host, you can simply make use of links (new versions uses networks) which will make the communication to happen between two containers. I have updated the docker-compose.yaml file and added links to connect database service (database container) to be accessed from your backend service. In your backend database configuration, ...


Top 50 recent answers are included