Skip to content

Latest commit

 

History

History
38 lines (33 loc) · 493 Bytes

README.md

File metadata and controls

38 lines (33 loc) · 493 Bytes

Nginx

docker run -ti -v /demo:/shared -e WEB_CONF=/shared/etc/local.conf -p 80:80 netyazilim/nginx
 \demo
├───etc
└───www
# local.conf
server {
    listen       80;
    server_name  localhost;


    location / {
	    root   /shared/www;
        index  index.html index.htm;
    }

}
index.html

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Demo</title>
</head>
<body>
Demo
</body>
</html>