Error while trying to create admin user: Failed to connect to the database: An exception occurred in the driver: SQLSTATE[HY000] [2002] Connection refused

Hi, Installing NextCloud on docker on Raspberry Pi 4 on Raspian buster. While creating a admin user, getting the error : Error while trying to create admin user: Failed to connect to the database: An exception occurred in the driver: SQLSTATE[HY000] [2002] Connection refused.
My Configuration used is as below :
version: ‘2’

volumes:
nextcloud:
db:

services:
db:
image: yobasystems/alpine-mariadb:latest
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
restart: always
volumes:
- db:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=password
- MYSQL_PASSWORD=password1
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud

app:
image: nextcloud
ports:
- 8080:80
links:
- db
volumes:
- /srv/dev-disk-by-uuid-e3457094-4a66-4329-8154-9fd7523586d4/NextCloud:/var/www/html
restart: always

Containers are up and running without any issue.

logs from mariadb container are attached below :
158792-01-02 14:25:30 0 [ERROR] This MySQL server doesn’t support dates later than 2038

/scripts/run.sh: ignoring or entrypoint initdb empty /docker-entrypoint-initdb.d/*

MySQL init process done. Ready for start up.

exec /usr/bin/mysqld --user=mysql --console --skip-name-resolve --skip-networking=0 --transaction-isolation=READ-COMMITTED --binlog-format=ROW

248415-11-20 19:29:18 0 [ERROR] This MySQL server doesn’t support dates later than 2038

[i] mysqld already present, skipping creation

[i] MySQL data directory not found, creating initial DBs

pls help.

I see one gets helped here, same problem for me, I just pulled an update and…boom nothing works anymore. I now cfeated a whole new container from old docker-compose files exactly as yours. Same error.
It used to work with NC 22.1.0 and the Mariadb image but now it’s busted.