✅ connecting docker container from localhost
hello, i built a backend and created a mongo in docker. and then I wrote a docker compose then I check inside of docker containers. both working fine but I can't connect from my pc. what's the problem?



ports are outside:inside27018:27017 maps 27018 on the host to 27017 inside the containerNetworked service-to-service communication uses the CONTAINER_PORT
both working fine but I can't connect from my pc.

Now listening on ...:8080
80808000:8080localhost:27018

portsoutside:inside27018:270172701827017Now listening on ...:808080808000:8080localhost:27018