Configuration time
Configure mariadb to listen on the nextcloud network
docker exec -it nc-mariadb bash
apt update
apt install nano
nano /etc/mysql/my.cnf
Add the following:
under [mariadbd] add
skip-innodb-read-only-compressed
[mysqld]
bind-address = 172.22.0.5
Save and restart nc-mariadb
Add a remote user --> https://mariadb.com/kb/en/configuring-mariadb-for-remote-client-access/
Add a nextcloud database --> https://docs.nextcloud.com/server/latest/admin_manual/configuration_database/linux_database_configuration.html
Then navigate to your nextcloud instance and initialise nextcloud using mariadb as a database server