Running rasa with Docker and Twilio

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: {}}

Could you please try removing this and run docker-compose up again?

In a docker-compose file, the commands and arguments have to be given in this format:

command:
   - run 
   - --enable-api 
   - -d 
   - models/dialogue 
   - -u 
   - models/nlu/current 
   - -c
   - twilio
   - --credentials 
   - credentials.yml 
   - --endpoints endpoints-twilio.yml