MariaDB & HA on Docker via docker compose

Yes, however this mysql:// url works, only thing here is that it works with root, and not with the secondary user created in the docker compose.

recorder:
  purge_keep_days: 30
  auto_purge: true
  db_url: mysql://root:***@192.168.2.61:3306/ha_database?charset=utf8
  db_url: mysql://root:***@192.168.2.61/ha_database?charset=utf8

Works as well, but doesn’t resolve the user issue.
Thanks