How to deploy rasa chatbot using docker-compose in digital ocean

Hello,

I created a bot using rasa 1.1.8 version and it is working well in local in docker containers.and I want to deploy it into digitalocean cloud. I am using docker-compose to deploy that bot into digital ocean. While deploying into digital ocean, the docker image is creating and containers are running but the bot is not working and data is not inserted into containers, It is showing empty files inside the container. Can anyone explain me what is the reason for this?

docker-compose file:

version: '2'
services:
  rasa:
    image: rasa_latest
    build:
      context: .
    volumes:
      - ./:/app
    ports:
      - "5005:5005"
    command: python3 -m rasa run  --enable-api
  action:  
    image: rasa_latest
    build:
      context: ./actions
    volumes: 
      - ./actions:/app
    ports:
      - "5055:5055"
    command : python3 -m rasa run actions 

Folder structure:

actions---- actions.py, Dockerfile

data---- nlu.md , stories.md

models

config.yml

credentials.yml

Docker-compose.yml

Dockerfile

domain.yml

endpoints.yml

requirements.txt

thanks in advance!

I don’t deploy with digital ocean, I use elasticbeanstalk which comes with its own challenges, but I’ve found that you may need to specify the exact location of your models and data in the docker yaml file.

volumes:
  - ./:/app
  - ./models:/app/models
  - ./data:/app/data

Thanks for the reply, I tried this by adding models and data in docker-compose file but issue not yet resolved. Still the data is not inserted into containers.