Skip to content

Commit

Permalink
Added docker-endpoints.yml file for docker deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
cdhiraj40 committed Sep 12, 2022
1 parent d5963e8 commit e2dd293
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ RUN pip install rasa==3.2.5
ADD config.yml config.yml
ADD domain.yml domain.yml
ADD credentials.yml credentials.yml
ADD endpoints.yml endpoints.yml
ADD docker-endpoints.yml endpoints.yml
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ services:
- ./envirocar_channel:/app/envirocar_channel
- ./enums:/app/enums
- ./utils:/app/utils
command: bash -c "rm -rf models/* && rasa train && rasa run --credentials credentials.yml --enable-api -p 5006 --cors \"*\" --debug"
command: bash -c "rm -rf models/* && rasa train && rasa run --credentials credentials.yml --endpoints local-endpoints.yml --enable-api -p 5006 --cors \"*\" --debug"
ports:
- '5007:5006'
networks:
Expand Down
42 changes: 42 additions & 0 deletions docker-endpoints.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# This file contains the different endpoints your bot can use.

# Server where the models are pulled from.
# https://rasa.com/docs/rasa/model-storage#fetching-models-from-a-server

#models:
# url: http://my-server.com/models/default_core@latest
# wait_time_between_pulls: 10 # [optional](default: 100)

# Server which runs your custom actions.
# https://rasa.com/docs/rasa/custom-actions

action_endpoint:
url: "http://rasa-actions-server:5055/webhook"

# Tracker store which is used to store the conversations.
# By default the conversations are stored in memory.
# https://rasa.com/docs/rasa/tracker-stores

#tracker_store:
# type: redis
# url: <host of the redis instance, e.g. localhost>
# port: <port of your redis instance, usually 6379>
# db: <number of your database within redis, e.g. 0>
# password: <password used for authentication>
# use_ssl: <whether or not the communication is encrypted, default false>

#tracker_store:
# type: mongod
# url: <url to your mongo instance, e.g. mongodb://localhost:27017>
# db: <name of the db within your mongo instance, e.g. rasa>
# username: <username used for authentication>
# password: <password used for authentication>

# Event broker which all conversation events should be streamed to.
# https://rasa.com/docs/rasa/event-brokers

#event_broker:
# url: localhost
# username: username
# password: password
# queue: queue
2 changes: 1 addition & 1 deletion endpoints.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# https://rasa.com/docs/rasa/custom-actions

action_endpoint:
url: "http://rasa-actions-server:5055/webhook"
url: "http://localhost:5055/webhook"

# Tracker store which is used to store the conversations.
# By default the conversations are stored in memory.
Expand Down

0 comments on commit e2dd293

Please sign in to comment.