I am trying to install NextCloud on Docker Desktop. I have successfully installed containers for MariaDB and NextCloud but when I continue installation in browser at localhost:8080 I get problems. I enter Username and Password and then get error message:
Error while trying to create admin account: An exception occurred in the driver: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo for nextcloud-db failed: Name or service not known
Mariadb container configuration:
Container Name: nextcloud-db
Environment Variables:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: nextcloud
MYSQL_USER: nextcloud_user
MYSQL_PASSWORD: password
Container path /var/lib/mysql.
Ports: 3308
Nextcloud Container configuration:
Container Name: nextcloud-app
Environment Variables:
MYSQL_DATABASE: nextcloud
MYSQL_USER: nextcloud_user
MYSQL_PASSWORD: password
MYSQL_HOST: nextcloud-db
Container path: var/www/html
Ports: 8080