Replace custom nginx image with bind mount
SebastianRzk opened this issue · 5 comments
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)
Pull-Request: #2278
I think this would be a great time to also switch to the official unprivileged nginx image, as root isn't required if the ports are mapped anyways.
This would require to change the nginx pid file and the listen port, but the rest could remain the same.
@joshtrichards oh, I didn't know about that.
Yeah, docker on windows is still some sort of mystery. Sadly, I can not test this :/
Thanks for the information.
@peschmae yes, that's another good idea (that can be implemented independent from this improvement).
Since the nginx-proxy autodetects the port, the change in the yml file should be minimal to none. To be safe, you can add the VIRTUAL_PORT
env variable to the web
service.