I am trying to run a docker-compose application with the following configuration:
version: '3' services: server: build: context: . dockerfile: ./docker/server/Dockerfile network_mode: "host" ports: - "8071:8071"
So when I try to use the host network (local machine) and then make the ports accessible for my APIs to be tested, it doesn’t make them accessible. Why is this so? What should the ideal solution to this problem? Do I have to run in my local Kubernetes to achieve this or is there some other way I can do without Kubernetes?