Found that the alpine mariadb image was not created with proper write permissions in portainer. Updating the db to use jc21/mariadb-aria however does work as expected and will get rid of the failed logon or "Bad Gateway" message.
990 B
990 B