nginx-proxy-manager
nginx-proxy-manager copied to clipboard
Add UID and GID variable
In Unraid its important of being able to set UID and GID to 99:100. I tried it through the following docker flag:
--user=99:100
But the NPM docker container isn't happy with it:
s6-mkdir: warning: unable to mkdir /var/run/s6: Permission denied
Some containers solve this by using additional variables: https://hub.docker.com/r/linuxserver/mariadb#:~:text=boot%20and%20setup.-,Usage,-Here%20are%20some
environment:
- PUID=1000
- PGID=1000
@mgutt did you ever find a workaround for this?
Nope.
I would love to have this working indeed. Also see my bug report: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/2503
Please also see this: https://github.com/jlesage/docker-nginx-proxy-manager/issues/271 I don't know what repo that is, but it does support docker --user params. Personally I prefer to use this (original) one, but I do need to save data files as my own user.
There is a s6-applyuidgid directive to do this after init. The jslesage repo seems to be quite a bit behind, also would not recommend using another source for your reverse proxy.
Writing everything as root on the host can interfere with common backup strategies, RAID setups and remote monitoring. Would love to see this get picked up soon.
Yes me too; I don't want to use the jslesage repo either. So for me it's a must-have. Unfortunately I don't have the time nor skills to apply it in this repo 🙁.
Waiting for this too!
This is working for me: https://hub.docker.com/r/jc21/nginx-proxy-manager
environment:
PUID: $PUID
PGID: $PGID

Sorry to re-open this thread but the issue has changed a bit...
Since the environment have been added, The PUID and PGID work fine for the 2.10.2 and 2.10.3 but it is not working with the latest 2.10.4.
Has it been removed?
thank you @vdrover. I can confirm this is working fine on latest and solved the bunch of errors about file permission at startup under unraid.