# How to set endpoints.yml when running custom action docker and rasa docker

**URL:** <https://forum.rasa.com/t/how-to-set-endpoints-yml-when-running-custom-action-docker-and-rasa-docker/25264>\
**Category:** Rasa Open Source\
**Created:** [February 25, 2020, 6:49pm UTC](https://forum.rasa.com/t/how-to-set-endpoints-yml-when-running-custom-action-docker-and-rasa-docker/25264 "2020-02-25T18:49:40Z")\
**Posts on this page:** 7\
**Page:** 1

<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 25, 2020, 6:49pm UTC](https://forum.rasa.com/t/how-to-set-endpoints-yml-when-running-custom-action-docker-and-rasa-docker/25264/1 "2020-02-25T18:49:40Z")

</div>

Hi, community

Assume I build an action docker my/app, and I’m also running rasa/rasa:1.7.0-full as `docker run -it -v $(pwd):/app rasa/rasa:1.7.0-full shell` on the same instance, then how to set endpoints.yml? What should I change the “localhost” to?

```auto
action_endpoint:
  url: "http://localhost:5055/webhook"

```

Thanks,

---

<div class="post-metadata">

**Author:** ![rasafan](https://avatars.discourse-cdn.com/v4/letter/r/b2d939/32.png) [@rasafan](https://forum.rasa.com/u/rasafan)\
**Post date:** [February 26, 2020, 12:09am UTC](https://forum.rasa.com/t/how-to-set-endpoints-yml-when-running-custom-action-docker-and-rasa-docker/25264/2 "2020-02-26T00:09:27Z")

</div>

I am also interested in this.

---

<div class="post-metadata">

**Author:** ![GuillaumeKoenigTncy](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/guillaumekoenigtncy/32/5444_2.png) [@GuillaumeKoenigTncy](https://forum.rasa.com/u/GuillaumeKoenigTncy)\
**Post date:** [February 26, 2020, 12:26pm UTC](https://forum.rasa.com/t/how-to-set-endpoints-yml-when-running-custom-action-docker-and-rasa-docker/25264/3 "2020-02-26T12:26:29Z")

</div>

My opinion, you better use a docker-compose file to name, run and manage your services.

I run a RASA container and an actionserver container on the same network. In the endpoint.yml the configuration is

`http://actionserver:5055/webhook`

actionserver is the name of the container.

---

<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 26, 2020, 1:48pm UTC](https://forum.rasa.com/t/how-to-set-endpoints-yml-when-running-custom-action-docker-and-rasa-docker/25264/4 "2020-02-26T13:48:19Z")

</div>

You’re right. We can either use docker-compose or use docker alone to do it. I’ve solved my case as below: Asume you have my/app and my/rasa dockers, to connect two containers on the same machine:

1. create a docker bridge network “rasa-network”, as

`docker network create rasa-network`

1. connect rasa and action containers to this bridge network when start them, as

`docker run --name action --network rasa-network my/app`

and

`docker run -it --name run --network rasa-network -v $(pwd):/app my/rasa shell`

1. edit your endpoints.yml, as

```auto
http://action:5055/webhook

```

Basically, docker containers can access each other’s services by the name of container as long as they are connceted to the bridge network you pre-defined.

---

<div class="post-metadata">

**Author:** ![rasafan](https://avatars.discourse-cdn.com/v4/letter/r/b2d939/32.png) [@rasafan](https://forum.rasa.com/u/rasafan)\
**Post date:** [February 26, 2020, 5:51pm UTC](https://forum.rasa.com/t/how-to-set-endpoints-yml-when-running-custom-action-docker-and-rasa-docker/25264/5 "2020-02-26T17:51:05Z")

</div>

Would you recommend your solution @yiouyou if I’m trying to build everything on AWS ECS?

---

<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 27, 2020, 3:54am UTC](https://forum.rasa.com/t/how-to-set-endpoints-yml-when-running-custom-action-docker-and-rasa-docker/25264/6 "2020-02-27T03:54:37Z")

</div>

Yes. It works for me. Hope it suits your case.

---

<div class="post-metadata">

**Author:** ![rasafan](https://avatars.discourse-cdn.com/v4/letter/r/b2d939/32.png) [@rasafan](https://forum.rasa.com/u/rasafan)\
**Post date:** [February 27, 2020, 9:14am UTC](https://forum.rasa.com/t/how-to-set-endpoints-yml-when-running-custom-action-docker-and-rasa-docker/25264/7 "2020-02-27T09:14:22Z")

</div>

Great thanks, do you have wechat or something so we can maybe exchange few more information?
