Is it possible to use rest API with docker compose?

Hi, we are a beginner team at Rasa, we are using Docker compose on an Azure VM. We are having problems using the REST API. We have followed the steps in the documentation and in this tutorial: RASA - REST API - DEV Community


Are you correctly exposing the ports from docker-compose? Could you show me your dockerfile and docker-compose files?