|# NextCLoud with MariaDB/MySQL|
|# Access via "http://localhost:80" (or "http://$(docker-machine ip):80" if using docker-machine)|
|# During initial NextCLoud setup, select "Storage & database" --> "Configure the database" --> "MySQL/MariaDB"|
|# Database user: nextcloud|
|# Database password: nextcloud|
|# Database name: ncdb|
|# Database host: replace "localhost" with "maria-db" the same name as the data base container name.|
|# The reason for the more refined data persistence in the volumes is because if you were to|
|# use just the the '/var/www/html' then everytime you would want/need to update/upgrade|
|# NextCloud you would have to go into the volume on the host machine and delete 'version.php'|
Nov 29, 2021
Thank you! Worked like a charm.
Jan 27, 2022
Hi, I have a concern with this line -
volumes: - /containers/cloud/mariadb:/var/lib/mysql
It works fine when the /container is part of the same storage filesystem as the docker-compose file.
But if connect an external drive to store media and replace
It give me permission issue. It tries to change ownership of the location and fails. How do I handle it ?
I can't run nextcloud on my primary storage drive as it will run out of storage memory pretty soon.
Jun 1, 2022
Hi @anu1097, probably you need to give permissions to that folder Tray 'sudo chmod 775 /mnt/usb0/containers/cloud/mariadb'
If this didn't work you can try 'sudo chmod 777 /mnt/usb0/containers/cloud/mariadb' but "777" is not recommended.
Aug 7, 2022
Trying to get this setup but I get this when entering the databse information during the initial setup.
SQLSTATE[HY000]  Host '172.28.0.3' is not allowed to connect to this MariaDB server
Feb 10, 2023
@raverdave-2k Did you ever figure that out?
Apr 30, 2023
how to enable https
May 1, 2023
how to enable https
Use a reverse proxy, I'd recommend caddy.
To bypass some conflicts you need to change the port to 8080:80.
If you get this message:
You need to change the docker-compose.yml file.
Nextcloud has some problems with the new MariaDB versions (ROW_FORMAT = COMPRESSED).
To fix this, add this line to your docker-compose.yml