Passbolt healthcheck error on docker-compose

Hello,

we are running passbolt on docker-compose solution together with mariadb database. In the logs of the passbolt docker container I saw this red alert:
There are some issues with the database configuration.
Please run ./bin/cake passbolt healthcheck for more information and help.

I entered the passbolt container and I tried to run the command “./bin/cake passbolt healthcheck” but I am gettings this error:
Passbolt commands cannot be executed as root.
The command should be executed with the same user as your web server. By instance:
su -s /bin/bash -c “/usr/share/php/passbolt/bin/cake COMMAND” HTTP_USER
where HTTP_USER match your web server user: www-data, nginx, apache, http

Is this somehow related to docker installation of root permissions? I just need an advice where is the source of the problem - passbolt or docker.

Thanks!

hey @Milan123 welcome to the forum!

We have a dedicated page about this for docker. It is a couple step process to run the healthcheck in docker so you’ll need to switch users to www-data and then make sure you have the environment variables picked up, but then you should be able to run the healthcheck and see what the issue is.

Thank you! I am sorry I was not able to find the documentation by myself.