Install Passbolt on Docker and Database (Container)

Hello @Andy555 and welcome to the forum!

It is not necessary to create a mariadb container specifically for Passbolt, you can edit the Passbolt environment variables to be able to connect your database (another server, another container …)
The only requirement is that the Passbolt container must be able to connect to the database, how to do it is your thing.

Following security concerns, I am not an expert in that matter, but I think it is better to separate the databases in defernetes containers to segment and prevent that in the case of intrusion, the lateral movement is difficult (because in case of accessing the database server, they would only see the database they have accessed, not the rest).

Surely someone else can give us a more exact recommendation about security, or maybe you can find it in some other post in the forum.
But it is not a requirement to put a mariadb container in the compose to use Passbolt