Ngnix Deployment

Firstly Spin up the server and pull the nginx image using docker

$ docker pull image nginx

Now let's get it running

$ docker container run --rm -p 80:80 nginx

Whatever HTTP traffic we receive on the webserver is forwarded to the nginx container via port forwarding

  • Since it's not running on the daemonized way - we get to see the logs !

  • Now lets try accessing the web-server and check our logs

Last updated