docker-magento2 icon indicating copy to clipboard operation
docker-magento2 copied to clipboard

no access through localhost

Open hazaeluz opened this issue 5 years ago • 3 comments

I did install everything, it seems to be working fine, except, when I type http://localhost I get nothing.

This site can’t be reachedlocalhost refused to connect. Try:

Checking the connection Checking the proxy and the firewall ERR_CONNECTION_REFUSED

hazaeluz avatar Nov 25 '20 01:11 hazaeluz

+1

thanh767 avatar Jun 12 '21 11:06 thanh767

+1

waynetheisinger avatar Jun 19 '21 07:06 waynetheisinger

OK docker ps gives

PORTS                            NAMES
0.0.0.0:51757->80/tcp            meanbee_varnish_1
443/tcp, 0.0.0.0:51756->80/tcp   meanbee_web_1
0.0.0.0:51755->9000/tcp          meanbee_fpm_1
0.0.0.0:51750->3306/tcp          meanbee_db_1

I think this is because in the sample docker-compose.yml the ports are given as:

    ports:
      - 80

Not

      - '80:80'

So docker seems to choose a random port on the host

Now FPM is refusing to launch with root as the user but that is a different issue...

waynetheisinger avatar Jun 19 '21 07:06 waynetheisinger