Skip to content

Instantly share code, notes, and snippets.

@Horizon733
Last active November 10, 2022 14:38
Show Gist options
  • Select an option

  • Save Horizon733/1cf21932f65e477870c8801419c59509 to your computer and use it in GitHub Desktop.

Select an option

Save Horizon733/1cf21932f65e477870c8801419c59509 to your computer and use it in GitHub Desktop.
Simple and easy Dockerfiile and docker-compose file for deploying rasa chatbot on any cloud platform
version: '3.4'
services:
rasa:
image: rasa-bot:latest
build: "./"
restart: always
working_dir: /app
volumes:
- ./models:/app/models
- ./data:/app/data
- ./actions:/app/actions
command: bash -c "rm -rf models/* && rasa train && rasa run --enable-api --cors \"*\""
ports:
- '5005:5005'
networks:
- all
rasa-actions:
build: "./"
image: rasa-bot:latest
restart: always
working_dir: /app
volumes:
- ./actions:/app/actions
command: ["rasa","run","actions"]
ports:
- '5055:5055'
networks:
- all
networks:
all:
driver: bridge
driver_opts:
com.docker.network.enable_ipv6: "true"
FROM python:3.7.7-stretch AS BASE
RUN apt-get update \
&& apt-get --assume-yes --no-install-recommends install \
build-essential \
curl \
git \
jq \
libgomp1 \
vim
WORKDIR /app
RUN pip install --no-cache-dir --upgrade pip
RUN pip install rasa==2.8.1
#Optional step
ADD config.yml config.yml
ADD domain.yml domain.yml
ADD credentials.yml credentials.yml
ADD endpoints.yml endpoints.yml
@Jacksonngabonziza
Copy link

is there any change that i have to make in my endpoints.yml regarding the rasa action server?
This is what i was using:
"
action_endpoint:
url: "http://rasa-actions-server/webhook"
"

@Horizon733
Copy link
Author

is there any change that i have to make in my endpoints.yml regarding the rasa action server? This is what i was using: " action_endpoint: url: "http://rasa-actions-server/webhook" "

Yes you have to change it like you mentioned

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment