I had been trying the tutorial for docker following this link: http://geekyplatypus.com/dockerise-your-php-application-with-nginx-and-php7-fpm/
However I get stuck on where to display my own index.html in my /code path. Instead ,it displays the page of Welcome to nginx!. All of my files are the same as in the link. My files contained a code folder(inside is my index.html), docker-compose, site.conf where the same as the link.
I had search and try on many ways and couldn't get it to work. Appreciate if someone can point me a direction to proceed.
I am using docker toolbox on windows os.
Provided here is the configuration files for site.conf and docker-compose.yml
#site.conf
server {
index index.html;
error_log /var/log/nginx/error.log;
access_log /var/log/nginx/access.log;
root /code;
}
#docker-compose.yml
web:
image: nginx:latest
ports:
- "8080:80"
volumes:
- ./code:/code
- ./site.conf:/etc/nginx/conf.d/site.conf