Running Docker Compose: Error starting userland proxy: listen tcp xxx.xx.xxx:3306: bind: cannot assign requested address

Hello,

I am unable to run docker-compose up --build -d. I have this error:

ERROR: for mariadb  Cannot start service mariadb: driver failed programming external connectivity on endpoint cdr_performance_tracker_mariadb_1 (4dd19eb4937f864a0d1e0891fd0288ca5bad262c8782040738f00620bc89db02): Error starting userland proxy: listen tcp4 xxx.xxx.xxx.xxx:3306: bind: cannot assign requested address
ERROR: Encountered errors while bringing up the project.

This tcp4 xxx.xxx.xxx.xxx IP is the host IP address of mariadb.

And, this is my docker-compose yaml file:

version: '3'

services: 
    app: 
        restart: always 
        build: ./app 
        ports: 
            - "8501:8501"
        command: streamlit run Main.py 

    mariadb: 
        image: mariadb:10.5.17 
        ports: 
            - "xxx.xx.xx.xx:3307:3307"
        volumes: 
        - db_data:/var/lib/mysql 
        - db_conf:/etc/mysql/conf.d 
        environment: 
            MARIADB_ROOT_PASSWORD: test
            MARIADB_DATABASE: testtest 
            MARIADB_USER: testing
            MARIADB_PASSWORD: passtest
        networks: 
            - streamlit_network  

    nginx: 
        restart: always 
        build: ./nginx 
        ports: 
            - "80:80"
        depends_on: 
            - app 
            - mariadb 

volumes: 
    db_data: 
    db_conf: 

networks: 
    streamlit_network: 
        external: true 

Any idea what I need to change up here? Thanks in advance.