# Rasa deployment - docker-compose method

**URL:** <https://forum.rasa.com/t/rasa-deployment-docker-compose-method/50499>\
**Category:** Rasa Open Source\
**Created:** [January 12, 2022, 6:47am UTC](https://forum.rasa.com/t/rasa-deployment-docker-compose-method/50499 "2022-01-12T06:47:10Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![nik202](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nik202/32/16098_2.png) [@nik202](https://forum.rasa.com/u/nik202)\
**Post date:** [January 12, 2022, 12:36pm UTC](https://forum.rasa.com/t/rasa-deployment-docker-compose-method/50499/3 "2022-01-12T12:36:58Z")

</div>

Hi @lis. It is a very interesting question, let me try to explain to you why we need different containers to run rasa server and rasa action server.

> [@lis](#):
>
> Why should I consider the rasa server and the rasa action server as two different containers?

As you are aware the rasa server is running on port 5005 and the rasa action server is running on 5055 ( you can expose any mention port in your docker file or docker-compose file).

> Docker is an open source containerization platform. It **enables developers to package applications into containers** —standardized executable components combining application source code with the operating system (OS) libraries and dependencies required to run that code in any environment.

> [@lis](#):
>
> Can I not run them as different services in the same container?

> It is **generally recommended that you separate areas of concern by using one service per container**. That service may fork into multiple processes. The container’s main process is responsible for managing all processes that it starts. Further, **Isolation:** By placing each process in a separate container, you gain the benefits of isolating the process so that it can’t interfere with others. **Easier to scale** : When a container consists of just one single process, it is easier to scale the application by creating more instances of the container.

> [@lis](#):
>
> But I’m going to use the action server only when I use the rasa server.

If you are using the custom action then you required a action server container else you required only rasa server.

For Rasa open source deployment on docker, you can ref this thread: [Dockerizing my rasa chatbot application that has botfront - #11 by nik202](http://forum.rasa.com/t/dockerizing-my-rasa-chatbot-application-that-has-botfront/46096/11)

I hope this will give you better understanding and solve your issue. Goodd Luck!

---

_[View the full topic](https://forum.rasa.com/t/rasa-deployment-docker-compose-method/50499)._
