Docker: how to manage development and production settings? Docker: how to manage development and production settings? nginx nginx

Docker: how to manage development and production settings?


You could mount your custom nginx.conf into the container in development via e.g. --volume ./nginx/nginx.conf:/etc/nginx/nginx.conf and simply omit this parameter to docker run in production.

If using docker-compose, the two options I would recommend are: