Can anyone tell me exactly how to run Dockerized Rasa with Twilio?
Without docker, I was running the following command and it was working well:
python -m rasa_core.run --enable_api -d models/dialogue -u models/nlu/current -p 5100 -c twilio --credentials credentials.yml --endpoints endpoints-twilio.yml
My endpoint:
action_endpoint: url: "http://localhost:5100/webhooks/twilio/webhook"
How can I convert this command to work within docker / docker-compose?
My current docker-compose.yml is:
services:
rasa:
image: rasa/rasa:latest-full
networks: ['rasa-network']
ports:
- "5005:5005"
volumes:
- ./:/app
#- "./models:/app/models"
#- "./data:/app/data"
#- "./rasa:/usr/local/lib/python3.6/site-packages/rasa"
command:
- run --enable_api -d models/dialogue -u models/nlu/current -p 5100 -c twilio --credentials credentials.yml --endpoints endpoints-twilio.yml
action_server:
image: rasa/rasa-sdk:latest
networks: ['rasa-network']
ports:
- "5055:5055"
volumes:
- "./actions:/app/actions"
duckling:
image: rasa/duckling:latest
networks: ['rasa-network']
ports:
- "8000:8000"
networks: {rasa-network: {}}