手っ取り早く Nginx の Conf を動作確認する
nginx.conf を用意
code:nginx
server {
server_name _;
listen 80;
location / {
...
}
}
Dockerで起動
code:nginx.conf
docker run -it -p 8888:80 -v $(pwd)/nginx.conf:/etc/nginx/conf.d/default.conf nginx
http://0.0.0.0:8888
を開く
#nginx
#docker