nextcloud / docker

⛴ Docker image of Nextcloud
https://hub.docker.com/_/nextcloud/
GNU Affero General Public License v3.0
5.8k stars 1.8k forks source link

Replication Mariadb #2221

Open JulEsir opened 1 month ago

JulEsir commented 1 month ago

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

joshtrichards commented 1 month ago

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