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