Last active
November 10, 2022 14:38
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
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
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"
"