I’m new to Docker Compose and running into an issue with Docker and nginx, where every request to my server is generating a 404 error with a “File not found” message.
Have you tried without the custom nginx config? If it works with the default and an HTML, then it is an nginx configuration issue rather than Docker. Except if you refer to the php container incorrectly. But the file that would help to help is the nginx config which is not shared.
What gives you the 404? Is it the PHP application. or nginx?
No, I meant that you mounted the default config into the container. Did you also remove that? Using the original image without building one with a custom config was necessary, I it would not make a difference without removing the mount line.
Thanks! I removed the custom config, and managed to get things working again. Not sure exactly which line was the issue, but after redoing the tutorial I have nginx up and running.
My current issue is that I can’t get nginx to find/see a new MariaDB database created, but will try some more troubleshooting for that.