MySQL passwords not consistent
It looks to me the usage of MYSQL_PASSWORD and MYSQL_ROOT_PASSWORD is currently not consistent:
-
scripts/installgeneratesMYSQL_ROOT_PASSWORDbut it does not actually write it to.env. -
docker-compose.ymlappsection usesMYSQL_PASSWORDnotMYSQL_ROOT_PASSWORD
I propose to use the auto configuration env variables as described on https://github.com/nextcloud/docker#auto-configuration-via-environment-variables and https://github.com/nextcloud/docker#base-version---fpm and not use MYSQL_ROOT_PASSWORD in the app section:
-
MYSQL_DATABASEnextcloud -
MYSQL_USERnextcloud -
MYSQL_PASSWORDprovisioned byscripts/install -
MYSQL_HOSTdb
I will submit a MR for this and together with the other MR, I think the provision script will produce a running Nextcloud instance.