Gitea docker-compose local db

I want to use Gitea in combination with docker-compose.
For that I’ve made a docker-compose.yml-file.
But I don’t understand how I can use my local mariadb.
I don’t using iptables, I’m using ufw on a Ubuntu 20.04 machine.

Any idea?
Must I change some settings on the docker side.
I’m fairly new to docker.

kind regards

René

I have my gitea docker setup on GitHub:

I’m using postresql though, but if you need to use MySQL then you would need to edit the docker-compose.yml file from what I have.

Also note that this configuration is using the latest gitea version, you might want to pin to a specific version.