I’m sure many of you know how to do this …I’m new to docker development.
I am planning to use Docker for wordpress development on my local Ubuntu box. I want to do the development in the container and then be able to browse to the site from a browser on my Host Computer.
In other words, if the domain for my wordpress site is http://www.nicehats.com, I want to be able to type http://www.nicehats.com in my browser and have it redirected to the (guest) site in the docker container (on my local ubuntu box) rather than to the site located out on a public server. What is the cleanest or most straightforward way to do this?
I’m assuming it just takes a line or two in /etc/hosts. Hopefully I’ll still be able to browse to other websites without changing my /etc/hosts (ie: obviously, I don’t want to redirect everything to the container).
Thanks in advance for the help.