Docker-compose docker for mac expose port localhost

broken image
broken image

Is it possible to get the desired configuration?

broken image

So that ports will be exposed as localhost:8825 and localhost:8835 on the hosting machine I want services inside backend network to be able to send outgoing requests to outer worldĪnother network is for the outside world, I need to expose only specific ports. Go-Service, PHP-Service, Consul and Mongo Db communicate over internal network not exposed to the outer world. The Outside World - is a network space of a hosting machine where the Docker daemon is running. Here is my docker-compose.yml file version: '3.3' I am trying to run my application containing from multiple containers