I created a rasa server image using following docker file
WORKDIR /app COPY . /app COPY ./data /app/data USER root RUN rasa train VOLUME /app VOLUME /app/data VOLUME /app/models USER 1001 CMD [ "run","-m","/app/models","--enable-api","--cors","*","--debug" ]
Then created an action image with following docker file
# Extend the official Rasa SDK image FROM rasa/rasa-sdk:1.6.1 # Use subdirectory as working directory WORKDIR /app # Copy any additional custom requirements, if necessary (uncomment next line) COPY actions/requirements-actions.txt ./ # Change back to root user to install dependencies USER root # Install extra requirements for actions code, if necessary (uncomment next line) RUN pip install -r "requirements-actions.txt" # Copy actions folder to working directory COPY ./actions /app/actions # By best practices, don't run the code with root user USER 1001 # Start the action server CMD ["start", "--actions", "actions", "--debug"]
Then I ran the rasaserver as
docker run -it -v $(pwd):/app myimage:version shell
Then I ran the action server as ( ref - Building a Rasa Assistant in Docker)
docker network create my-project docker run -v $(pwd)/actions:/app/actions --net my-project --name action_server myactionimage:latest
But then I start interaction with the bot it’s not able to connect with action server
Couldn’t connect to the server at ‘http://action_server:5055/webhook’. Is the server running? Error: C****annot connect to host action_server:5055 ssl:None [Name or service not known]
I even updated the endpoints.yaml file as
action_endpoint: url: "http://action_server:5055/webhook"
Can anyone suggest what am I doing wrong?