I would like to use a docker container to run NodeJS Stack (node, grunt, npm, bower, hell…).
Docker is perfect for that. Therefore the SPA into container need to speak with the backend installed on MacOS (not into a container because dev mode). So how can i contact the local host ?
The Mac’s localhost (127.0.0.1) IP is translated to something inside the container. I think this varies from one system to the next, so you need to find out:
cat ~/Library/Containers/com.docker.docker/Data/database/com.docker.driver.amd64-linux/slirp/host
192.168.65.1
This means you can get to the Mac’s 127.0.0.1 from inside the container via 192.168.65.1.