Closed Prakash4844 closed 10 months ago
okay, so i found the problem, Even when running with -p 80:8080
it shows nginx welcome screen.
so i investigated and ran docker port [container id]
which provided output as:
╰─>$ docker port 0869652af579
8080/tcp -> 0.0.0.0:80
8080/tcp -> [::]:80
so when i access the 0.0.0.0:80 in browser i got proper phpinfo() page.
don't know if this is supposed to happen as readme explicitly mention localhost
upon closer inspection, i see that default.conf
listens to port 8080 and Dockerfile exposes Port 8080.
Readme mentions:
Start the Docker container:
See the PHP info on http://localhost/, or the static html page on http://localhost/test.html
but i am getting the nginx welcome page when starting the container
here's nginx output: