# Rasa actions in separate docker container

**URL:** <https://forum.rasa.com/t/rasa-actions-in-separate-docker-container/22102>\
**Category:** Rasa Open Source\
**Created:** [December 5, 2019, 9:41am UTC](https://forum.rasa.com/t/rasa-actions-in-separate-docker-container/22102 "2019-12-05T09:41:26Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jestershoeman](https://avatars.discourse-cdn.com/v4/letter/j/b2d939/32.png) [@jestershoeman](https://forum.rasa.com/u/jestershoeman)\
**Post date:** [December 5, 2019, 9:41am UTC](https://forum.rasa.com/t/rasa-actions-in-separate-docker-container/22102/1 "2019-12-05T09:41:26Z")

</div>

Hi guys,

I’m currently trying to run rasa on a server. I need to have both rasa (i.e. the dialogs) and rasa actions in separate docker containers because we cannot use docker-compose at the moment

Also because of proxy constraints the images (rasa/rasa and rasa/rasa-sdk) are hosted in a private repo.

I am able to run the rasa docker using docker run --name dialogs -d -p 8083:5005 -v $(pwd):/app myRepo/rasa run This works fine and I can chat with the bot normally as long as no actions are involved.

When I try running the actions using docker run --name actions -d -p 8084:5055 -v $(pwd)/actions:/app/actions myRepo/rasa-sdk:1.5.1 run actions the container is immediatly exited with exit code 126 (Command invoked cannot execute)

I’m not changing the wordking dir or anything.

Does anybody have an idea what I’m doing wrong?

Thanks for your help!

---

<div class="post-metadata">

**Author:** ![sadque](https://avatars.discourse-cdn.com/v4/letter/s/a9adbd/32.png) [@sadque](https://forum.rasa.com/u/sadque)\
**Post date:** [December 5, 2019, 10:42am UTC](https://forum.rasa.com/t/rasa-actions-in-separate-docker-container/22102/2 "2019-12-05T10:42:03Z")

</div>

please refer this [Running Rasa with Docker](https://rasa.com/docs/rasa/user-guide/running-rasa-with-docker/) i am using this to run and working fine for me

---

<div class="post-metadata">

**Author:** ![jestershoeman](https://avatars.discourse-cdn.com/v4/letter/j/b2d939/32.png) [@jestershoeman](https://forum.rasa.com/u/jestershoeman)\
**Post date:** [December 5, 2019, 12:20pm UTC](https://forum.rasa.com/t/rasa-actions-in-separate-docker-container/22102/3 "2019-12-05T12:20:35Z")

</div>

Hi Sadique, thanks for the link. Unfortunately the docs only show how to run with docker-compose. I cannot use docker-compose though.

Are you running the rasa and action server in two separate containers?

---

<div class="post-metadata">

**Author:** ![yiouyou](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/yiouyou/32/6821_2.png) [@yiouyou](https://forum.rasa.com/u/yiouyou)\
**Post date:** [February 23, 2020, 1:31pm UTC](https://forum.rasa.com/t/rasa-actions-in-separate-docker-container/22102/4 "2020-02-23T13:31:19Z")

</div>

@jestershoeman I met the same problem. Do you fix the problem?

Thanks,

---

<div class="post-metadata">

**Author:** ![jestershoeman](https://avatars.discourse-cdn.com/v4/letter/j/b2d939/32.png) [@jestershoeman](https://forum.rasa.com/u/jestershoeman)\
**Post date:** [February 28, 2020, 7:56am UTC](https://forum.rasa.com/t/rasa-actions-in-separate-docker-container/22102/5 "2020-02-28T07:56:38Z")

</div>

@yiouyou yes, we fixed it. In the docker-compose.yml we set the container\_name for the actions\_server to “actions” and then in the endpoints.yml we set the actions\_endpoint accordingly and use “actions” as the server name.

Here’s the docker-compose.yml:

```
version: "3.0"
services:
  rasa:
    image: [your_image]
    container_name: dialogs
    volumes:
      - .:/app
    command:
      - run
      - --debug
  action_server:
    image: [your_sdk_image]
    container_name: actions
    ports:
      - 8084:5055
    volumes:
      - ./actions:/app/actions

```

Here’s the snipet from the endpoints.yml

```
action_endpoint:
  url: "http://actions:5055/webhook"

```

I hope that this fixes you problem as well.

---

<div class="post-metadata">

**Author:** ![yiouyou](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/yiouyou/32/6821_2.png) [@yiouyou](https://forum.rasa.com/u/yiouyou)\
**Post date:** [February 28, 2020, 1:29pm UTC](https://forum.rasa.com/t/rasa-actions-in-separate-docker-container/22102/6 "2020-02-28T13:29:12Z")

</div>

It works. Thanks!
