localhost:8000 resolves to localhost and "this site can't be reached" but localhost:8000/services works

admin

Administrator
Staff member
When I enter
Code:
localhost:8000
in my Chrome browser, it redirects to
Code:
localhost
and gives me the ol' "This site can’t be reached - localhost refused to connect."

Going to
Code:
localhost:8000/wp-admin
and
Code:
localhost:8000/services
both work fine.

I am using <a href="https://github.com/brainbytes/docker-compose-wordpress" rel="nofollow noreferrer">Docker-Wordpress-Compose</a>.

Here is my hosts file:

Code:
127.0.0.1       localhost
255.255.255.255 broadcasthost
::1             localhost

Here is what I get when I
Code:
ping localhost

Code:
PING localhost (127.0.0.1): 56 data bytes
64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=0.042 ms
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.013 ms
64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.038 ms
64 bytes from 127.0.0.1: icmp_seq=3 ttl=64 time=0.057 ms
64 bytes from 127.0.0.1: icmp_seq=4 ttl=64 time=0.049 ms

And when I
Code:
ping localhost:8000

Code:
ping: cannot resolve localhost:8000: Unknown host