Joplin-server environment variables for UID and GID

It would sure be nice if joplin-server's Dockerfile accepted environment variables for the UID and GID (and even username) of the running process. I just spent a good amount of time figuring out how to set the file permission correctly for "STORAGE_DRIVER=Type=Filesystem", as well as why ps and top show it running as a completely different user than joplin.

2 Likes

Agree on this one. It's really frustrating that you get a ton of EACCESS errors and there is just no way of using the Filesystem this way.

Please implement this feature. It is simple and essential from a security perspective. You should be able to pass the UID/GID to Joplin, both for compartmentalization as well as ensuring correct access for host mounted directories. Your filesystem storage driver feature is near useless without this as well.

With 616 views on this topic, it is evident that MANY of your users have searched for this feature!

Joplin uses 1001:1001 by default which is often not available on the host system.

Thanks for all the amazing work. It is much, much appreciated! @laurent

P.S. While you are at it, an environment variable to dictate the location of the SQLite database would be equally amazing! If you would be able to implement these, I'd be more than happy to give a financial token of appreciation.