Introducing our new CEO Don Johnson - Read More

6eh01der/nginx-win

By 6eh01der

Updated 5 months ago

nginx for windows

Image
Web Servers
0

45

nginx for windows in docker

https://github.com/6eh01der/nginx-win-servercore

This variant based on full featured, production ready nginx for windows http://nginx-win.ecsds.eu/.

Because nginx-win require vcredist (C++ 2010 ) and nanoserver support only MSIX packages this dockerfile based on servercore image for ability to deploy required packages (vcredist_x86.exe & vcredist_x64.exe).

Run

docker run -d --name nginx --expose 80 -p 80:80 nginx-win-servercore

Override conf directory for example by mounting from host:

docker run -d --name nginx --expose 80 -p 80:80 -v .\conf:C:\nginx-win\conf nginx-win-servercore

Override healthcheck port to specific port configured in nginx:

docker run -d --name nginx --expose 80 -p 80:8080 -e PORT=8080 nginx-win-servercore

Docker Pull Command

docker pull 6eh01der/nginx-win