No dbs showing in my mongodb docker container not even the default ones

After running sudo docker exec -it [container name]_1 bash mongo

When i type show dbs. Its completely blank.

My docker compose file is

version: ‘3.0’

services:

rasa:

image: rasa/rasa:1.10.11-full

ports:

  - 5005:5005

volumes:

  - ./:/app

command:

  - run

  - --cors

  - "*"

  - --enable-api

mongo:

image: mongo

environment:
  MONGO_INITDB_ROOT_USERNAME: <username.>
  MONGO_INITDB_ROOT_PASSWORD: <password>

and my endpoints.yml file is

tracker_store:

type: mongod
 url: mongodb://mongo:27017
 db: rasa
 username: <username>
 password: <password>
 auth_source: <auth>

action_endpoint:

url: http://app:5055/webhook

Are you trying to access the tracker store?