This repository has been archived by the owner on Jan 9, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from rauldpm/19_add-docker-deployment_main
Docker local deployment
- Loading branch information
Showing
16 changed files
with
90 additions
and
33 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,6 @@ models/*.tar.gz | |
*.dot | ||
*.html | ||
results | ||
.keras | ||
.config | ||
logs |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
FROM rasa/rasa:3.1.1 | ||
|
||
|
||
USER root | ||
COPY . /app | ||
WORKDIR '/app' | ||
|
||
# Neccesary to run the server inside the docker container | ||
RUN sed -i "s/localhost:5055/action_server:5055/g" endpoints.yml | ||
|
||
RUN rasa train | ||
CMD ["run", "-m", "/app/models", "--enable-api", "--cors", "*", "--debug", "--endpoints", "endpoints.yml", "--log-file", "logs/rasa.log", "--debug"] |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
FROM rasa/rasa-sdk:3.1.1 | ||
|
||
USER root | ||
WORKDIR /app | ||
|
||
RUN apt-get update | ||
RUN apt-get install -y locales | ||
|
||
RUN locale-gen es_ES | ||
RUN locale-gen es_ES.utf8 | ||
|
||
COPY requirements.txt requirements.txt | ||
RUN pip install --upgrade pip | ||
RUN pip install --verbose -r requirements.txt | ||
|
||
EXPOSE 5055 | ||
USER 1001 |
This file contains 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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Unidecode |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
version: '3.0' | ||
services: | ||
rasa: | ||
container_name: rasa-server | ||
build: | ||
context: . | ||
ports: | ||
- 5005:5005 | ||
volumes: | ||
- "./logs:/app/logs" | ||
depends_on: | ||
- action_server | ||
action_server: | ||
container_name: rasa-actions | ||
build: | ||
context: actions | ||
ports: | ||
- 5055:5055 | ||
volumes: | ||
- "./actions:/app/actions" | ||
|
||
volumes: | ||
logs: | ||
actions: |