For more about it, check Thread Pools in NGINX Boost Performance 9x!. It is common practice to run 1 worker process per core.
We set worker_processes explicitly to 1 which is the default value. Proxy_set_header X-Forwarded-Host $server_name Proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for Note that we copied the following nf to our reverse proxy container: Reverseproxy latest 788046b5f293 3 minutes ago 25.1MB Sending build context to Docker daemon 64.51kB Once it's done, we may want to remove the line we've just added since it will increase the size of the image. $ docker run -t -i nginx-alpine /bin/bash To check the version, we can add the following to the Dockerfile because the alpine docker image doesn't have bash installed by default:
It will use the nf after copying it to the proxy container: Here is the Dockerfile which will be used to create the reverse proxy image. Dockerfile - building a reverse proxy image