It's finally working. I kept trying the new user I set in the environment variables (Admin:rootpassword) and it finally went through.
I feel like I'm on the home stretch now.
Everything is running locally just as it should however attempting to access remotely using the reverse proxy I set, is returning the error; "edit the" trusted_domains" setting in config.php". After a quick Google and search around the Docker folder, I found the config.php file and edited it as attached (added my Synology.me address for NextCloud to the array), however it makes no difference and I still get the same error message and it does not let me access remotely.
I have a Letsencrypt certificate created and assigned to that reverse proxy.
***Edit - Finally all working, I just had to remove the port number from the config file for remote access to work.
As always, thanks for your help........until next time.
Hi,
I have the same environment than yours, and I have the error "Error while trying to create admin user: Failed to connect to the database: An exception occurred in driver: SQLSTATE[HY000] [2002] No such file or directory".
mariadb:
volume config
-file/folder: /docker/mariadb --> Mount path: /config
port number: 3306
I've created a username, database with the bash in mariadb docker:
show databases;
create database database_name;
CREATE USER ‘myadmin’ INDENTIFIED BY ‘false_password’;
GRANT ALL PRIVILEGES ON database_name.* TO 'myadmin'@’localhost’ IDENTIFIED BY 'false_password’;
FLUSH PRIVILEGES;
on /docker/mariadb/databases/database_name folder I only have a file db.opt
NEXTCLOUD:
-in data folder I've wrote "/data" what is "/docker/nextcloud/data" in docker volume config
-in database user I've wrote one that I've created "myadmin"
-in password I've wrote the same than I created the falseadmin user "false_password"
-I've specidifed the database that I've created "database_name"
in localhost I've tried with
-with "localhost or localhost:3306" I got the error "No such file or directory".
-with "mariadb:3306" I got the error "php_network_getaddresses: getaddrinfo failed: Name does not resolve" wrote.
-with "127.0.0.1:3306" I got the error "Connection refused"
I'm really lost at this point . What was the finally correct configuration in your case for the Nextcloud config webpage?
Both dockers are in bridge docker network
Thanks in advance .