Replies: 5 comments 4 replies
-
Hi @replete Thank you for reaching out. Regarding the issue "http2 directive is deprecated", it is not urgent at the moment, and nginx can still function normally. Therefore, you can use it without too much concern. I have no comments on the "sed: can't move. Resource busy" errors you are encountering. It is possible that the files on the host machine are locked by another application (or locked by the read-only mode), and during the nginx startup process, the container cannot update the necessary user and group to the *.conf files before starting nginx. You can add your nginx configurations by mounting or copying your Note: Since there are already some common configs in this directory, please avoid mounting or replacing an entire different directory into |
Beta Was this translation helpful? Give feedback.
-
By the way, these Docker images are created to be “ready for production,” not “immutable or non-customizable,” and I primarily focus on PHP. Web server software is added as a gateway to communicate with the underlying PHP handlers, enhancing request processing efficiency and reducing the load on PHP. Users can fully customize, and I am not responsible for any of their customizations. |
Beta Was this translation helpful? Give feedback.
-
Thank you, I understand it's not urgent right now, but for a production environment I want to prevent potential issues in the future The errors are because I have mounted the copied conf files as read only, so I can control the nginx configuration from source control outside of the container. Sed is complaining that some copy part of your docker image can't replace the files I've mounted, which is what I want. I understand you are not responsible for customizations, and thank you for your advice so far. I just wanted to understand if my approach made sense. My main context here is optimizing websites for performance, thanks again for your input. Do you think you might enable http3 in the future with the ngx_http_v3_module? |
Beta Was this translation helpful? Give feedback.
-
Yes you can enable http3 yourself by extending these docker images using a Dockerfile. |
Beta Was this translation helpful? Give feedback.
-
Hi @replete The warning is fixed, please pull and test to see if it works. |
Beta Was this translation helpful? Give feedback.
-
Main Issue:
This deprecation warning can be fixed by moving http2 into a new directive like so:
Secondary query:
Also can you please tell us how best to use these images with custom nginx configuration? This is my workaround for custom nginx configuration:
Currently, I copy the nginx config from the running container:
docker cp $(docker compose -f ../docker-compose.yml ps -q web):/etc/nginx ../nginx-dev-config
And then mount the files individually with volumes in my
docker-compose.yml
:But this generates these sed errors in the container:
This image is advertised as production ready, so could you help me understand how you would make custom nginx configurations, is it similar to this method? I would prefer to eliminate all warnings and errors from a production environment, you would expect to need custom nginx configuration in production.
Thank you once again for really excellent great work. Appreciate your last bugfix 🙌
Beta Was this translation helpful? Give feedback.
All reactions