frameworks/motia/contributors/rfc/2025-07-14-motia-docker.md
This RFC proposes a solution to enable users to self-host Motia through docker.
Currently Motia is only available to be deployed to the Motia Cloud. This is great but some users have been reaching out asking for self-hosting options. Some users have been using docker to run Motia's cli dev command. This is a quick viable solution, and we can improve it by providing a start command that can simplify the tasks executed to run Motia (hot reloading, type generation, etc...) and eventually focus on performance over time (improved runtime using Go, less memory usage, middleware to configure event queue and storage, etc).
The main challenges are around self-hosting limitations:
start command from the CLI focused on removing unnecessary features from the dev command (hot reloading, type generation, mermaid, workbench, etc...)⚠️ The references to cloud providers are just examples, we won't be providing any deployment solutions for self-hosting Motia in any of the cloud providers. As part of the validation of this RFC we will be providing a video tutorial on how to deploy Motia in a cloud provider, but each user will be responsible for deploying Motia to their own infrastructure.
For this RFC there are no technical considerations regarding the deployment to an infrastructure provider, since we won't be providing a BYOI solution. Users will have to figure out on their own how to host the containerized Motia application into their own infrastructure and apply the necessary protections (api gateway, load balancer, etc...)
Some technical considerations using docker are:
dev command).start command?
Providing a self-hosting option for Motia will allow users to evaluate a Motia application in a "production" like environment.