Hi all. I want to run Nextcloud Docker containers on my Cloud-Server. Space is a bit limited here for me, and as I expect that the NC Data and it’s databese will get quite big over time, I want to put those files on an NFS share of my storrage-system.
In oder to achieve this, I altered the docker-compose.yaml to this:
version: '2' volumes: nextcloud: db: services: db: image: mariadb command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW restart: always volumes: - /data/nextcloud/db:/var/lib/mysql environment: - MYSQL_ROOT_PASSWORD=**************** - MYSQL_PASSWORD=**************** - MYSQL_DATABASE=nextcloud - MYSQL_USER=nextcloud app: image: nextcloud ports: - 8080:80 links: - db volumes: - /data/nextcloud/files:/var/www/html restart: always
So far, Nextcloud starts up and giving me the installation wizard page where I need to enter the MariaDB credentials.
But all attemps to connect to the db have failed so far.
Failed to connect to the database: An exception occured in driver: SQLSTATE[HY000]  Connection refused
So given the config above … what do I have to put in the field: “Database Host” to connect to the DB ?