rapid NGINX prototyping with docker

Since I have to try new rewrite rules or build POC implementations from time to time, I started using docker for rapid prototyping. Here is an easy 4 step tutorial how to do that. Step 1 extract a default config from the nginx container. docker run --rm -v $(pwd):/tmp/demo nginx cp /etc/nginx/conf.d/default.conf /tmp/demo/ Step 2 edit the default.conf Step 3 run the container with the edited default.conf docker rm -f nginx-demo || true; \ <br/> docker run --name nginx-demo -p7000:80 -v $(pwd):/etc/nginx/conf....

20.06.2018 · itsmethemojo