Leverage Docker images and containers to create an isolated Node development environment that runs a server.
So this doesn’t work for me when I use
docker-compose run, but does work when I use
docker run. When using docker-compose I always get “Site can’t be reached”.
You have to use “–service-ports” with “docker-compose run …” Otherwise, the ports aren’t exposed and mapped. This post should be edited to reflect that fact.
Yep that fixed it. Thanks!
Great catch! That was on oversight on my part. Thank you for helping out @unclejustin I was out sick these past days.
I will be updating the post right away
Do you have any developers using Windows? Concurrent file access with host mounted volumes appears to be a problem experienced in Docker for Windows: https://github.com/docker/for-win/issues/969
@jzamor Thank you for bringing up this concern! I am currently in the process of researching Docker in a Windows environment and also Windows Containers. I am waiting for a few resources to line up to be able to provision a native Windows OS Please stay tuned and thank you for reading