Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

*.docker.localhost only works in chrome

Tags:

docker

traefik

We are using docker4drupal with our sites for local development. The problem is that the sites only work in Chrome. Another user had the same issue here.

Here is output of cat /etc/hosts inside my container:

127.0.0.1   localhost
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
172.20.0.5  d012518e289d
like image 320
albertski Avatar asked Sep 10 '25 15:09

albertski


1 Answers

I was able to solve this by adding this to my host file:

127.0.0.1 mysite.docker.localhost
like image 79
albertski Avatar answered Sep 13 '25 04:09

albertski