MariaDB issues creating initial admin account SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo

Hello everyone…

I wanted to try out mariadb with my setup and thought its gonna be a straight forward process.
Now i am stuck on several different error messages, from which i was able to sort/fix myself.
But i am still not able to create my initial account and still get this message:

**Fehler**

Error while trying to create admin account: An exception occurred in the driver: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo for mariadb failed: Try again

**Administrator-Konto** anlegen

my docker file looks like this:

---
# https://hub.docker.com/r/linuxserver/nextcloud
# https://docs.linuxserver.io/images/docker-nextcloud
# only x86-64 and arm64 are supported
services:
  nextcloud:
    image: lscr.io/linuxserver/nextcloud:latest
    container_name: next-cloud
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=America/New_York
    volumes:
      - /srv/dev-disk-by-uuid-f8e87c48-3e5e-4b1f-a7b5-24f84bd691ba/next-cloud/apps:/var/www/html/apps
      - /srv/dev-disk-by-uuid-f8e87c48-3e5e-4b1f-a7b5-24f84bd691ba/next-cloud/config:/config
      - /srv/dev-disk-by-uuid-f8e87c48-3e5e-4b1f-a7b5-24f84bd691ba/next-cloud/data:/data

    ports:
      - 8080:80 #Port change

    depends_on:
      - db

  db:
    container_name: maria-db
    restart: unless-stopped
    image: mariadb
    command: --innodb-read-only-compressed=OFF #Maria-DB fix
    environment:
      MYSQL_ROOT_PASSWORD: root
      MYSQL_DATABASE: 123
      MYSQL_USER: 123
      MYSQL_PASSWORD: 123
    volumes:
      - /srv/dev-disk-by-uuid/next-cloud/mariadb:/var/lib/mysql
    ports:
      - 3306:3306 

Login so far needed to be set from localhost:port to mariadb:port to bypass first issue…
So how do i get around this one…
Thx alot

getaddrinfo for mariadb failed

Your Compose file suggests your container name is db and/or maria-db.

Thx for the answer…but what does that tell me?
I am new to this so i might miss a thing but it seems not so abvious to me right now

Remove this line.

And when specifying the database server/host use db as the hostname (e.g. in the installer, in your config.php, etc.)

Good morning, for some odd reason, that worked.
Acting very strange on maria db though compared to sql lite. I wonder is my hardware is at fault.
4 gig ram shared with open media vault and a good old core duo at 3.2 ghz