Deployment Guide
Self-Hosted Deployment
Learn how to deploy your Motia project to production using motia-docker
Prerequisites
Before you build your Docker image, first make sure you run motia build to build your project.
This will build your project and create a dist directory with your production-ready code.
It should be just two files: index-production.js and index-production.js.map.
iii Production Config
Make sure you have a config-production.yaml file in your project.
Docker Setup
Python Steps?
Use the Dockerfile setup documented in Docker guide - Python Steps.
Deploy to Cloud
Once you have Docker working locally, deploy to any cloud platform:
Railway
The easiest option. Railway detects your Dockerfile automatically and provides managed Redis.
👉 Full Railway deployment guide →
Fly.io
Global edge deployment with Upstash Redis. Great for low-latency worldwide.