I’ve only been using docker for a short while, and while I love it, I have a couple of questions about mariadb setup using compose; I apologize in advance if they’re too noobish or if they are in the wrong forum section.
I know that we can optionally specify a database name, database user, and database password, in addition to the root password, but the nextcloud image isn’t doing this for its mariadb, so I was wondering which is considered the “best practice”?
Furthermore, say I was hosting another service that used mariadb, like the bitwardenrs/server-mysql. Would best practice be to create a second database under the mariadb container, or create a second mariadb container the same way you would for nextcloud?
Finally, reading the documentation it seems that instead of having my passwords for the initial setup in the docker compose file, I can put them in /config/env, which is helpful. I guess I was wondering what the best practice would be for docker passwords if you aren’t using docker Swarm.