visiblevc / wordpress-starter

A slightly less shitty wordpress development workflow
688 stars 167 forks source link

Working with local hostnames #153

Closed keskistok closed 4 years ago

keskistok commented 5 years ago

This is not really an issue. It's more of a general question. Im trying to figure out how to work with local hostnames when using this setup.

I have tried adding the IP address of the running wordpress container to my /etc/hosts file, but when trying to access the attached hostname I don't get any response.

Do you have any suggestions?

signaleleven commented 5 years ago

If you are using something similar to the example docker-compose, the container ports are exposed on the host. You can put 127.0.0.1 in /etc/hosts, not the container IP, to test with hostnames.