TarEnethil / archivar

Web-based collaborative world building tool for roleplaying groups
1 stars 1 forks source link

Docker: no write permission to mount volume if uid != 1000 #99

Closed TarEnethil closed 3 years ago

TarEnethil commented 3 years ago

Found in version 0.6.1

You can currently only write to the /opt/data mount inside docker, if the original directory is owned by the user with uid 1000. Other users result in permission denied for uploading files.

Workaround: use uid 1000 for now

TarEnethil commented 3 years ago

I've merged my first version of a fix for this. You can now override the UID of the internal user via the environment variable USER_ID. There are probably other and better ways to fix this. Maybe evaluate for later: