I have my docker-compose.yml file like so:
web:
image: nginx:latest
volumes:
- /c/Users/marcin/docker/nginx-www/nginx/html/:/usr/share/nginx/html/
ports:
- "80:80"
In /c/Users/marcin/docker/nginx-www/nginx/html/ I've created index.html file with the following content:
<html>
<head>
</head>
<body>
hello index
</body>
</html>
but when I look at my domain I see empty page, but looking in page source I see something like this:
<!DOCTYPE html>
<html>
<head>
<title>Welcome to nginx!</title>
It seems Docker is using default Nginx file and takes only part of it (probably the exact length of it as it is in my index.html file. With other files for example abc.html there's no such issue (probably because it does not exist by default in Nginx image). How can I solve this issue to display correct content of index.html file ?