Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replace build image with bind mount #2278

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

SebastianRzk
Copy link

@SebastianRzk SebastianRzk commented Aug 18, 2024

A separate image is currently being built for the nginx proxy (service name: web). According to my information, this is not necessary, but even counterproductive

Why?

  • The image does not need to be built (why should it?)
  • Fewer files and less code = easier maintenance and fewer potential bugs
  • the container can be easily updated (for example via a program like watchtower)

@tzerber
Copy link
Contributor

tzerber commented Oct 8, 2024

I agree here. I would also move the configuration file outside of the "web" directory or just rename the web directory to "conf" one. This has the good side effect that will allow using that same "conf" directory for other stuff, like mounting mime-types; Nextcloud's own configuration there in the case of bind mounts; proxy related configurations; even in my use case - Nexcloud's container configs like opcache-recommed.ini and similar.

EDIT: Docker on Windows now use WSL2, so no problems with #538 anymore. Also, the non-root nginx image is a very good idea as well.

@Juoelenis
Copy link

Agreed 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Replace custom nginx image with bind mount
4 participants