docker icon indicating copy to clipboard operation
docker copied to clipboard

Replication Mariadb

Open JulEsir opened this issue 1 year ago • 2 comments

Hi,

Currently it's possible to configure Mariadb externalDatabase with environment variable. However it's only possible to set one host mariadb. Since Nextcloud 29, nextcloud allows replication on mariadb : https://docs.nextcloud.com/server/latest/admin_manual/configuration_database/replication.html Do you know if in the future we will be able to configure mariadb replication with environment variables also?

Thanks

JulEsir avatar May 22 '24 12:05 JulEsir

You can run any occ command you desire via the Auto configuration via hooks supported:

https://github.com/nextcloud/docker#auto-configuration-via-hook-folders

All config.php configuration parameters in Nextcloud can be set via occ config:system:set:

https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/occ_command.html#config-commands

joshtrichards avatar May 30 '24 23:05 joshtrichards

Great, I have a problem when i do this i play command like this : occ config:system:set dbreplica 0 user --value 'myuser' occ config:system:set dbreplica 0 password --value 'mypassword' But i have to do all this in only one command, do you know how to do that ?

JulEsir avatar Jul 12 '24 09:07 JulEsir