- Ensure that you have a working Docker installation
- Create the folder
conf.don your working path - Download and copy the
default.conffrom this gist into theconf.dfolder - Run the docker command
docker run -p 80:80 -v <working-path>/conf.d:/etc/nginx/conf.d --name nginx-logging openresty/openresty:alpine
Make sure you replace the <working-path> with the full path of the directory that contains the conf.d folder.