Docker Community Forums

Share and learn in the Docker community.

Running rasa action server on docker-compose

Versions:

Docker version 20.10.8, build 3967b7d
docker-compose version 1.27.4, build 40524192
Ubuntu 18.04.5 LTS

I can get chatbots without action server up and running, using docker-compose up. But I can not get action server up and running using docker-compose up. It works with direct docker command

Docker command:

docker run -d -v $(pwd)/actions:/app/actions --net action-link --name action-server-prod rasa/rasa-sdk:2.2.0

and result, up and running

CONTAINER ID   IMAGE                 COMMAND                  CREATED          STATUS          PORTS      NAMES
b120c19b467e   rasa/rasa-sdk:2.2.0   "./entrypoint.sh sta…"   13 seconds ago   Up 12 seconds   5055/tcp   action-server-prod

Then with docker compose command

docker-compose up

Result is failure

CONTAINER ID   IMAGE                 COMMAND                  CREATED          STATUS                      PORTS      NAMES
0ef8a23d29f6   rasa/rasa-sdk:2.2.0   "./entrypoint.sh run"    18 seconds ago   Exited (0) 17 seconds ago              rasaaction_action_server_prod_1

also I can see following error message

linttu@linttu-VirtualBox:~/bots/rasaAction$ docker-compose up
Creating rasaaction_action_server_prod_1 ... done
Attaching to rasaaction_action_server_prod_1
rasaaction_action_server_prod_1 exited with code 0

Now, I run chatbot without rasa action server. This is docker-compose.yml

version: "3.5"
services:
  rasawoactionserver:
    image: rasa/rasa:2.2.0-full
    ports:
      - 5005:5005
    volumes:
      - ./rasaAction:/app
    command:
      - run

and this is result: up and running

CONTAINER ID   IMAGE                  COMMAND                  CREATED          STATUS          PORTS                                       NAMES
8eca0e816c2a   rasa/rasa:2.2.0-full   "rasa run"             23 seconds ago   Up 21 seconds   0.0.0.0:5005->5005/tcp, :::5005->5005/tcp   bots_rasawoactionserver_1