Docker installation

Hello,
I have created a stack (yml) container under docker
Unfortunately I cannot register. I have probably made a beginner’s mistake.

as user I use admin

Error

Error while trying to create admin account: An exception occurred in the driver: SQLSTATE[HY000] [1045] Access denied for user ‘root’@‘172.19.0.3’ (using password: YES)

Create an admin account

But I get an error message when I log in for the first time.

I probably need to update the stack.
However, I need support:
I have replaced my password with xxx


version: '2'

services:
  mariadb:
    image: mariadb
    restart: always
    command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW --innodb-file-per-table=1 --skip-innodb-read-only-compressed
    ports:
      - 9022:3306
    volumes:
      - /root/nextcloud/mariadb:/var/lib/mysql
    environment:
      - MYSQL_ROOT_PASSWORD=xxx
      - MYSQL_DATABASE=nextcloud
      - MYSQL_USER=root

  nextcloud:
    image: nextcloud
    restart: always
    ports:
      - 8080:80
    links:
      - mariadb:mysql
    volumes:
      - /root/nextcloud/nextcloud:/var/www/html 
      - /root/nextcloud/apps:/var/www/html/custom_apps 
      - /root/nextcloud/config:/var/www/html/config 
      - /mnt/ssd/ncdata:/var/www/html/data 
    environment:
      - MYSQL_PASSWORD=xxx
      - MYSQL_DATABASE=nextcloud
      - MYSQL_USER=root
      - MYSQL_HOST=mariadb

It is not a good idea to use the ROOT MariaDB user. Which instructions did you use?

this is my very first Nextcloud installation

What do you mean with instructions?

i should change the: MYSQL_USER=root
should I then also change the volumes?
volumes:

  • /root/nextcloud/nextcloud:/var/www/html

also environment ?
is there possibly a yml file for the instructions

as long you are not doing this for education I would recommend you start with a more advanced guide like

… and PLEASE use code tags e.g. </>button above

This is not a valid configuration for MariaDB/MySQL. The MYSQL_USER cannot also be root (which is already created by the entrypoint). See examples.

Are you exposing 9022 to something other than Nextcloud? I ask because this is likely not what you want otherwise. There’s no need to map any ports for the MariaDB container. It will have connectivity to the nextcloud container already.

hello
the solution was to enter the internal IP address as follows:
172.17.0.4:3306
Is there a tutorial suitable for beginners?

I am not sure whether I need an HTTP server - Apache2.

I would like to run the nextcloud only in my local network for now and only work with it personally.

I may be able to work with wireguard.

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.