Per-container IP addressing is not possible.
This Docker Desktop for Mac can’t route traffic to containers. As of Docker v18.03+ you can use the host.docker.internal hostname to connect to your Docker host. How to get mac host IP address from a docker container?, Docker for Mac / Docker for Windows. The Mac has a changing IP Compare Hosting Sites 2020. Networking features in Docker Desktop for Mac, From the Docker documentation : I WANT TO CONNECT FROM A CONTAINER TO A SERVICE ON THE HOST.