How to run: rasa run -m models --enable-api --cors “*” --debug on deployment env

Hi,

I am using rasa 2.x

I run the below command on local to enable api calls from django app.

rasa run -m models --enable-api --cors “*” --debug

I want to use this in deployment environment. What changes to be made in docker-compose.override.yml or any other file to have this functionality?

If your Rasa assistant is running on a server, running w. rasa run --enable-api should be enough to enable it. However I would be cautious about exposing your endpoints publically. This page in the documentation has some more details on security considerations.

2 Likes