Replies: 1 comment
-
This should work, assuming a rootful docker deployment: Create a local folder to store the nginx.conf file: Copy nginx.conf out of running NPM container to local folder: Recreate NPM container using the original options with a new volume mount: If using docker run or create, add the following volume directive: If using docker-compose, add the following to the volumes section of the container:
You should now have a persistent and customizable nginx.conf file for the container. Restart the container after making changes to the conf to apply them. ***NOTE: I have not tested this process with NPM, and this is probably not supported, use at your own risk! :P |
Beta Was this translation helpful? Give feedback.
-
Hi all,
Please any idea how can I make a custom configuration of the main of Nginx (etc/nginx/nginx.conf) or if there is any way to edit it?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions