Permissions errors with docker on Synology

Hi,

You are using an existing folder to mount passbolt gpg server keys:

Can you check owner and rights with this command:

la -alh /volume1/docker/passbolt/gpg

It should return something like:

-rw-r--r-- 1 www-data www-data 1.8K Feb  1 09:06 serverkey.asc
-rw------- 1 www-data www-data 3.5K Feb  1 09:06 serverkey_private.asc

On your NAS, there is chances you don’t have any www-data user, so the owner and group must be set to 33, as it is the id of the www-data user in the container.

To fix rights, execute these commands:

chown 33:33 /volume1/docker/passbolt/gpg/serverkey_private.asc
chown 33:33 /volume1/docker/passbolt/gpg/serverkey.asc

It should fix your issue.

Another though regarding the jwt volume:

-v /volume1/docker/passbolt/jwt:/data \

JWT keys are stored in the container on /etc/passbolt/jwt so the correct mount is

-v /volume1/docker/passbolt/jwt:/etc/passbolt/jwt \

And again, on your NAS, /volume1/docker/passbolt/jwt folder must be owned by user and group with id 33.

Best,