# Containerized rasa working locally but not in cloud run

**URL:** <https://forum.rasa.com/t/containerized-rasa-working-locally-but-not-in-cloud-run/55984>\
**Category:** Rasa Open Source\
**Created:** [October 28, 2022, 3:53pm UTC](https://forum.rasa.com/t/containerized-rasa-working-locally-but-not-in-cloud-run/55984 "2022-10-28T15:53:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![AlizDeveloper1](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/alizdeveloper1/32/21851_2.png) [@AlizDeveloper1](https://forum.rasa.com/u/AlizDeveloper1)\
**Post date:** [October 28, 2022, 3:53pm UTC](https://forum.rasa.com/t/containerized-rasa-working-locally-but-not-in-cloud-run/55984/1 "2022-10-28T15:53:04Z")

</div>

Hello everyone,

I’m trying to deploy a chatbot that use some custom actions. To do that I’m using Docker to create a container with rasa server and action server and it’s working perfectly locally. However, action server is not found when I load the docker container on GCP and launch it in Cloud run.

The exact error message is: [RasaException: Failed to execute custom action ‘action\_search’. Couldn’t connect to the server at '[http://action-server:5055/webhook.](http://action-server:5055/webhook.)] Is the server running? Error: Cannot connect to host action-server:5055 ssl:default [Temporary failure in name resolution]

Please find below my project structure, the two Dockerfile I’m using and the docker-compose file:

Note: the endpoint i’m using for action-server is:

action\_endpoint: url: “[http://action-server:5055/webhook](http://action-server:5055/webhook)”

![rasa1](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/3X/a/8/a8cb4b8f578783c6e6e0583ad350b13bf43663bf.png)

cloudbuild.yaml:

 ![cloudbuild](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/3X/3/5/350e1e13444c3ce7f672c8c34b2e1458bdcb9d5f.png)

**Dockerfile for rasa server:**

FROM rasa/rasa:3.2.5

WORKDIR ‘/app’ COPY . /app

USER root

COPY ./data /app/data

RUN pip install --no-cache-dir --upgrade pip RUN python -m pip install -r requirements.txt &&   
python -m spacy download fr\_core\_news\_md &&   
python -m spacy link fr\_core\_news\_md fr

RUN rasa train

VOLUME /app VOLUME /app/data VOLUME /app/models

CMD [“run”,“-m”,“/app/models”,“–enable-api”,“–cors”,“\*”,“–debug” ,“–endpoints”, “endpoints.yml”, “–log-file”, “out.log”, “–debug”]

**Dockerfile for action server** :

FROM rasa/rasa-sdk:3.2.0

WORKDIR /app

COPY requirements.txt requirements.txt

USER root

RUN python3 -m pip install --upgrade pip RUN pip install --verbose -r requirements.txt

COPY ./actions /app/actions CMD [“start”,“–actions”,“actions”]

USER 1001

**docker-compose.yml:**

version: ‘3.4’ services:

rasa: container\_name: “rasa\_server” user: root build: context: . volumes: - “./:/app” ports: - “5005:5005”

action-server: container\_name: action-server image: rasa/rasa-sdk:3.2.0 volumes: - ./actions:/app/actions ports: - “5055:5055”
