Docker-compose connect to existing mariadb?

Hello @all.

My first test with gitea was great. I know want to install Gitea with my existing mariadb (also in docker).
The documentation shows a way but creates a new DB

Any ideas?
Thanks

version: "3"

services:
  gitea:
    image: gitea/gitea
    container_name: gitea_test
    environment:
      - USER_UID=1000
      - USER_GID=1000
    restart: always
    volumes:
      - ./gitea:/data
      - /etc/timezone:/etc/timezone:ro
      - /etc/localtime:/etc/localtime:ro
    ports:
      - "3001:3000"
      - "222:22"
    networks:
      - default
      - web
    labels:
      - traefik.enable=true
      - traefik stuff
networks:
  web:
    external: true