How to get Entities in Docker compose?

Hey! just one confusion… If I want to run run -m models --cors “*” --debug( responsible to enable apis) and rasa run -m models --endpoints endpoints.yml ( responsible for my mongo tracker) as per the rasa docs Tracker Stores

then how to write this because if I am adding --endpoints, my api is not getting enabled, but mongo is running fine and if I remove --endpoints, in that case mongo is not running…

    version: '3.0'
services:
  rasa:
    image: 'rasa/rasa:2.5.0-full'
    ports:
      - '5005:5005'
    volumes:
      - './:/app'
    command:
      - run
      - -m
      - models
      - --cors
      - "*"
      - --debug
      - --endpoints 
  
  action-server:
    image: 'rasa/rasa-sdk:2.5.0'
    volumes:
      - './actions:/app/actions'
    ports:
      - '5055:5055'

  mongo:
    image: 'mongo'
    environment:
      MONGO_INITDB_ROOT_USERNAME: None
      MONGO_INITDB_ROOT_PASSWORD: None
  
  mongo-express:  # this service is a MongoDB UI, and is optional
    image: 'mongo-express'
    ports:
      - '8081:8081'
    environment:
      ME_CONFIG_MONGODB_ADMINUSERNAME: None
      ME_CONFIG_MONGODB_ADMINPASSWORD: None