Help on Rasa Pro on Docker

Good morning, I want to install the RASA-Pro version on my server at home because I want to create my own chatbot to understand how the models work. Docker on my Ubuntu 24.04 server is already installed and running.

I created following the instructions the file docker-compose.yml

version: "3.4"
services:
  rasa-x:
    container_name: rasa_x
    image: rasa/rasa-x:latest
    ports:
      - "5002:5002"
    environment:
      RASA_X_PASSWORD: "<password>"
    volumes:
      - ./models:/app/models
      - ./config:/app/config
    depends_on:
      - rasa
      - db

  rasa:
    container_name: rasa
    image: rasa/rasa-pro:3.10.19
    ports:
      - "5005:5005"
    volumes:
      - ./models:/app/models
    command:
      - run
      - --enable-api
      - --cors "*"
    environment:
      RASA_PRO_LICENSE: "<licence>"
    depends_on:
      - db

  action_server:
    container_name: rasa_action
    image: rasa/rasa-sdk:latest
    volumes:
      - ./actions:/app/actions
    ports:
      - "5055:5055"

  db:
    image: postgres:latest
    environment:
      POSTGRES_USER: rasa
      POSTGRES_PASSWORD: <password>
      POSTGRES_DB: rasa_db
    ports:
      - "5432:5432"
    volumes:
      - ./postgres_data:/var/lib/postgresql/data

The rasa_action and rasa_db containers start correctly while the rasa container does not start and returns me this error: rasa run: error: argument {actions}: invalid choice: ‘–cors “*”’ (choose from ‘actions’)

Can anyone help me ?

Hi @morris_tech thanks for your message! If you want to install Rasa Pro using Docker it’s best to follow this documentation: Using Docker | Rasa Documentation and Quick Deployment with Docker Compose | Rasa Documentation

To run Rasa Pro you’d need to request a free developer license here: Request License

Thank you for the quick response, I have already applied for free developer license,

I followed the instructions in this link (Quick Deployment with Docker Compose | Rasa Documentation) and at the end the container “rasam_action_server” returns this error: “rasa_sdk.executor - Failed to register package ‘actions’.”

I’m looking for information on how to solve this error, do you have any help you can give me ?

Thank !

I managed to fix the error, i forgot that i had to initialize rasa with the “rasa init” command inside the container, now at the CURL command in the readme i get this response.

[{"recipient_id":"test","text":"Hey! How are you?"}]

thanks

Hi @morris_tech thank you for your message, happy to see that the error was fixed.